Pad ammo autofill / Per-mission waves / Better core resource selection

This commit is contained in:
Anuken
2018-08-05 23:19:11 -04:00
parent 6904d4693f
commit 468e092422
7 changed files with 42 additions and 6 deletions
@@ -110,6 +110,12 @@ public class UnitInventory implements Saveable{
ammos.add(entry);
}
public void fillAmmo(AmmoType type){
totalAmmo = ammoCapacity();
ammos.clear();
ammos.add(new AmmoEntry(type, ammoCapacity()));
}
public int capacity(){
return unit.getItemCapacity();
}