diff --git a/ShrapnelDamageV2/Data/Scripts/shrapnel/Core.cs b/ShrapnelDamageV2/Data/Scripts/shrapnel/Core.cs index 570bee5..446aacf 100644 --- a/ShrapnelDamageV2/Data/Scripts/shrapnel/Core.cs +++ b/ShrapnelDamageV2/Data/Scripts/shrapnel/Core.cs @@ -4,6 +4,7 @@ using VRage.Game; using VRage.Game.Components; using VRage.Game.ModAPI; +using VRage.Utils; namespace Shrapnel { @@ -24,7 +25,7 @@ public void ProcessDamage(object target, ref MyDamageInformation info) if (info.Type == MyDamageType.Weapon || info.Type == MyDamageType.Bullet || info.Type == MyDamageType.Rocket) { - if (slim.Integrity >= info.Amount) return; + if (slim.Integrity <= info.Amount) return; float overkill = info.Amount - slim.Integrity; info.Amount = slim.Integrity; @@ -59,6 +60,8 @@ public override void UpdateBeforeSimulation() tasks++; ShrapnelData data = queue.Dequeue(); float count = 1f / (float)data.Neighbours.Count; + + //MyLog.Default.Info($"queue: {queue.Count} - overkill: {data.OverKill}, spread: {data.OverKill * count}"); foreach (IMySlimBlock neighbour in data.Neighbours) { if (neighbour == null) continue;