Bugfixes / Compile error fixes / Removed routers
This commit is contained in:
@@ -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(){}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user