mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-19 02:54:41 +01:00
Hierophant club will now malfunction on station
If you are on station and try using it, it will only spawn a few sparks.
This commit is contained in:
@@ -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("<span class='danger'>[user]'s hierophant club malfunctions!</span>")
|
||||
do_sparks(5, FALSE, user)
|
||||
return
|
||||
|
||||
var/turf/T = get_turf(target)
|
||||
if(!T || timer > world.time)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user