Skip to content

Purchasing skills for ingame currency #125

@NeumimTo

Description

@NeumimTo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    CommonGood First IssueQuite simple task, you should not enounter any difficulties if you know spongeapi already

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions