From 09caff2b2a06d1f8ac8203567035a21c612165f9 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Thu, 11 Jan 2024 13:15:02 +0100 Subject: send resources --- src/Model/Building/Embassy.php | 2 +- src/Model/Building/Marketplace.php | 32 -------------------------------- src/Model/Building/PostOffice.php | 32 ++++++++++++++++++++++++++++++++ src/Model/Building/TownHall.php | 2 +- 4 files changed, 34 insertions(+), 34 deletions(-) delete mode 100644 src/Model/Building/Marketplace.php create mode 100644 src/Model/Building/PostOffice.php (limited to 'src/Model/Building') diff --git a/src/Model/Building/Embassy.php b/src/Model/Building/Embassy.php index a8a1ec4..4238c90 100644 --- a/src/Model/Building/Embassy.php +++ b/src/Model/Building/Embassy.php @@ -6,7 +6,7 @@ use App\Model\Building; class Embassy extends Building { - public int $buildTimeFactor = 1; + public int $buildTimeFactor = 10; public int $maxLevel = 25; public array $resourceRequirementsBase = [ diff --git a/src/Model/Building/Marketplace.php b/src/Model/Building/Marketplace.php deleted file mode 100644 index 8978003..0000000 --- a/src/Model/Building/Marketplace.php +++ /dev/null @@ -1,32 +0,0 @@ - 1000, - 'clay' => 1000, - 'iron' => 800, - ]; - public array $resourceRequirementsFactor = [ - 'wood' => 10.0, - 'clay' => 10.0, - 'iron' => 8.0, - ]; - - public static function getResourceCapabilities(Village $village): int - { - $merchants = Village::getUnit($village, 'Merchant', Village::FETCH_UNIT_RESIDENCE, Village::RETURN_UNIT_EXISTING); - - return Merchant::getResourceCapabilities($village) * $merchants->amount; - } -} diff --git a/src/Model/Building/PostOffice.php b/src/Model/Building/PostOffice.php new file mode 100644 index 0000000..5765a0f --- /dev/null +++ b/src/Model/Building/PostOffice.php @@ -0,0 +1,32 @@ + 1000, + 'clay' => 1000, + 'iron' => 800, + ]; + public array $resourceRequirementsFactor = [ + 'wood' => 10.0, + 'clay' => 10.0, + 'iron' => 8.0, + ]; + + public static function getResourceCapabilities(Village $village): int + { + $mailCarriers = Village::getUnit($village, 'MailCarrier', Village::FETCH_UNIT_RESIDENCE, Village::RETURN_UNIT_EXISTING); + + return MailCarrier::getResourceCapabilities($village) * $mailCarriers->amount; + } +} diff --git a/src/Model/Building/TownHall.php b/src/Model/Building/TownHall.php index 33fd105..84a78a4 100644 --- a/src/Model/Building/TownHall.php +++ b/src/Model/Building/TownHall.php @@ -6,7 +6,7 @@ use App\Model\Building; class TownHall extends Building { - public int $buildTimeFactor = 1; + public int $buildTimeFactor = 2; public int $maxLevel = 25; public array $resourceRequirementsBase = [ -- cgit v1.2.3