mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
Makes object burning slightly less bad (#29030)
* Makes object burning slightly less bad * Related style changes
This commit is contained in:
@@ -28,9 +28,9 @@ Attach to transfer valve and open. BOOM.
|
||||
/atom/proc/getFireFuel()
|
||||
return fire_fuel
|
||||
|
||||
/atom/proc/burnFireFuel(var/used_fuel_ratio,var/used_reactants_ratio)
|
||||
/atom/proc/burnFireFuel(used_fuel_ratio, used_reactants_ratio)
|
||||
fire_fuel -= (fire_fuel * used_fuel_ratio * used_reactants_ratio) //* 5
|
||||
if(fire_fuel<=0.1)
|
||||
if(fire_fuel <= 0.1)
|
||||
//testing("[src] ashifying (BFF)!")
|
||||
ashify()
|
||||
|
||||
@@ -41,9 +41,8 @@ Attach to transfer valve and open. BOOM.
|
||||
in_fire = TRUE
|
||||
break
|
||||
if(!in_fire)
|
||||
fire_fuel -= 0.2
|
||||
if(fire_fuel<=0.1)
|
||||
ashify()
|
||||
var/used_ratio = min(0.2 / getFireFuel(), 1) //To maintain the previous behavior of just using 0.2 fire_fuel
|
||||
burnFireFuel(1, used_ratio) //1 is valid as used_fuel_ratio and the two arguments should multiply to used_ratio, so this is simplest.
|
||||
sleep(2 SECONDS)
|
||||
|
||||
/atom/proc/ashify()
|
||||
|
||||
Reference in New Issue
Block a user