Bugfixes / Compile error fixes / Removed routers

This commit is contained in:
Anuken
2018-07-07 13:48:20 -04:00
parent d988bb1821
commit 97b7eb0768
16 changed files with 88 additions and 76 deletions
@@ -87,6 +87,7 @@ public class UnitInventory implements Saveable{
}
public void addAmmo(AmmoType type){
if(type == null) return;
totalAmmo += type.quantityMultiplier;
//find ammo entry by type
@@ -71,6 +71,10 @@ public abstract class BaseUnit extends Unit implements ShooterTrait{
return type;
}
public Tile getSpawner(){
return world.tile(spawner);
}
/**internal constructor used for deserialization, DO NOT USE*/
public BaseUnit(){}