Icon smoothing and icon update refactor (#17569)

* Atomization

* asdfsadf

* sdfas

---------

Co-authored-by: FluffyGhost <FluffyGhost>
This commit is contained in:
Fluffy
2023-10-12 23:23:28 +02:00
committed by GitHub
parent bb4d89a498
commit 8bb0ecfcd3
7 changed files with 223 additions and 48 deletions
+16 -12
View File
@@ -15,11 +15,27 @@
var/slowdown = 0 //amount that pulling mobs have their movement delayed by
/obj/structure/Initialize(mapload)
. = ..()
if(!isnull(material) && !istype(material))
material = SSmaterials.get_material_by_name(material)
if (!mapload)
updateVisibility(src) // No point checking this before visualnet initializes.
if(climbable)
verbs += /obj/structure/proc/climb_on
if (smoothing_flags)
SSicon_smooth.add_to_queue(src)
SSicon_smooth.add_to_queue_neighbors(src)
/obj/structure/Destroy()
if(parts)
new parts(loc)
if (smoothing_flags)
SSicon_smooth.remove_from_queues(src)
SSicon_smooth.add_to_queue_neighbors(src)
climbers = null
return ..()
/obj/structure/attack_hand(mob/user)
@@ -65,18 +81,6 @@
. = ..()
bullet_ping(P)
/obj/structure/Initialize(mapload)
. = ..()
if(!isnull(material) && !istype(material))
material = SSmaterials.get_material_by_name(material)
if (!mapload)
updateVisibility(src) // No point checking this before visualnet initializes.
if(climbable)
verbs += /obj/structure/proc/climb_on
if (smoothing_flags)
SSicon_smooth.add_to_queue(src)
SSicon_smooth.add_to_queue_neighbors(src)
/obj/structure/proc/climb_on()
set name = "Climb structure"