-
Notifications
You must be signed in to change notification settings - Fork 0
CreateStatModifier
Aidanamite edited this page Oct 23, 2021
·
2 revisions
Description:
Use to create a StatsModificator object. Helpful when creating equipment items
Returns: StatsModificator
Arguments:
-
int Health (default: 0)Amount to increase max health -
int Defence (default: 0)Amount to increase defence (Note: vanilla max player defence is 20) -
int Speed (default: 0)Amount to increase player speed -
int MeleeDamage (default: 0)Amount to increase player melee damage -
int RangedDamage (default: 0)Amount to increase player ranged damage -
Action<StatsModificator, int> PlusLevelModifier (default: null)A method that modifies the providedStatsModificatorfor the provided plus level. By default the game makes no changes to the item'sStatsModificatorto adapt it for other plus levels
Example:
var stats = AssetLib.AssetLibTools.CreateStatModifier(Defence: 5, MeleeDamage: 1000, PlusLevelModifier: (modifier,plus) => {
modifier.strength += 200 * plus;
});