mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-09 00:42:34 +00:00
Refactored hitby to be in line with TG's version. Refactored item weight defines to a more clear naming scheme, also in line with TG's version. Refactored how the movement bumps are handled, ported signals to handle them, in preparation for the movement update. Fixed disposal hit bouncing the hitting atom on the wall. Items do not push other items anymore if they are tiny.
36 lines
1023 B
Plaintext
36 lines
1023 B
Plaintext
/obj/structure/geyser
|
|
name = "arctic geyser"
|
|
desc = "A mound fuming with hot steam."
|
|
icon = 'icons/obj/geyser.dmi'
|
|
icon_state = "geyser_dormant"
|
|
density = FALSE
|
|
pixel_x = -32
|
|
|
|
/obj/structure/geyser/Initialize()
|
|
. = ..()
|
|
if(prob(50))
|
|
icon_state = "geyser_plume"
|
|
|
|
var/static/list/loc_connections = list(
|
|
COMSIG_ATOM_ENTERED = PROC_REF(on_entered),
|
|
)
|
|
|
|
AddElement(/datum/element/connect_loc, loc_connections)
|
|
|
|
/obj/structure/geyser/proc/on_entered(datum/source, atom/movable/arrived, atom/old_loc, list/atom/old_locs)
|
|
SIGNAL_HANDLER
|
|
|
|
if(ishuman(arrived))
|
|
var/mob/living/carbon/human/L = arrived
|
|
if(prob(50))
|
|
trigger(L)
|
|
|
|
/obj/structure/geyser/proc/trigger(mob/living/carbon/human/L)
|
|
visible_message(SPAN_WARNING("\The [src] spews a cloud of hot steam!"))
|
|
flick("geyser_fire", src)
|
|
var/steam_temperature = pick(10,50,100,500)
|
|
L.bodytemperature += steam_temperature
|
|
if(steam_temperature >= 100)
|
|
L.apply_damage(50, DAMAGE_BURN)
|
|
to_chat(L, SPAN_WARNING("Your skin fizzes as the steam touches it!"))
|