Solution rejig (#12428)

This commit is contained in:
Leon Friedrich
2023-01-12 16:41:40 +13:00
committed by GitHub
parent 38504f6412
commit 466384b081
61 changed files with 873 additions and 619 deletions

View File

@@ -22,11 +22,11 @@ namespace Content.Server.Destructible.Thresholds.Behaviors
&& system.EntityManager.TryGetComponent(owner, out ExplosiveComponent? explosiveComponent))
{
// Don't explode if there's no solution
if (explodingSolution.CurrentVolume == 0)
if (explodingSolution.Volume == 0)
return;
// Scale the explosion intensity based on the remaining volume of solution
var explosionScaleFactor = (explodingSolution.CurrentVolume.Float() / explodingSolution.MaxVolume.Float());
var explosionScaleFactor = explodingSolution.FillFraction;
// TODO: Perhaps some of the liquid should be discarded as if it's being consumed by the explosion