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

Create skills 'charges' #140

Open
NeumimTo opened this issue Apr 15, 2020 · 0 comments
Open

Create skills 'charges' #140

NeumimTo opened this issue Apr 15, 2020 · 0 comments
Assignees
Labels

Comments

@NeumimTo
Copy link
Member

  • In skilltree config only
   id: "ntrpg:fireball_charges"
   parent: "ntrpg:fireball"
   Settings {
      blablabla
   }
   Charges {
      max-amount: 3
      max-amount_levelbonus: 3
      max-amount_per_str: 3 .....
      cooldown-between-charges: 10000
      cooldown-between-charges_levelbonus: -150
   }
   Recharge-continually: true

What will actually happen on the backend during skilltree initialization:

  1. create a bytecode for a skill via asm (similar principe as skill with type of "item-access", "command" etc),
  2. When the skill is casted it places a buff (effect) to the caster which tracks remaining charges
  3. Player may run the skill "max-amount"th-times before actual skill cooldown is applied
  • Charges block:
    max-amount: 3
    recharge-continually: if true the cooldown timer starts counting down when the first execution happen, whenever the cooldown is applied is deceided on the last charge.

  • ie cooldown of skill is 10s, the player has 3 charges executes each of them with 5 seconds delay.
    in that case the 3rd charge was depleted 15 seconds after the first charge was used => no cooldown applied

@NeumimTo NeumimTo self-assigned this Apr 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant