From 4efc40ccac1efbe6d7bd78d3da7f367cd8dcb0a9 Mon Sep 17 00:00:00 2001 From: larentoun <31931237+larentoun@users.noreply.github.com> Date: Thu, 17 Aug 2023 03:50:21 +0900 Subject: [PATCH] [FIX] Jobbaned can't spam-spawn as cult harvesters (#21656) * fix: jobbaned can't spam-spawn as cult harvesters https://github.com/ss220-space/Paradise/pull/1283 * fix: oops, what is this check? * smoke needs create_smoke --- code/game/gamemodes/wizard/soulstone.dm | 4 +++- code/modules/mob/living/living.dm | 2 +- code/modules/power/engines/singularity/narsie.dm | 4 +--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/code/game/gamemodes/wizard/soulstone.dm b/code/game/gamemodes/wizard/soulstone.dm index b0e1d668ebc..6723c152e8d 100644 --- a/code/game/gamemodes/wizard/soulstone.dm +++ b/code/game/gamemodes/wizard/soulstone.dm @@ -421,10 +421,12 @@ qdel(shade) qdel(SS) -/proc/make_new_construct(mob/living/simple_animal/hostile/construct/c_type, mob/target, mob/user, cult_override = FALSE) +/proc/make_new_construct(mob/living/simple_animal/hostile/construct/c_type, mob/target, mob/user, cult_override = FALSE, create_smoke = FALSE) if(jobban_isbanned(target, ROLE_CULTIST)) return var/mob/living/simple_animal/hostile/construct/C = new c_type(get_turf(target)) + if(create_smoke) + new /obj/effect/particle_effect/smoke/sleeping(target.loc) C.faction |= "\ref[user]" C.key = target.key if(user && iscultist(user) || cult_override) diff --git a/code/modules/mob/living/living.dm b/code/modules/mob/living/living.dm index 82e74cf4a9f..3480b588c28 100644 --- a/code/modules/mob/living/living.dm +++ b/code/modules/mob/living/living.dm @@ -926,7 +926,7 @@ /mob/living/narsie_act() if(client) - make_new_construct(/mob/living/simple_animal/hostile/construct/harvester, src, cult_override = TRUE) + make_new_construct(/mob/living/simple_animal/hostile/construct/harvester, src, cult_override = TRUE, create_smoke = TRUE) spawn_dust() gib() diff --git a/code/modules/power/engines/singularity/narsie.dm b/code/modules/power/engines/singularity/narsie.dm index 41bf001c865..c5ee48948b6 100644 --- a/code/modules/power/engines/singularity/narsie.dm +++ b/code/modules/power/engines/singularity/narsie.dm @@ -69,9 +69,7 @@ /obj/singularity/narsie/large/attack_ghost(mob/dead/observer/user as mob) user.forceMove(get_turf(src)) //make_new_construct spawns harvesters at observers locations, could be used to get into admin rooms/CC - make_new_construct(/mob/living/simple_animal/hostile/construct/harvester, user, cult_override = TRUE) - new /obj/effect/particle_effect/smoke/sleeping(user.loc) - + make_new_construct(/mob/living/simple_animal/hostile/construct/harvester, user, cult_override = TRUE, create_smoke = TRUE) /obj/singularity/narsie/process() eat()