diff options
Diffstat (limited to 'src/Model/Unit')
-rw-r--r-- | src/Model/Unit/Diplomat.php | 1 | ||||
-rw-r--r-- | src/Model/Unit/Farmer.php | 1 | ||||
-rw-r--r-- | src/Model/Unit/MailCarrier.php (renamed from src/Model/Unit/Merchant.php) | 9 | ||||
-rw-r--r-- | src/Model/Unit/Miner.php | 1 | ||||
-rw-r--r-- | src/Model/Unit/PitWorker.php | 1 | ||||
-rw-r--r-- | src/Model/Unit/WoodCutter.php | 1 |
6 files changed, 10 insertions, 4 deletions
diff --git a/src/Model/Unit/Diplomat.php b/src/Model/Unit/Diplomat.php index baee88a..b96f3ca 100644 --- a/src/Model/Unit/Diplomat.php +++ b/src/Model/Unit/Diplomat.php @@ -7,6 +7,7 @@ use App\Model\Unit; class Diplomat extends Unit { public string $buildingType = 'Embassy'; + public int $buildTimeFactor = 10; public int $travelTime = 1; public int $populationDemandFactor = 1; diff --git a/src/Model/Unit/Farmer.php b/src/Model/Unit/Farmer.php index 5256bf1..585a1f6 100644 --- a/src/Model/Unit/Farmer.php +++ b/src/Model/Unit/Farmer.php @@ -7,6 +7,7 @@ use App\Model\Unit; class Farmer extends Unit { public string $buildingType = 'Farm'; + public int $buildTimeFactor = 1; public int $travelTime = 1; public int $populationDemandFactor = 1; diff --git a/src/Model/Unit/Merchant.php b/src/Model/Unit/MailCarrier.php index be0b25e..c787e22 100644 --- a/src/Model/Unit/Merchant.php +++ b/src/Model/Unit/MailCarrier.php @@ -5,9 +5,10 @@ namespace App\Model\Unit; use App\Model\Unit; use App\Model\Village; -class Merchant extends Unit +class MailCarrier extends Unit { - public string $buildingType = 'Marketplace'; + public string $buildingType = 'PostOffice'; + public int $buildTimeFactor = 5; public int $travelTime = 1; public int $populationDemandFactor = 1; @@ -26,8 +27,8 @@ class Merchant extends Unit public static function getResourceCapabilities(Village|int $village): int { - $marketplace = Village::getBuilding($village->id ?? $village, 'Marketplace'); + $postOffice = Village::getBuilding($village->id ?? $village, 'PostOffice'); - return $marketplace->level * 100; + return $postOffice->level * 100; } } diff --git a/src/Model/Unit/Miner.php b/src/Model/Unit/Miner.php index 06c6dda..e6a9021 100644 --- a/src/Model/Unit/Miner.php +++ b/src/Model/Unit/Miner.php @@ -7,6 +7,7 @@ use App\Model\Unit; class Miner extends Unit { public string $buildingType = 'IronMine'; + public int $buildTimeFactor = 1; public int $travelTime = 1; public int $populationDemandFactor = 1; diff --git a/src/Model/Unit/PitWorker.php b/src/Model/Unit/PitWorker.php index f2a27b6..03463b1 100644 --- a/src/Model/Unit/PitWorker.php +++ b/src/Model/Unit/PitWorker.php @@ -7,6 +7,7 @@ use App\Model\Unit; class PitWorker extends Unit { public string $buildingType = 'ClayPit'; + public int $buildTimeFactor = 1; public int $travelTime = 1; public int $populationDemandFactor = 1; diff --git a/src/Model/Unit/WoodCutter.php b/src/Model/Unit/WoodCutter.php index 02aea85..f3478b2 100644 --- a/src/Model/Unit/WoodCutter.php +++ b/src/Model/Unit/WoodCutter.php @@ -7,6 +7,7 @@ use App\Model\Unit; class WoodCutter extends Unit { public string $buildingType = 'WoodCutter'; + public int $buildTimeFactor = 1; public int $travelTime = 1; public int $populationDemandFactor = 1; |