[MIRROR] Resprited assemblies (#29275)

* Resprited assemblies (#85763)

## About The Pull Request

Refreshes absolutely ancient assembly sprites in 3/4 format

![image](https://github.com/user-attachments/assets/433b25d2-b1be-423e-9423-d71067ee54b5)
Top to bottom, left to right: voice analyzer, health scanner, condenser,
igniter, proximity detector (now inspired by IRL motion detectors),
remote signaller, timer and infrared beam emitter. Timers now also show
time left with their blinking lights, additional lights will blink for
every 10 seconds remaining on the timer

## Why It's Good For The Game
Current ones are absolutely ancient and rather abstract, I am honestly
not even sure what half of them were supposed to represent.

## Changelog
🆑
image: Resprited all main assemblies
/🆑

* Resprited assemblies

---------

Co-authored-by: SmArtKar <44720187+SmArtKar@users.noreply.github.com>
This commit is contained in:
SkyratBot
2024-08-14 16:26:44 +02:00
committed by GitHub
parent 4580240c31
commit 03e66858f4
5 changed files with 14 additions and 20 deletions
+3 -17
View File
@@ -107,28 +107,14 @@
var/turf/last_turf = final_turfs[length(final_turfs)]
buffer_turf = get_step(last_turf, dir)
var/beam_target_x = pixel_x
var/beam_target_y = pixel_y
// The beam by default will go to middle of turf (because items are in the middle of turfs)
// So we need to offset it
if(dir & NORTH)
beam_target_y += 16
else if(dir & SOUTH)
beam_target_y -= 16
if(dir & WEST)
beam_target_x -= 16
else if(dir & EAST)
beam_target_x += 16
active_beam = start_loc.Beam(
BeamTarget = last_turf,
beam_type = /obj/effect/ebeam/reacting/infrared,
icon = 'icons/effects/beam.dmi',
icon_state = "1-full",
beam_color = COLOR_RED,
icon_state = "infrared",
emissive = TRUE,
override_target_pixel_x = beam_target_x,
override_target_pixel_y = beam_target_y,
override_target_pixel_x = pixel_x,
override_target_pixel_y = pixel_y,
)
RegisterSignal(active_beam, COMSIG_BEAM_ENTERED, PROC_REF(beam_entered))
RegisterSignal(active_beam, COMSIG_BEAM_TURFS_CHANGED, PROC_REF(beam_turfs_changed))
+11 -3
View File
@@ -67,6 +67,9 @@
if(!timing)
return
time -= seconds_per_tick
if (time == 9 || time == 19 || time == 29)
update_appearance()
if(time <= 0)
timing = FALSE
timer_end()
@@ -79,9 +82,14 @@
/obj/item/assembly/timer/update_overlays()
. = ..()
attached_overlays = list()
if(timing)
. += "timer_timing"
attached_overlays += "timer_timing"
if(!timing)
return
attached_overlays += "timer_timing"
for (var/i in 1 to clamp(ceil(time / 10), 1, 3))
var/mutable_appearance/timer_light = mutable_appearance(icon, "timer_light", layer, src)
timer_light.pixel_x = (i - 1) * 2
. += timer_light
/obj/item/assembly/timer/ui_status(mob/user, datum/ui_state/state)
if(is_secured(user))
Binary file not shown.

Before

Width:  |  Height:  |  Size: 128 KiB

After

Width:  |  Height:  |  Size: 125 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

After

Width:  |  Height:  |  Size: 37 KiB