mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 14:39:58 +01:00
[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?  ## 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:
@@ -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 |
Reference in New Issue
Block a user