new dropwall sprites from TG, fix dropwall timer (#26063)

* new dropwall sprites from TG, fix dropwall timer

* improves icon further
This commit is contained in:
Qwertytoforty
2024-07-05 13:01:20 -04:00
committed by GitHub
parent 8cfdc72b31
commit 97d4525ce7
2 changed files with 8 additions and 9 deletions
+8 -9
View File
@@ -261,7 +261,7 @@
directional_list += dir_1
directional_list += dir_2
if(dir_2)
icon_state = "[dir2text(dir_1 + dir_2)]"
icon_state = "[dir2text(dir_1)][dir2text(dir_1 + dir_2)]"
else
icon_state = "[dir2text(dir_1)]"
@@ -358,7 +358,7 @@
anchored = TRUE
protected = TRUE
addtimer(CALLBACK(src, PROC_REF(power_out)), uptime)
timer_overlay_proc(uptime/10)
timer_overlay_proc(1)
connected_shields += new barricade_type(get_turf(loc), src, TRUE, direction)
core_shield = connected_shields[1]
@@ -406,13 +406,12 @@
new /obj/item/used_dropwall(get_turf(src))
qdel(src)
/obj/structure/dropwall_generator/proc/timer_overlay_proc(uptime) // This proc will make the timer on the generator tick down like a clock, over 12 equally sized portions (12 times over 12 seconds, every second by default)
var/cycle = DROPWALL_UPTIME + 1 - uptime
add_overlay("[cycle]")
if(cycle != 1)
cut_overlay("[(cycle - 1)]")
if(cycle < 12)
addtimer(CALLBACK(src, PROC_REF(timer_overlay_proc), uptime - 1), DROPWALL_UPTIME / 12 SECONDS)
/obj/structure/dropwall_generator/proc/timer_overlay_proc(loops) // This proc will make the timer on the generator tick down like a clock, over 12 equally sized portions (12 times over 60 seconds, every 5 seconds by default)
add_overlay("[loops]")
if(loops != 1)
cut_overlay("[(loops - 1)]")
if(loops < 12)
addtimer(CALLBACK(src, PROC_REF(timer_overlay_proc), loops + 1), DROPWALL_UPTIME / 12)
/obj/item/used_dropwall
Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB