Class HyperbolicDefense
- Namespace
- SurvivorsMaker.Simulation
- Assembly
- SurvivorsMaker.Simulation.dll
Armor reduces damage by armor / (armor + Softness); negative armor increases it by the same ratio. Result is rounded and at least MinimumDamage.
public sealed class HyperbolicDefense : IDefenseFormula
- Inheritance
-
HyperbolicDefense
- Implements
- Inherited Members
Constructors
HyperbolicDefense()
public HyperbolicDefense()
Fields
MinimumDamage
public int MinimumDamage
Field Value
Softness
public float Softness
Field Value
Methods
Apply(int, int)
public int Apply(int rawDamage, int armor)