Files
Polaris/code/game/objects/effects/chem/coating.dm
MistakeNot4892 618082f500 /atom New() => Initialize() [MDB IGNORE] (#8298)
* 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.
2022-01-04 18:47:57 -08:00

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()