parent
012eeb3158
commit
8cf6ca78cf
2 changed files with 2 additions and 1 deletions
|
|
@ -29,5 +29,6 @@ public sealed class GetFireProtectionEvent : EntityEventArgs, IInventoryRelayEve
|
|||
public void Reduce(float by)
|
||||
{
|
||||
Multiplier -= by;
|
||||
Multiplier = MathF.Max(Multiplier, 0f);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ public sealed class FireProtectionSystem : EntitySystem
|
|||
|
||||
private void OnArmorExamine(Entity<FireProtectionComponent> ent, ref ArmorExamineEvent args)
|
||||
{
|
||||
var value = MathF.Round((1f - ent.Comp.Reduction) * 100, 1);
|
||||
var value = MathF.Round(ent.Comp.Reduction * 100, 1);
|
||||
|
||||
if (value == 0)
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue