mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-01-10 01:12:42 +00:00
* Find and replace argless atom New() to Initialize(). * Manual replacement of no-arg New() to Initialize(). * Manually replacing remaining New() overrides. * Fixing linter issues with now-removed New() args. * Tidying area init overrides. * Porting Neb's atom subsystem. * Trying to isolate init problems. * Adjusting Init code post-test. * Merging duplicate Initialize() procs. * Merge resolution.
34 lines
835 B
Plaintext
34 lines
835 B
Plaintext
/*
|
|
* Home of the floor chemical coating.
|
|
*/
|
|
|
|
/obj/effect/decal/cleanable/chemcoating
|
|
icon = 'icons/effects/effects.dmi'
|
|
icon_state = "dirt"
|
|
|
|
/obj/effect/decal/cleanable/chemcoating/Initialize()
|
|
. = ..()
|
|
create_reagents(100)
|
|
var/turf/T = get_turf(src)
|
|
if(T)
|
|
for(var/obj/O in get_turf(src))
|
|
if(O == src)
|
|
continue
|
|
if(istype(O, /obj/effect/decal/cleanable/chemcoating))
|
|
var/obj/effect/decal/cleanable/chemcoating/C = O
|
|
if(C.reagents && C.reagents.reagent_list.len)
|
|
C.reagents.trans_to_obj(src,C.reagents.total_volume)
|
|
qdel(O)
|
|
|
|
/obj/effect/decal/cleanable/chemcoating/Bumped(A as mob|obj)
|
|
if(reagents)
|
|
reagents.touch(A)
|
|
return ..()
|
|
|
|
/obj/effect/decal/cleanable/chemcoating/Crossed(AM as mob|obj)
|
|
Bumped(AM)
|
|
|
|
/obj/effect/decal/cleanable/chemcoating/update_icon()
|
|
..()
|
|
color = reagents.get_color()
|