marouen-lamiri / Second-Soul

Unity-Game
2 stars 0 forks source link

Enemies dropping Loot #82

Closed marouen-lamiri closed 9 years ago

marouen-lamiri commented 9 years ago

As a user, i want to be able to sometimes get items by defeating enemies.[SP: 8] [Priority: 3]

gfortin13 commented 9 years ago

commits originally linked issue #84, that was the wrong issue.

gfortin13 commented 9 years ago

Task Breakdown (in hours)

gfortin13 commented 9 years ago

Implementation Breakdown

gfortin13 commented 9 years ago

Enemies drop items at a 100% drop rate currently and all items have equal weights, easily adjust values to desired taste.

gfortin13 commented 9 years ago

To add more natural feel item drops in random location of a 1 unit radius around the enemy.

gfortin13 commented 9 years ago

Black-Box Testing

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
gfortin13 commented 9 years ago

spawn items - diagram

Diagram explaining loot process

gfortin13 commented 9 years ago

Demo Steps

  1. Open Inventory
  2. Observe current items
  3. Kill enemy
  4. Click dropped item (capsule item holder)
  5. Open Inventory
  6. Observe new picked up item
Kishor0122 commented 9 years ago

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.