Fixes bomb simulator maths.

The TTV explosion math had a fuckup causing it to calculate the explosions up to 1000 times the intended size.

Fix for the actual bomb math PR'd upstream.
This commit is contained in:
Verkister
2020-09-04 14:15:55 +03:00
committed by GitHub
parent cf4e8ea637
commit 0c5f38544d
+1 -1
View File
@@ -237,7 +237,7 @@
pressure = faketank.return_pressure()
var/strength = (pressure-TANK_FRAGMENT_PRESSURE)/TANK_FRAGMENT_SCALE
var/mult = ((faketank.volume/140)**(1/2)) * (faketank.total_moles**2/3)/((29*0.64) **2/3) //Don't ask me what this is, see tanks.dm
var/mult = ((faketank.volume/140)**(1/2)) * (faketank.total_moles**(2/3))/((29*0.64) **(2/3)) //Don't ask me what this is, see tanks.dm
var/dev = round((mult*strength)*0.15)
var/heavy = round((mult*strength)*0.35)