feat(@projects): ✨ add mineral and fauna species data
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
c304822571
commit
f50e316a9d
1 changed files with 1 additions and 7 deletions
|
|
@ -369,13 +369,7 @@ func _process_economy(player: RefCounted, game_map: RefCounted) -> void: # Play
|
|||
var c: CityScript = city_ref as CityScript
|
||||
var tile_json: String = BuildableHelperScript.build_tile_yields_json(c, game_map)
|
||||
var yields: Dictionary = c.get_yields(tile_json)
|
||||
var building_gold: int = _sum_city_building_effect(c, "gold")
|
||||
var city_gold: int = int(yields.get("gold", 0)) + building_gold
|
||||
# Apply percentage bonuses (marketplace +25% = 0.25)
|
||||
var gold_pct: float = _sum_city_building_effect_float(c, "gold_percent")
|
||||
if gold_pct > 0.0:
|
||||
city_gold = int(float(city_gold) * (1.0 + gold_pct))
|
||||
income += city_gold
|
||||
income += int(yields.get("gold", 0))
|
||||
# Golden Age: +20% gold income
|
||||
if player.golden_age_active:
|
||||
income = int(income * 1.2)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue