From 82875448c485d26375ed6dea4e64e940f6e10f74 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Mon, 8 Jan 2024 15:10:10 +0100 Subject: gemini --- src/Model/Unit/Diplomat.php | 9 ++++++++- src/Model/Unit/Farmer.php | 9 ++++++++- src/Model/Unit/Merchant.php | 9 ++++++++- src/Model/Unit/Miner.php | 9 ++++++++- src/Model/Unit/PitWorker.php | 9 ++++++++- src/Model/Unit/WoodCutter.php | 9 ++++++++- 6 files changed, 48 insertions(+), 6 deletions(-) (limited to 'src/Model/Unit') diff --git a/src/Model/Unit/Diplomat.php b/src/Model/Unit/Diplomat.php index e263cd3..baee88a 100644 --- a/src/Model/Unit/Diplomat.php +++ b/src/Model/Unit/Diplomat.php @@ -9,7 +9,14 @@ class Diplomat extends Unit public string $buildingType = 'Embassy'; public int $travelTime = 1; public int $populationDemandFactor = 1; - public array $resourceRequirements = [ + + public array $resourceRequirementsBase = [ + 'wood' => 500, + 'clay' => 500, + 'iron' => 500, + 'food' => 500, + ]; + public array $resourceRequirementsFactor = [ 'wood' => 5.0, 'clay' => 5.0, 'iron' => 5.0, diff --git a/src/Model/Unit/Farmer.php b/src/Model/Unit/Farmer.php index 8e3c1ea..5256bf1 100644 --- a/src/Model/Unit/Farmer.php +++ b/src/Model/Unit/Farmer.php @@ -9,7 +9,14 @@ class Farmer extends Unit public string $buildingType = 'Farm'; public int $travelTime = 1; public int $populationDemandFactor = 1; - public array $resourceRequirements = [ + + public array $resourceRequirementsBase = [ + 'wood' => 100, + 'clay' => 100, + 'iron' => 100, + 'food' => 0, + ]; + public array $resourceRequirementsFactor = [ 'wood' => 1.0, 'clay' => 1.0, 'iron' => 1.0, diff --git a/src/Model/Unit/Merchant.php b/src/Model/Unit/Merchant.php index 61e2090..8958d27 100644 --- a/src/Model/Unit/Merchant.php +++ b/src/Model/Unit/Merchant.php @@ -9,7 +9,14 @@ class Merchant extends Unit public string $buildingType = 'Marketplace'; public int $travelTime = 1; public int $populationDemandFactor = 1; - public array $resourceRequirements = [ + + public array $resourceRequirementsBase = [ + 'wood' => 200, + 'clay' => 200, + 'iron' => 200, + 'food' => 200, + ]; + public array $resourceRequirementsFactor = [ 'wood' => 2.0, 'clay' => 2.0, 'iron' => 2.0, diff --git a/src/Model/Unit/Miner.php b/src/Model/Unit/Miner.php index 2d246ef..06c6dda 100644 --- a/src/Model/Unit/Miner.php +++ b/src/Model/Unit/Miner.php @@ -9,7 +9,14 @@ class Miner extends Unit public string $buildingType = 'IronMine'; public int $travelTime = 1; public int $populationDemandFactor = 1; - public array $resourceRequirements = [ + + public array $resourceRequirementsBase = [ + 'wood' => 100, + 'clay' => 100, + 'iron' => 200, + 'food' => 200, + ]; + public array $resourceRequirementsFactor = [ 'wood' => 1.0, 'clay' => 1.0, 'iron' => 2.0, diff --git a/src/Model/Unit/PitWorker.php b/src/Model/Unit/PitWorker.php index d2a52c3..f2a27b6 100644 --- a/src/Model/Unit/PitWorker.php +++ b/src/Model/Unit/PitWorker.php @@ -9,7 +9,14 @@ class PitWorker extends Unit public string $buildingType = 'ClayPit'; public int $travelTime = 1; public int $populationDemandFactor = 1; - public array $resourceRequirements = [ + + public array $resourceRequirementsBase = [ + 'wood' => 100, + 'clay' => 200, + 'iron' => 100, + 'food' => 200, + ]; + public array $resourceRequirementsFactor = [ 'wood' => 1.0, 'clay' => 2.0, 'iron' => 1.0, diff --git a/src/Model/Unit/WoodCutter.php b/src/Model/Unit/WoodCutter.php index d8c2c42..02aea85 100644 --- a/src/Model/Unit/WoodCutter.php +++ b/src/Model/Unit/WoodCutter.php @@ -9,7 +9,14 @@ class WoodCutter extends Unit public string $buildingType = 'WoodCutter'; public int $travelTime = 1; public int $populationDemandFactor = 1; - public array $resourceRequirements = [ + + public array $resourceRequirementsBase = [ + 'wood' => 200, + 'clay' => 100, + 'iron' => 100, + 'food' => 200, + ]; + public array $resourceRequirementsFactor = [ 'wood' => 2.0, 'clay' => 1.0, 'iron' => 1.0, -- cgit v1.2.3