Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 18 additions & 3 deletions code/game/objects/items/rogueitems/natural/zizobane.dm
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
light_outer_range = 2
light_inner_range = 1
light_power = 1.5
light_color = "#BF40BF"
light_color = "#be3ebe"

/obj/structure/zizo_bane/Initialize(mapload)
. = ..()
Expand All @@ -24,11 +24,26 @@
/obj/structure/zizo_bane/Crossed(atom/movable/arrived)
if(time_delay < world.time)
if(isliving(arrived))
var/mob/living/L = arrived
if(L.is_flying())
return
if(L.m_intent == MOVE_INTENT_SNEAK)
return
/*if(!L.badluck()) // only the unlucky (FOR < 10) misstep hard enough to set it off
return*/ // CC Edit
var/oldx = pixel_x
animate(src, pixel_x = oldx + 1, time = 0.5)
animate(src, pixel_x = oldx - 1, time = 0.5)
animate(src, pixel_x = oldx, time = 0.5)
make_gas()
time_delay = world.time + 20 SECONDS

/obj/structure/zizo_bane/obj_destruction(damage_flag)
make_gas() // burst its spores when smashed apart
return ..()

/obj/structure/zizo_bane/proc/make_gas()
visible_message(span_warn("A cloud of spores burst up from \the [src]!"))
visible_message(span_warningbig("A cloud of spores burst up from \the [src]!"))
var/datum/effect_system/smoke_spread/zizosleep/S = new
playsound(get_turf(src), "sound/items/mushroom_step.ogg", 100)
S.set_up(2, loc)
Expand All @@ -41,7 +56,7 @@
var/obj/item/reagent_containers/food/snacks/zizo_bane/z = new /obj/item/reagent_containers/food/snacks/zizo_bane/ (get_turf(src))
user.put_in_active_hand(z)
qdel(src)

/obj/item/reagent_containers/food/snacks/zizo_bane
name = "Zizo's bane"
desc = "A small purple mushroom that has been growing in areas of rot."
Expand Down
Loading