Skip to content

Commit

Permalink
Curve Adjustment
Browse files Browse the repository at this point in the history
Added 1 minute to total fuel time. Changed curve to start burning out from a little quicker, but have flares smolder far longer for more atmosphere.
  • Loading branch information
MaximusRex committed Nov 18, 2024
1 parent 54e4c62 commit 1caf66b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions code/game/objects/items/devices/flashlight.dm
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@

/obj/item/device/flashlight/flare/Initialize()
. = ..()
fuel = 15 MINUTES
fuel = 16 MINUTES
set_light_color(flame_tint)

/obj/item/device/flashlight/flare/update_icon()
Expand Down Expand Up @@ -368,19 +368,19 @@

/obj/item/device/flashlight/flare/proc/flare_burn_down() //Controls the way in which flares slowly die out. Needs to be overriden by children, or they will be forced to use this light behavior.
switch(fuel) //The code belows controls the timing on a flares burn out, and the corresponding reduction in effective range.
if(14.25 MINUTES to 15 MINUTES)
if(15.25 MINUTES to 16 MINUTES)
set_light_range(7)
if(13.5 MINUTES to 14.24 MINUTES)
if(14.5 MINUTES to 15.24 MINUTES)
set_light_range(6)
if(4.0 MINUTES to 13.49 MINUTES)
if(6.5 MINUTES to 14.49 MINUTES)
set_light_range(5)
if(3.0 MINUTES to 3.99 MINUTES)
if(5.0 MINUTES to 6.49 MINUTES)
set_light_range(4)
if(2.0 MINUTES to 2.99 MINUTES)
if(3.5 MINUTES to 4.99 MINUTES)
set_light_range(3)
if(0.5 MINUTES to 1.99 MINUTES)
if(2.0 MINUTES to 3.49 MINUTES)
set_light_range(2)
if(0 MINUTES to 0.49 MINUTES)
if(0 MINUTES to 1.99 MINUTES)
set_light_range(1)
set_light_power(0.5) // A power of 2 results in no light at all, while .5 results in a small light.

Expand Down

0 comments on commit 1caf66b

Please sign in to comment.