Table of Contents

Method Damage

Namespace
GrindFest
Assembly
GrindFest.dll

Damage(int, GameObject)

Spend damage of this item's durability - the amount is damage, not a special unit, because one point of durability is one point of damage. Every caller measures its blow the same way: a weapon is charged what it dealt, armour what it took, a shield what it stopped (all three from CombatBehaviour.ChargeDurability, which is the single place that decides). Tools and thrown items charge themselves directly (one per use, or the throw's own damage).

public void Damage(int damage, GameObject source = null)

Parameters

damage int
source GameObject