7 private readonly
int amount;
8 private readonly Identifier scalingStatIdentifier;
17 DebugConsole.ThrowError($
"Error in talent {CharacterTalent.DebugIdentifier}, CharacterAbilityGiveMoney - amount of money set to 0.",
22 private void ApplyEffectSpecific(
Character targetCharacter)
24 float multiplier = 1f;
25 if (!scalingStatIdentifier.IsEmpty)
30 int totalAmount = (int)(multiplier * amount);
39 ApplyEffectSpecific(targetCharacter);
override void ApplyEffect(AbilityObject abilityObject)
override void ApplyEffect()
override bool AppliesEffectOnIntervalUpdate
CharacterAbilityGiveMoney(CharacterAbilityGroup characterAbilityGroup, ContentXElement abilityElement)
void GiveMoney(int amount)
Shows visual notification of money gained by the specific player. Useful for mid-mission monetary gai...
float GetSavedStatValue(StatTypes statType)
readonly TalentPrefab Prefab
ContentPackage? ContentPackage
int GetAttributeInt(string key, int def)
Identifier GetAttributeIdentifier(string key, string def)
readonly Identifier Identifier
StatTypes
StatTypes are used to alter several traits of a character. They are mostly used by talents.