From 89d48dbc07c5de6fa008e1b990d2ebb746ca999d Mon Sep 17 00:00:00 2001 From: awdaw Date: Sun, 2 Aug 2020 16:03:59 +0200 Subject: [PATCH] Hierophant club will now malfunction on station If you are on station and try using it, it will only spawn a few sparks. --- code/modules/mining/lavaland/loot/hierophant_loot.dm | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/code/modules/mining/lavaland/loot/hierophant_loot.dm b/code/modules/mining/lavaland/loot/hierophant_loot.dm index fc81e6399ae..12e1f1e2b84 100644 --- a/code/modules/mining/lavaland/loot/hierophant_loot.dm +++ b/code/modules/mining/lavaland/loot/hierophant_loot.dm @@ -21,6 +21,7 @@ var/chaser_timer = 0 //what our current chaser cooldown is var/chaser_speed = 0.8 //how fast our chasers are var/timer = 0 //what our current cooldown is + var/timerMalfunction = 0 //timer for when the club malfunctions var/blast_range = 13 //how long the cardinal blast's walls are var/obj/effect/hierophant/beacon //the associated beacon we teleport to var/teleporting = FALSE //if we ARE teleporting @@ -49,6 +50,16 @@ /obj/item/hierophant_club/afterattack(atom/target, mob/user, proximity_flag, click_parameters) ..() + + + if(is_station_level(user.z)) //Will only spawn a few sparks if on station + + if(world.time > timerMalfunction) + timerMalfuntion = world.time + cooldown_time + user.visible_message("[user]'s hierophant club malfunctions!") + do_sparks(5, FALSE, user) + return + var/turf/T = get_turf(target) if(!T || timer > world.time) return