JSJitsu / ai-battle-engine

Engine for powering the game logic.
https://jsfight.club
9 stars 8 forks source link

Make Souls useful #21

Open Asuza opened 6 years ago

Asuza commented 6 years ago

Souls don't really do anything right now, but maybe they should. Some ideas:

Persistent Options:

Special Abilities, single-use per soul:

Asuza commented 6 years ago

@natedsaint what do you think?

natedsaint commented 6 years ago

Sorry was on vacation. I have some counter-questions:

Asuza commented 6 years ago

If this doesn't cover everything, let me know!

natedsaint commented 6 years ago

Huh, I hadn't thought of that (bullet 2). I suppose we could just change it to "_handleHeroAction" and accept more than four verbs, and handle anything invalid like we do now (I think we drop it on the floor and assume they didn't want to move).

The question would be would it be an action in ADDITION to a direction, or just a new value in the enumeration of possible actions? I see more cost to the first approach than the second, but the second limits what we can do.

Asuza commented 6 years ago

Making it an addition to the direction makes sense to me, and would be a literal game-changer. We'd have to figure out how things should be ordered, which I assume should be like so:

  1. Move
  2. Existing damage calculations
  3. Action

Though it might not follow a consistent order if a certain action uses up the move, or if the action itself requires a direction, or the action prevents the "auto-attack" phase from happening.