mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
made zburn/firelevel more predictable. Probably won't change much ingame, but it's a start.
Signed-off-by: Mloc-Argent <colmohici@gmail.com>
This commit is contained in:
@@ -262,7 +262,7 @@ datum/gas_mixture/proc/calculate_firelevel(obj/effect/decal/cleanable/liquid_fue
|
|||||||
//slows down the burning when the concentration of the reactants is low
|
//slows down the burning when the concentration of the reactants is low
|
||||||
var/dampening_multiplier = total_combustables / (total_combustables + nitrogen + carbon_dioxide)
|
var/dampening_multiplier = total_combustables / (total_combustables + nitrogen + carbon_dioxide)
|
||||||
//calculates how close the mixture of the reactants is to the optimum
|
//calculates how close the mixture of the reactants is to the optimum
|
||||||
var/mix_multiplier = 1 / (1 + (5 * ((oxygen / total_combustables) ^2)))
|
var/mix_multiplier = 1 / (1 + (5 * ((oxygen / total_combustables) ** 2)))
|
||||||
//toss everything together
|
//toss everything together
|
||||||
firelevel = vsc.fire_firelevel_multiplier * mix_multiplier * dampening_multiplier
|
firelevel = vsc.fire_firelevel_multiplier * mix_multiplier * dampening_multiplier
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user