[MIRROR] Fixes invisible light replacers [MDB IGNORE] (#17994)

* Fixes invisible light replacers (#71766)

## About The Pull Request

The icon state was getting a double 0 (or 01) and going INVISIBLE.
So now it just adds "" instead of "0" for un-emagged stuff.

Also renames it to "emagged" instead of "1". "1" sucks.

The sprites are unchanged, if that wasn't obvious.

## Why It's Good For The Game

What's the point in replacing the lights if you can't even see your
tools anyway?

![light_replacer](https://user-images.githubusercontent.com/8881105/205796187-f896d95f-a8d3-45e9-ae6f-b6c1d5bf3405.png)

## Changelog
🆑
fix: Light replacers will no longer turn invisible.
/🆑

* Fixes invisible light replacers

Co-authored-by: Tom <8881105+tf-4@users.noreply.github.com>
This commit is contained in:
SkyratBot
2022-12-08 13:36:13 +00:00
committed by GitHub
co-authored by Tom
parent f1ac88b042
commit fd529d158e
2 changed files with 3 additions and 3 deletions
@@ -34,7 +34,7 @@
desc = "A device to automatically replace lights. Refill with broken or working light bulbs, or sheets of glass."
icon = 'icons/obj/janitor.dmi'
icon_state = "lightreplacer0"
icon_state = "lightreplacer"
inhand_icon_state = "electronic"
worn_icon_state = "light_replacer"
lefthand_file = 'icons/mob/inhands/items/devices_lefthand.dmi'
@@ -147,7 +147,7 @@
to_chat(user, status_string())
/obj/item/lightreplacer/update_icon_state()
icon_state = "[initial(icon_state)][(obj_flags & EMAGGED ? 1 : 0)]"
icon_state = "[initial(icon_state)][(obj_flags & EMAGGED ? "-emagged" : "")]"
return ..()
/obj/item/lightreplacer/proc/status_string()
@@ -256,7 +256,7 @@
/obj/item/lightreplacer/blue
name = "bluespace light replacer"
desc = "A modified light replacer that zaps lights into place. Refill with broken or working lightbulbs, or sheets of glass."
icon_state = "lightreplacer_blue0"
icon_state = "lightreplacer_blue"
bluespace_toggle = TRUE
/obj/item/lightreplacer/blue/emag_act()
Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

After

Width:  |  Height:  |  Size: 31 KiB