Skip to content

SpendCurrencyTypeGoal

Goal SpendCurrencyTypeGoal
Description A Goal that is complete when the player spends a certain amount of a specific Currency.
Example Spent 100 Liquor
Inheritance SpendGoal
Target The target Currency that the player must spend units of. The StaticDataId Currency must match the Id specified via SpendCurrencyTypeGoalData.CurrencyId.
Target Amount The amount of Currency that the player must spend to complete the Goal. Specified via SpendCurrencyTypeGoalData.Amount.
Progression Each time the player spends any of the target Currency, the progression is incremented by the number of units of Currency spent.
Pre Activation Any Currency spent prior to the Goal becoming active will not count toward its completion.
Remarks Extends the base SpendGoal by implementing SpendGoal.IsEligible to check that a currency matches the StaticDataId specified via SpendCurrencyTypeGoalData.