What Makes an Attack?
The attacks in this version will be projectile based, all the special attacks will launch some kind of damage-dealing projectile, and the melee attacks will just be projectiles with a short lifespan. An attack file will therefore need the following data:
- The damage it deals on hitting an enemy
- How much force it adds to the enemy on hitting them
- The cooldown time after performing the attack
- The direction of the projectile
- The behaviour of the projectile upon hitting the ground (will it bounce, ride along the ground or be destroyed)
- The time until the projectile despawns
- The speed at which the projectile moves
- Whether the projectile is affected by gravity
- The status effect inflicted by the projectile
- The chance that the projectile will inflict the effect
- How long the attack can be charged for