From c1639e998621227257a4cc5f9df01ec729fc6165 Mon Sep 17 00:00:00 2001 From: naut Date: Tue, 21 Jan 2025 18:35:31 +0800 Subject: [PATCH 1/3] lights --- code/__DEFINES/colours.dm | 2 ++ code/modules/power/lighting.dm | 14 +++++++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/code/__DEFINES/colours.dm b/code/__DEFINES/colours.dm index 309dd7bcff11..0155b8b7f019 100644 --- a/code/__DEFINES/colours.dm +++ b/code/__DEFINES/colours.dm @@ -128,6 +128,8 @@ #define LIGHT_COLOR_TUNGSTEN "#FAE1AF" /// Barely visible cyan-ish hue, as the doctor prescribed. rgb(240, 250, 250) #define LIGHT_COLOR_HALOGEN "#F0FAFA" +/// Bluish cyan color for blue lights. rgb(186, 237, 247) +#define LIGHT_COLOR_XENON "#BAEDF7" /// The default color for admin say, used as a fallback when the preference is not enabled diff --git a/code/modules/power/lighting.dm b/code/modules/power/lighting.dm index 873621e2a572..608166c51c4e 100644 --- a/code/modules/power/lighting.dm +++ b/code/modules/power/lighting.dm @@ -144,6 +144,7 @@ active_power_usage = 20 power_channel = POWER_CHANNEL_LIGHT //Lights are calc'd via area so they dont need to be in the machine list light_system = STATIC_LIGHT + light_color = LIGHT_COLOR_HALOGEN var/on = 0 // 1 if on, 0 if off var/on_gs = 0 var/brightness = 8 // luminosity when on, also used in power calculation @@ -171,6 +172,7 @@ icon_state = "btube1" base_state = "btube" desc = "A lighting fixture that is fitted with a bright blue fluorescent light tube. Looking at it for too long makes your eyes go watery." + light_color = LIGHT_COLOR_XENON // the smaller bulb light fixture @@ -189,6 +191,7 @@ brightness = 4 desc = "A small lighting fixture that is fitted with a bright blue fluorescent light bulb. Looking at it for too long makes your eyes go watery." light_type = /obj/item/light_bulb/bulb + light_color = LIGHT_COLOR_XENON /obj/structure/machinery/light/double icon_state = "ptube1" @@ -199,6 +202,7 @@ icon_state = "bptube1" base_state = "bptube" desc = "A lighting fixture that can be fitted with two bright fluorescent light tubes for that extra eye-watering goodness." + light_color = LIGHT_COLOR_XENON /obj/structure/machinery/light/spot name = "spotlight" @@ -217,6 +221,7 @@ fitting = "large tube" light_type = /obj/item/light_bulb/tube/large/ brightness = 12 + light_color = LIGHT_COLOR_XENON // Dropship lights that use no power /obj/structure/machinery/light/dropship @@ -233,17 +238,20 @@ /obj/structure/machinery/light/dropship/green icon_state = "gtube1" base_state = "gtube" - desc = "A lighting fixture that is fitted with a bright green fluorescent light tube. Looking at it for too long makes your eyes go watery. Used by aircraft vehicles" + desc = "A lighting fixture that is fitted with a bright green fluorescent light tube. Looking at it for too long makes your eyes go watery. Used by aircraft vehicles." + light_color = LIGHT_COLOR_GREEN /obj/structure/machinery/light/dropship/red icon_state = "rtube1" base_state = "rtube" - desc = "A lighting fixture that is fitted with a bright red fluorescent light tube. Looking at it for too long makes your eyes go watery. Used by aircraft vehicles" + desc = "A lighting fixture that is fitted with a bright red fluorescent light tube. Looking at it for too long makes your eyes go watery. Used by aircraft vehicles." + light_color = LIGHT_COLOR_RED /obj/structure/machinery/light/dropship/blue icon_state = "btube1" base_state = "btube" - desc = "A lighting fixture that is fitted with a bright blue fluorescent light tube. Looking at it for too long makes your eyes go watery. Used by aircraft vehicles" + desc = "A lighting fixture that is fitted with a bright blue fluorescent light tube. Looking at it for too long makes your eyes go watery. Used by aircraft vehicles." + light_color = LIGHT_COLOR_BLUE /obj/structure/machinery/light/built/Initialize() . = ..() From 0cc951445c40664ffbed739817e86277ddcea5fe Mon Sep 17 00:00:00 2001 From: naut Date: Tue, 21 Jan 2025 18:55:35 +0800 Subject: [PATCH 2/3] oops --- code/modules/power/lighting.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/power/lighting.dm b/code/modules/power/lighting.dm index 608166c51c4e..b993c7658d98 100644 --- a/code/modules/power/lighting.dm +++ b/code/modules/power/lighting.dm @@ -144,7 +144,7 @@ active_power_usage = 20 power_channel = POWER_CHANNEL_LIGHT //Lights are calc'd via area so they dont need to be in the machine list light_system = STATIC_LIGHT - light_color = LIGHT_COLOR_HALOGEN + light_color = LIGHT_COLOR_TUNGSTEN var/on = 0 // 1 if on, 0 if off var/on_gs = 0 var/brightness = 8 // luminosity when on, also used in power calculation From ef9901d948bb7298ef2342ab7111304f5c6c8c12 Mon Sep 17 00:00:00 2001 From: naut Date: Tue, 21 Jan 2025 19:33:50 +0800 Subject: [PATCH 3/3] changes --- code/__DEFINES/colours.dm | 10 ++++++---- code/game/objects/items/devices/flashlight.dm | 3 +++ .../clothing/suits/marine_armor/_marine_armor.dm | 1 + 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/code/__DEFINES/colours.dm b/code/__DEFINES/colours.dm index 0155b8b7f019..ed0d38994a68 100644 --- a/code/__DEFINES/colours.dm +++ b/code/__DEFINES/colours.dm @@ -120,16 +120,18 @@ #define LIGHT_COLOR_FIRE "#FAA019" /// Very warm yellow, leaning slightly towards orange. rgb(196, 138, 24) #define LIGHT_COLOR_LAVA "#C48A18" +/// Very warm yellowish-white color for candlelight. rgb(255, 187, 110) +#define LIGHT_COLOR_CANDLE "#FFBB6E" /// Bright, non-saturated red. Leaning slightly towards pink for visibility. rgb(250, 100, 75) #define LIGHT_COLOR_FLARE "#FA644B" /// Weird color, between yellow and green, very slimy. rgb(175, 200, 75) #define LIGHT_COLOR_SLIME_LAMP "#AFC84B" -/// Extremely diluted yellow, close to skin color (for some reason). rgb(250, 225, 175) -#define LIGHT_COLOR_TUNGSTEN "#FAE1AF" +/// Incandascent warm white, for usage in lights. rgb(255, 239, 210) +#define LIGHT_COLOR_TUNGSTEN "#FFEFD2" /// Barely visible cyan-ish hue, as the doctor prescribed. rgb(240, 250, 250) #define LIGHT_COLOR_HALOGEN "#F0FAFA" -/// Bluish cyan color for blue lights. rgb(186, 237, 247) -#define LIGHT_COLOR_XENON "#BAEDF7" +/// Bluish cyan color for blue lights. rgb(210, 227, 236) +#define LIGHT_COLOR_XENON "#D2E3EC" /// The default color for admin say, used as a fallback when the preference is not enabled diff --git a/code/game/objects/items/devices/flashlight.dm b/code/game/objects/items/devices/flashlight.dm index 3ffbcc46a345..2c3182bdef52 100644 --- a/code/game/objects/items/devices/flashlight.dm +++ b/code/game/objects/items/devices/flashlight.dm @@ -259,6 +259,7 @@ icon_state = "menorah" item_state = "menorah" light_range = 2 + light_color = LIGHT_COLOR_CANDLE w_class = SIZE_LARGE on = 1 breaking_sound = null @@ -270,6 +271,7 @@ icon_state = "candelabra" force = 15 on = TRUE + light_color = LIGHT_COLOR_CANDLE breaking_sound = null @@ -285,6 +287,7 @@ desc = "An emergency light tube mounted onto a tripod. It seemingly lasts forever." icon_state = "tripod_lamp" light_range = 6//pretty good + light_color = LIGHT_COLOR_XENON w_class = SIZE_LARGE on = 1 diff --git a/code/modules/clothing/suits/marine_armor/_marine_armor.dm b/code/modules/clothing/suits/marine_armor/_marine_armor.dm index ebaa6bccd270..0f648ab7ac6b 100644 --- a/code/modules/clothing/suits/marine_armor/_marine_armor.dm +++ b/code/modules/clothing/suits/marine_armor/_marine_armor.dm @@ -85,6 +85,7 @@ light_power = 3 light_range = 4 + light_color = LIGHT_COLOR_TUNGSTEN light_system = MOVABLE_LIGHT var/flashlight_cooldown = 0 //Cooldown for toggling the light