Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Purchasing skills for ingame currency #125

Open
NeumimTo opened this issue Jun 6, 2019 · 0 comments
Open

Purchasing skills for ingame currency #125

NeumimTo opened this issue Jun 6, 2019 · 0 comments
Labels
Common Good First Issue Quite simple task, you should not enounter any difficulties if you know spongeapi already
Milestone

Comments

@NeumimTo
Copy link
Member

NeumimTo commented Jun 6, 2019

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.

@NeumimTo NeumimTo added Good First Issue Quite simple task, you should not enounter any difficulties if you know spongeapi already Sponge-7 Sponge Api 7 Common labels Jun 6, 2019
@NeumimTo NeumimTo added this to the 3.0.0 milestone Jun 6, 2019
@NeumimTo NeumimTo removed the Sponge-7 Sponge Api 7 label Jun 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Common Good First Issue Quite simple task, you should not enounter any difficulties if you know spongeapi already
Projects
None yet
Development

No branches or pull requests

1 participant