mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-05-12 18:00:52 +01:00
317abc6b79
Conflicts: code/datums/recipe.dm code/game/machinery/bots/farmbot.dm code/game/machinery/bots/medbot.dm code/game/mecha/equipment/tools/tools.dm code/game/objects/effects/chem/chemsmoke.dm code/game/objects/effects/effect_system.dm code/game/objects/items/toys.dm code/game/objects/items/weapons/extinguisher.dm code/game/objects/items/weapons/mop.dm code/modules/mob/living/carbon/human/human.dm code/modules/organs/organ_internal.dm code/modules/reagents/Chemistry-Holder.dm code/modules/reagents/Chemistry-Reagents.dm code/modules/reagents/Chemistry-Recipes.dm code/modules/reagents/reagent_containers/food/snacks.dm code/modules/reagents/reagent_containers/pill.dm code/modules/reagents/reagent_containers/spray.dm maps/exodus-1.dmm
50 lines
1.1 KiB
Plaintext
50 lines
1.1 KiB
Plaintext
/obj/effect/effect/water
|
|
name = "water"
|
|
icon = 'icons/effects/effects.dmi'
|
|
icon_state = "extinguish"
|
|
mouse_opacity = 0
|
|
|
|
/obj/effect/effect/water/New(loc)
|
|
..()
|
|
spawn(150) // In case whatever made it forgets to delete it
|
|
if(src)
|
|
qdel(src)
|
|
|
|
/obj/effect/effect/water/proc/set_color() // Call it after you move reagents to it
|
|
icon += reagents.get_color()
|
|
|
|
/obj/effect/effect/water/proc/set_up(var/turf/target, var/step_count = 5, var/delay = 5)
|
|
if(!target)
|
|
return
|
|
for(var/i = 1 to step_count)
|
|
step_towards(src, target)
|
|
var/turf/T = get_turf(src)
|
|
reagents.touch_turf(T)
|
|
var/mob/M = locate() in T
|
|
if(M)
|
|
reagents.splash_mob(M, reagents.total_volume)
|
|
break
|
|
for(var/atom/A in T)
|
|
reagents.touch(A)
|
|
if(T == get_turf(target))
|
|
break
|
|
sleep(delay)
|
|
sleep(10)
|
|
qdel(src)
|
|
|
|
/obj/effect/effect/water/Move(turf/newloc)
|
|
if(newloc.density)
|
|
return 0
|
|
. = ..()
|
|
|
|
/obj/effect/effect/water/Bump(atom/A)
|
|
if(reagents)
|
|
reagents.touch(A)
|
|
return ..()
|
|
|
|
//Used by spraybottles.
|
|
/obj/effect/effect/water/chempuff
|
|
name = "chemicals"
|
|
icon = 'icons/obj/chempuff.dmi'
|
|
icon_state = ""
|
|
pass_flags = PASSTABLE | PASSGRILLE |