fixes a cult construct death runtime (#20675)

* fixes a cult construct runtime

* Update code/game/gamemodes/cult/cult_mode.dm

Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>

---------

Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>
This commit is contained in:
GDN
2023-03-26 11:50:27 +01:00
committed by GitHub
co-authored by Contrabang
parent 7503a6c187
commit 690376da3a
3 changed files with 6 additions and 4 deletions
+4 -2
View File
@@ -172,11 +172,13 @@ GLOBAL_LIST_EMPTY(all_cults)
to_chat(cult_mind.current, "<span class='motd'>For more information, check the wiki page: ([GLOB.configuration.url.wiki_url]/index.php/Cultist)</span>")
return TRUE
/datum/game_mode/proc/remove_cultist(datum/mind/cult_mind, show_message = TRUE, remove_gear = FALSE)
/datum/game_mode/proc/remove_cultist(datum/mind/cult_mind, show_message = TRUE, remove_gear = FALSE, mob/target_mob)
if(!(cult_mind in cult)) // Not actually a cultist in the first place
return
var/mob/cultist = cult_mind.current
var/mob/cultist = target_mob
if(!cultist)
cultist = cult_mind.current
cult -= cult_mind
cultist.faction -= "cult"
cult_mind.special_role = null
@@ -52,7 +52,7 @@
/mob/living/simple_animal/hostile/construct/death(gibbed)
. = ..()
SSticker.mode.remove_cultist(mind, FALSE)
SSticker.mode.remove_cultist(show_message = FALSE, target_mob = src)
/mob/living/simple_animal/hostile/construct/examine(mob/user)
. = ..()
@@ -40,7 +40,7 @@
/mob/living/simple_animal/shade/death(gibbed)
. = ..()
SSticker.mode.remove_cultist(mind, FALSE)
SSticker.mode.remove_cultist(show_message = FALSE, target_mob = src)
/mob/living/simple_animal/shade/attackby(obj/item/O, mob/user) //Marker -Agouri
if(istype(O, /obj/item/soulstone))