8 private readonly
float maxValue;
9 private readonly Identifier skillIdentifier;
10 private readonly
bool useAll;
11 private float lastValue = 0f;
19 useAll = skillIdentifier ==
"all";
22 protected override void VerifyState(
bool conditionsMatched,
float timeSinceLastUpdate)
26 if (conditionsMatched)
28 float skillTotal = 0f;
33 foreach (
Skill skill
in skills)
37 skillTotal /= skills.Count();
44 lastValue = skillTotal / 100f * maxValue;
static StatTypes ParseStatType(string statTypeString, string debugIdentifier)
override bool AllowClientSimulation
override void VerifyState(bool conditionsMatched, float timeSinceLastUpdate)
CharacterAbilityModifyStatToSkill(CharacterAbilityGroup characterAbilityGroup, ContentXElement abilityElement)
float GetSkillLevel(Identifier skillIdentifier)
Get the character's current skill level, taking into account any temporary boosts from wearables and ...
void ChangeStat(StatTypes statType, float value)
string? GetAttributeString(string key, string? def)
float GetAttributeFloat(string key, float def)
Identifier GetAttributeIdentifier(string key, string def)
IEnumerable< Skill > GetSkills()
readonly Identifier Identifier
StatTypes
StatTypes are used to alter several traits of a character. They are mostly used by talents.