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

int

Softness

public float Softness

Field Value

float

Methods

Apply(int, int)

public int Apply(int rawDamage, int armor)

Parameters

rawDamage int
armor int

Returns

int