Feature which allows players to buy skill for ingame currency
-
In the API create
EconomyService#hasFunds(IActiveCharacter, BigInteger)
EconomyService#widthDraw(IActiveCharacter, BigInteger)
-
Implementation in the Sponge module - just a wrapper around sponge EconomyService, if theres no economy plugin installed just return false on hasFunds.
-
Refactor skillnode configuration
- SkillPurchaseCostProcessors: [{
class: XXX
...
}, {...} ]
Concept similar as class level curve definition.
Options:
- Purchase skill for skillpoint
- Purchase skill for ingame currency
- Purchase skill for Item
- Processor which allows script execution to run custom validations.
The config option shall be a list, so it will be possible to combine skillpoints and ingame currency etc.
Feature which allows players to buy skill for ingame currency
In the API create
EconomyService#hasFunds(IActiveCharacter, BigInteger)
EconomyService#widthDraw(IActiveCharacter, BigInteger)
Implementation in the Sponge module - just a wrapper around sponge EconomyService, if theres no economy plugin installed just return false on hasFunds.
Refactor skillnode configuration
class: XXX
...
}, {...} ]
Concept similar as class level curve definition.
Options:
The config option shall be a list, so it will be possible to combine skillpoints and ingame currency etc.