From 94a3dd52da3ae180af37c6fd0e8c24b3562da388 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Wed, 4 Oct 2023 11:32:04 +0200 Subject: initial commit 2 --- src/Model/Unit/Farmer.php | 3 +++ src/Model/Unit/Miner.php | 3 +++ src/Model/Unit/PitWorker.php | 3 +++ src/Model/Unit/WoodCutter.php | 5 ++++- 4 files changed, 13 insertions(+), 1 deletion(-) (limited to 'src/Model/Unit') diff --git a/src/Model/Unit/Farmer.php b/src/Model/Unit/Farmer.php index de37802..8e3c1ea 100644 --- a/src/Model/Unit/Farmer.php +++ b/src/Model/Unit/Farmer.php @@ -11,5 +11,8 @@ class Farmer extends Unit public int $populationDemandFactor = 1; public array $resourceRequirements = [ 'wood' => 1.0, + 'clay' => 1.0, + 'iron' => 1.0, + 'food' => 0, ]; } diff --git a/src/Model/Unit/Miner.php b/src/Model/Unit/Miner.php index ae6c00a..2d246ef 100644 --- a/src/Model/Unit/Miner.php +++ b/src/Model/Unit/Miner.php @@ -11,5 +11,8 @@ class Miner extends Unit public int $populationDemandFactor = 1; public array $resourceRequirements = [ 'wood' => 1.0, + 'clay' => 1.0, + 'iron' => 2.0, + 'food' => 2.0, ]; } diff --git a/src/Model/Unit/PitWorker.php b/src/Model/Unit/PitWorker.php index 4f873b4..d2a52c3 100644 --- a/src/Model/Unit/PitWorker.php +++ b/src/Model/Unit/PitWorker.php @@ -11,5 +11,8 @@ class PitWorker extends Unit public int $populationDemandFactor = 1; public array $resourceRequirements = [ 'wood' => 1.0, + 'clay' => 2.0, + 'iron' => 1.0, + 'food' => 2.0, ]; } diff --git a/src/Model/Unit/WoodCutter.php b/src/Model/Unit/WoodCutter.php index 17923ca..d8c2c42 100644 --- a/src/Model/Unit/WoodCutter.php +++ b/src/Model/Unit/WoodCutter.php @@ -10,6 +10,9 @@ class WoodCutter extends Unit public int $travelTime = 1; public int $populationDemandFactor = 1; public array $resourceRequirements = [ - 'wood' => 1.0, + 'wood' => 2.0, + 'clay' => 1.0, + 'iron' => 1.0, + 'food' => 2.0, ]; } -- cgit v1.2.3