Generalize ReagentUnit into FixedPoint2 and use it for damage calculations (#5151)
* Damage units * sum ext method
This commit is contained in:
@@ -16,7 +16,7 @@ namespace Content.Server.AI.Utility.Considerations.Combat.Melee
|
||||
}
|
||||
|
||||
// Just went with max health
|
||||
return meleeWeaponComponent.Damage.Total / 300.0f;
|
||||
return (meleeWeaponComponent.Damage.Total / 300.0f).Float();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace Content.Server.AI.Utility.Considerations.Combat
|
||||
return 0.0f;
|
||||
}
|
||||
|
||||
return damageableComponent.TotalDamage / 300.0f;
|
||||
return (float) damageableComponent.TotalDamage / 300.0f;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user