Custom Logic
How to implement custom logic.
Player Level
Skills support player level requirements—preventing upgrading if the required level is not met. If you'd like to use custom logic to get the player level, use the SkillNode.playerLevelGetter
field.
By default, the SkillWeb.playerLevel
field is used. The example below sets a custom one.
Custom Upgrade/Downgrade Logic
You can add on to the upgrade/downgrade prevention logic to add your own upgrade/downgrade requirements. You can implement your own logic by using the SkillNode.canUpgrade
and SkillNode.canDowngrade
fields. By default, both simply return true
.
Skill Points Binding
By default, every Web simply uses the SkillWeb.skillPoints
field as the reference of the player's current skill points. You can bind your own numeric skill points field for each web. The supported numeric types are int
, float
and double
.
Last updated