Skip to content

Commit

Permalink
TGS Test Merge (#19541)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yogbot-13 committed Jul 9, 2023
2 parents f043c02 + 498d4a9 commit 9436e06
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
9 changes: 5 additions & 4 deletions code/datums/actions/items/cult_dagger.dm
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@

default_button_position = "6:157,4:-2"

/datum/action/item_action/cult_dagger/Grant(mob/M)
if(iscultist(M))
return ..()
Remove(owner)
/datum/action/item_action/cult_dagger/Grant(mob/grant_to)
if(!iscultist(grant_to))
return

return ..()

/datum/action/item_action/cult_dagger/Trigger(trigger_flags)
for(var/obj/item/held_item as anything in owner.held_items) // In case we were already holding a dagger
Expand Down
5 changes: 4 additions & 1 deletion code/game/gamemodes/cult/cult.dm
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,10 @@
return ..()

/datum/game_mode/cult/check_finished(force_ending)
if (..())
if(!SSticker.setup_done || !gamemode_ready)
return FALSE
. = ..()
if (.)
return TRUE

return !main_cult.check_sacrifice_status() //we should remove this any time soon
Expand Down
1 change: 0 additions & 1 deletion code/modules/antagonists/cult/cult.dm
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@
owner.announce_objectives()

/datum/antagonist/cult/on_gain()
// add_objectives() figure it out sometime later (remove cult the gamemode in favor of dynamic ruleset)
. = ..()
add_objectives()
var/mob/living/current = owner.current
Expand Down

0 comments on commit 9436e06

Please sign in to comment.