Archived
1
0

Started checking to see that the moving drone is the owner of the objective it lands on

Signed-off-by: Tony Grosinger <github2@grosinger.net>
This commit is contained in:
Tony Grosinger 2011-05-19 17:25:12 -07:00
parent c7bf2268e8
commit ec147dede8
2 changed files with 4 additions and 1 deletions

View File

@ -381,8 +381,11 @@ public class DroneListItem {
GameObject objectHere = Nomads.awesomeWorld.getObjectAt(getX() + amountE, getY() + amountN);
if (inventory.size() < cargoSpace) {
if (objectHere instanceof MoneyPile || objectHere instanceof Objective) {
if (objectHere instanceof MoneyPile) {
inventory.add(objectHere);
} else if (objectHere instanceof Objective) {
// TODO - Check to see that this drone is the owner of that
// Objective
}
} else {
// TODO - Inventory is full, do not allow move