Skip to main content

StatNamePatch

A class in TavernLib, TavernLib.Patches.

Prefixes StatManager.Awake to rename the stat definition with hash 44538 from damageprotection to crippledamageprotection, whose name clashes with another stat. Runs once.

Constructors​

MemberWhat it is
StatNamePatch()Created by TavernLib; mods don't make one.

Fields​

2 private and internal fields
MemberWhat it is
private const uint CrippleDamageProtectionHashHash of the stat definition that gets renamed.
private static bool doneSet once the stat has been found, so the rename runs once.

Methods​

MemberWhat it is
static void RenameCrippleDamageProtection()Sets that stat definition's private statName the first time it's found, if it's still damageprotection.