Closed marouen-lamiri closed 9 years ago
commits originally linked issue #84, that was the wrong issue.
Enemies drop items at a 100% drop rate currently and all items have equal weights, easily adjust values to desired taste.
To add more natural feel item drops in random location of a 1 unit radius around the enemy.
Tests | Inputs | Expected Output | Status |
---|---|---|---|
Item drop | Kill an enemy | enemy drops a container with the random item | Pass |
Item pick up | Click dropped item while in range | Item is added to inventory and is removed from game environment | Pass |
Item pick up (while full) | Click dropped item while in range | Item remains in environment and inventory remains unchanged | Pass |
Diagram explaining loot process
Enemies correctly drop loot, which can be picked up by the player on click. Item appears in the inventory correctly. In the future, item name should appear on mouse-over before picking up. Signing off.
As a user, i want to be able to sometimes get items by defeating enemies.[SP: 8] [Priority: 3]