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:
parent
c7bf2268e8
commit
ec147dede8
Binary file not shown.
@ -381,8 +381,11 @@ public class DroneListItem {
|
|||||||
GameObject objectHere = Nomads.awesomeWorld.getObjectAt(getX() + amountE, getY() + amountN);
|
GameObject objectHere = Nomads.awesomeWorld.getObjectAt(getX() + amountE, getY() + amountN);
|
||||||
|
|
||||||
if (inventory.size() < cargoSpace) {
|
if (inventory.size() < cargoSpace) {
|
||||||
if (objectHere instanceof MoneyPile || objectHere instanceof Objective) {
|
if (objectHere instanceof MoneyPile) {
|
||||||
inventory.add(objectHere);
|
inventory.add(objectHere);
|
||||||
|
} else if (objectHere instanceof Objective) {
|
||||||
|
// TODO - Check to see that this drone is the owner of that
|
||||||
|
// Objective
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// TODO - Inventory is full, do not allow move
|
// TODO - Inventory is full, do not allow move
|
||||||
|
Reference in New Issue
Block a user