From 8cb02763e1dec491c90406db2124642d1275192a Mon Sep 17 00:00:00 2001
From: BeagleGaming1 <56142455+BeagleGaming1@users.noreply.github.com>
Date: Thu, 18 Jan 2024 10:19:58 -0500
Subject: [PATCH] Floodlight icon fix (#5461)
# About the pull request
Adds base icon state to floodlights
No sprite changes, just renamed sprites
# Explain why it's good for the game
Floor floodlights should use floor sprites
# Testing Photographs and Procedure
![image](https://github.com/cmss13-devs/cmss13/assets/56142455/7d9632f4-efba-46e4-8c6b-cf85e8dadc28)
# Changelog
:cl:
fix: Floor floodlights use correct sprites
/:cl:
---
code/game/machinery/floodlight.dm | 14 ++++++++------
icons/obj/structures/machinery/floodlight.dmi | Bin 1537 -> 3251 bytes
2 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/code/game/machinery/floodlight.dm b/code/game/machinery/floodlight.dm
index 580fea644eec..b90f8adbbb3f 100644
--- a/code/game/machinery/floodlight.dm
+++ b/code/game/machinery/floodlight.dm
@@ -2,7 +2,7 @@
name = "emergency floodlight"
desc = "A powerful light usually stationed near landing zones to provide better visibility."
icon = 'icons/obj/structures/machinery/floodlight.dmi'
- icon_state = "flood00"
+ icon_state = "flood_0"
density = TRUE
anchored = TRUE
light_power = 2
@@ -11,13 +11,14 @@
idle_power_usage = 0
active_power_usage = 100
+ ///How far the light will go when the floodlight is on
var/on_light_range = 6
-
///Whether or not the floodlight can be toggled on or off
var/toggleable = TRUE
-
///Whether or not the floodlight is turned on, disconnected from whether it has power or is lit
var/turned_on = FALSE
+ ///base state
+ var/base_icon_state = "flood"
/obj/structure/machinery/floodlight/Initialize(mapload, ...)
. = ..()
@@ -60,7 +61,7 @@
/obj/structure/machinery/floodlight/update_icon()
. = ..()
- icon_state = "flood0[light_on]"
+ icon_state = "[base_icon_state]_[light_on]"
/obj/structure/machinery/floodlight/power_change(area/master_area = null)
. = ..()
@@ -71,7 +72,7 @@
/obj/structure/machinery/floodlight/landing
name = "landing light"
desc = "A powerful light usually stationed near landing zones to provide better visibility. This one seems to have been bolted down and is unable to be moved."
- icon_state = "flood01"
+ icon_state = "flood_1"
use_power = USE_POWER_NONE
needs_power = FALSE
unslashable = TRUE
@@ -81,5 +82,6 @@
turned_on = TRUE
/obj/structure/machinery/floodlight/landing/floor
- icon_state = "floor_flood01"
+ icon_state = "floor_flood_1"
+ base_icon_state = "floor_flood"
density = FALSE
diff --git a/icons/obj/structures/machinery/floodlight.dmi b/icons/obj/structures/machinery/floodlight.dmi
index 7330d1749ab7e7b5e5dc2339c5f05aa9de8c5459..1f6b3b3d6d4c22e4aec4bbf9f5cff599c37a963d 100644
GIT binary patch
delta 3115
zcmZWsc{tPy_n%3I?6Njw&<#npkV*`LRLXTNqpV#<_FbBh`C5u8W6QN>8x&=Gi<@=K
zNTL`^mXTdqCPOopu{C3U?r(XX_xZj5o%5W}S)OywbCx)v`V;9V_#q$=XcU9FmN9I1
z5)AvZfaI4%Sv4-VWYEW>lOdHwx)T;lZCn1
zRgVM$)?;(quBm4__~#XRGkrRG$8CG2*?So=HkAhyhPO`_p1;@M_fw>|zwq)^=s{Q5
zsA>s8dIIz?RmRg{*LS#R&pZp}f2Cc+_BN#$ibX1vctjF*{l__QcJrs`W0YbeEEPeH
zz8r0inNLsTzzYmP5zTa;*uop%mTvQ2rqwB4@u?4FdQ2Az3
zCD7KOHt>esKYg{<#%!~Di91wh^77l?{*<=_xeK&eV7JDz*%^z3ln@kr7B<=*QWt{=
z6>-K%+n^gqL)Px2E5aH>P#}JF?b@#$wNrFOt4*8a&}otTi|b6SWR?awNU1a;@WkT6
z!r;O}d7j9OtkZALs~?L|7$*U1Q4a@Ypm;D}-=DVry*pI=qadZ&$*16kUQitKyXL53+hd!=EezUR6Hr=Xd=02H?&L$~t=sH0*fWb`u
zKi4~1>%{^GK6@`BIJH#p7`072V>ZJ?^-Ef~O4-<^KoHCCV0ZUq0-4=bp-d5Rrml79
zU@oqDejlRCLyT|
z9}pGeF1Gn;{_=Mvlql?vpe0>kvmERA2cix1X+hDPI3IGQ2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