Arcanorum/rogueworld

Explosive arrows

Arcanorum opened this issue · 1 comments

Task description

A new AOE attack for ranged should be added to give ranged more options for dealing with groups of enemies.
This would be an arrow projectile that explodes when it hits something, dealing damage to entities in range, and setting them on fire.

Mockup of how it might look:
image

References/notes

The arrow projectile: Perhaps an arrow with what looks like a bomb or stick of dynamite attached to the end?

Acceptance criteria

Code

  • A new config in Items.yml called "ExplosiveArrows" that extends the Ammunition type (like other arrows).
  • A new config in Projectiles.yml called "ExplosiveArrow"
  • A new projectile class file called "ExplosiveArrow" that extends Projectile and deals damage to and applies burning to all entities within a given range (3 tile range for now, subject to testing). Should use Manhattan distance to calculate if an entity is in range. See #190 for the same kind of logic.
  • A new crafting recipe config should be added to CraftingRecipes.yml that has the result of ExplosiveArrows. Should replace the metal bar ingredients of other arrow types with the Bomb item type.

Visual

  • A GUI icon that looks like 3 explosive tipped arrows together in a bunch. icon-explosive-arrows.png
  • A pickup sprite of the GUI icon with a border. pickup-explosive-arrows.png
  • A single arrow for the projectile. proj-explosive-arrow.png

Cannot be totally finished for now due to missing the Bomb (#190) item type for the crafting ingredient.