So with this goal in mind abilities are built up from a pool of constituent parts, defined in some data files. The available parts are are follows:
- A Targetting style. I currently have Self, Enemy, Ally, Tile or Direction.
- A Movement style. I currently have Smite (takes no travel time to hit, ignores everything until it hits its target), Bolt (has a travel time, collides with first non-passable thing) and Ray (hits everything in a ray up to the first non-passable thing).
- An aoe style. Currently supports Cone and Circle.
- Some effects (applied to each affected tile). Currently supported are Damage, Healing, Status, Teleport (this is used for all effects that move an entity).
Fireball
- Targetting: Direction
- Movement: Bolt
- AOE: circular
- Effect: Damage (maybe even a status effect if you want to add some burning too)
- Targetting: Enemy
- Movement: Smite
- Effect: Damage, Teleport (with a flag saying it should play a leap animation rather than a teleport one)
- Targetting: Self, Ally
- Movement: Smite
- Effect: Heal
No comments:
Post a Comment