GIVEN I have a player
AND The player has a ITEM_TYPE_BOW equipped
AND The player has targeted a position
AND The player has 2 arrows in inventory
WHEN The player issues the Fire command
THEN The player has 1 arrow in inventory
AND The shot arrow moves toward the targeted position
AND The shot arrow can collide
AND The shot arrow can end up on the floor
AND The shot arrow will only go a certain distance (or less)
AC:
creating bows (already written)
creating weapons-that-need-ammo
creating arrows
maybe creating quivers (a new equipment slot, inventory space is at a premium)
to load the bow with different arrows takes a wield command
can swap "primary" (melee) and "secondary" (ranged) weapon from the equipment menu
distance attacks
directional (NSEW) or targeted (requires "focus on monster" or "focus on position") attacks
GIVEN I have a player AND The player has a ITEM_TYPE_BOW equipped AND The player has targeted a position AND The player has 2 arrows in inventory WHEN The player issues the Fire command THEN The player has 1 arrow in inventory AND The shot arrow moves toward the targeted position AND The shot arrow can collide AND The shot arrow can end up on the floor AND The shot arrow will only go a certain distance (or less)
AC:
_Originally posted by @Rushwind13 in https://github.com/Rushwind13/JMoria/pull/35#discussion_r1807980631_