Skip to content

Commit

Permalink
Changes a lot of lighting colors, ranges, and powers (ParadiseSS13#28226
Browse files Browse the repository at this point in the history
)

* 8u hiubntgvby9 gb

* colors

* undo airlock

* bluer light

* spaghetti review
  • Loading branch information
Contrabang authored Feb 4, 2025
1 parent fd04e5a commit e3f73e1
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 15 deletions.
1 change: 1 addition & 0 deletions code/game/machinery/Sleeper.dm
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
active_power_consumption = 2500

light_color = LIGHT_COLOR_CYAN
light_power = 0.5

/obj/machinery/sleeper/examine(mob/user)
. = ..()
Expand Down
1 change: 1 addition & 0 deletions code/game/machinery/adv_med.dm
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
idle_power_consumption = 1250
active_power_consumption = 2500
light_color = "#00FF00"
light_power = 0.5
var/mob/living/carbon/human/occupant
///What is the level of the stock parts in the body scanner. A scan_level of one detects organs of stealth_level 1 or below, while a scan level of 4 would detect 4 or below.
var/scan_level = 1
Expand Down
2 changes: 1 addition & 1 deletion code/game/machinery/gameboard.dm
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
if(stat & NOPOWER)
set_light(0)
else
set_light(3, 3)
set_light(3, 1)

/obj/machinery/gameboard/update_icon_state()
if(stat & NOPOWER)
Expand Down
4 changes: 4 additions & 0 deletions code/game/objects/items/devices/flashlight.dm
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
slot_flags = ITEM_SLOT_BELT
materials = list(MAT_METAL = 200, MAT_GLASS = 100)
actions_types = list(/datum/action/item_action/toggle_light)
light_color = "#ffffd0"
var/on = FALSE
var/brightness_on = 4 //luminosity when on
var/togglesound = 'sound/weapons/empty.ogg'
Expand Down Expand Up @@ -127,6 +128,7 @@
flags = CONDUCT
materials = list()
on = TRUE
light_color = "#fff4bb"

/obj/item/flashlight/lamp/examine(mob/user)
. = ..()
Expand All @@ -137,6 +139,7 @@
desc = "A classic green-shaded desk lamp."
icon_state = "lampgreen"
item_state = "lampgreen"
light_color = "#AAFFAA"

/obj/item/flashlight/lamp/green/off
on = FALSE
Expand All @@ -153,6 +156,7 @@
desc = "Only a clown would think to make a ghetto banana-shaped lamp. Even has a goofy pullstring."
icon_state = "bananalamp"
item_state = "bananalamp"
light_color = "#f7ff57"

// FLARES

Expand Down
2 changes: 1 addition & 1 deletion code/modules/admin/topic.dm
Original file line number Diff line number Diff line change
Expand Up @@ -2990,7 +2990,7 @@
SSblackbox.record_feedback("tally", "admin_secrets_fun_used", 1, "Depower all APCs")
log_and_message_admins("<span class='notice'>[key_name_admin(usr)] made all areas unpowered</span>", 1)
else
power_failure()
power_failure(TRUE, 100)
SSblackbox.record_feedback("tally", "admin_secrets_fun_used", 1, "Short out APCs")
log_and_message_admins("<span class='notice'>[key_name_admin(usr)] has shorted APCs</span>", 1)
if("quickpower")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
/obj/machinery/atmospherics/unary/cryo_cell/power_change()
..()
if(!(stat & (BROKEN | NOPOWER)))
set_light(2)
set_light(1.5, 1, LIGHT_COLOR_CYAN)
else
set_light(0)

Expand Down
4 changes: 2 additions & 2 deletions code/modules/events/apc_short.dm
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
current_area.powernet.power_change()
log_and_message_admins("Power has been drained from all APCs.")

/proc/power_failure(announce = TRUE)
/proc/power_failure(announce = TRUE, probability = APC_BREAK_PROBABILITY)
// skip any APCs that are too critical to disable
var/list/skipped_areas_apc = list(
/area/station/engineering/engine,
Expand All @@ -58,7 +58,7 @@
if((current_area.type in skipped_areas_apc) || !is_station_level(A.z))
continue
// if we are going to break this one
if(prob(APC_BREAK_PROBABILITY))
if(prob(probability))
A.apc_short()
affected_apc_count++
log_and_message_admins("APC Short Out event has shorted out [affected_apc_count] APCs.")
Expand Down
2 changes: 2 additions & 0 deletions code/modules/mob/living/simple_animal/bot/bot.dm
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
layer = MOB_LAYER - 0.1
mob_biotypes = MOB_ROBOTIC
light_range = 3
light_power = 0.5
light_color = "#f3ffbb"
stop_automated_movement = TRUE
wander = FALSE
healable = FALSE
Expand Down
20 changes: 10 additions & 10 deletions code/modules/power/lights.dm
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@
/// Light intensity when in night shift mode
var/nightshift_light_power = 0.45
/// The colour of the light while it's in night shift mode
var/nightshift_light_color = "#FFDDCC"
var/nightshift_light_color = "#e0eeff"
/// The colour of the light while it's in emergency mode
var/bulb_emergency_colour = "#FF3232"

Expand All @@ -299,8 +299,9 @@
exposure_icon_state = "circle"
base_state = "bulb"
brightness_range = 4
brightness_color = "#a0a080"
brightness_color = "#ffebb0"
nightshift_light_range = 4
nightshift_light_color = "#ffefa0" // #a0a080
light_type = /obj/item/light/bulb
deconstruct_type = /obj/machinery/light_construct/small

Expand Down Expand Up @@ -393,12 +394,10 @@
break_light_tube(TRUE)
if("bulb")
brightness_range = 4
brightness_color = "#a0a080"
if(prob(5))
break_light_tube(TRUE)
if("floor")
brightness_range = 6
brightness_color = "#a0a080"
if(prob(3))
break_light_tube(TRUE)
update(FALSE, TRUE, FALSE)
Expand Down Expand Up @@ -631,9 +630,12 @@
to_chat(user, "<span class='notice'>You insert [L].</span>")
switchcount = L.switchcount
rigged = L.rigged
brightness_range = L.brightness_range
brightness_power = L.brightness_power
brightness_color = L.brightness_color
if(L.brightness_range)
brightness_range = L.brightness_range
if(L.brightness_power)
brightness_power = L.brightness_power
if(L.brightness_color)
brightness_color = L.brightness_color
lightmaterials = L.materials
on = has_power()
update(TRUE, TRUE, FALSE)
Expand Down Expand Up @@ -769,7 +771,7 @@
update_icon()
return
emergency_mode = TRUE
set_light(3, 1.7, bulb_emergency_colour)
set_light((fitting == "tube" ? 3 : 2), 1, bulb_emergency_colour)
update_icon()
RegisterSignal(machine_powernet, COMSIG_POWERNET_POWER_CHANGE, PROC_REF(update), override = TRUE)

Expand Down Expand Up @@ -1037,7 +1039,6 @@
base_state = "ltube"
item_state = "c_tube"
brightness_range = 8
brightness_color = "#ffffff"

/obj/item/light/tube/large
w_class = WEIGHT_CLASS_SMALL
Expand All @@ -1057,7 +1058,6 @@
base_state = "lbulb"
item_state = "contvapour"
brightness_range = 5
brightness_color = "#a0a080"

/obj/item/light/throw_impact(atom/hit_atom)
..()
Expand Down

0 comments on commit e3f73e1

Please sign in to comment.