Store resources in generic inventories
This commit is contained in:
parent
02643c76c4
commit
1721edd123
24 changed files with 385 additions and 172 deletions
|
|
@ -39,7 +39,7 @@ func _total() -> int:
|
|||
var sum: int = game_state.rocks + game_state.fleet_cargo
|
||||
for b in game_state.buildings:
|
||||
if b.type != GameState.BUILDING_MOTHERSHIP:
|
||||
sum += int(b.get("stock", 0))
|
||||
sum += game_state.building_resource(int(b.id), GameState.RESOURCE_ORE)
|
||||
return sum
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue