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/Unit/MailCarrier.php | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 src/Model/Unit/MailCarrier.php (limited to 'src/Model/Unit/MailCarrier.php') diff --git a/src/Model/Unit/MailCarrier.php b/src/Model/Unit/MailCarrier.php new file mode 100644 index 0000000..c787e22 --- /dev/null +++ b/src/Model/Unit/MailCarrier.php @@ -0,0 +1,34 @@ + 200, + 'clay' => 200, + 'iron' => 200, + 'food' => 200, + ]; + public array $resourceRequirementsFactor = [ + 'wood' => 2.0, + 'clay' => 2.0, + 'iron' => 2.0, + 'food' => 2.0, + ]; + + public static function getResourceCapabilities(Village|int $village): int + { + $postOffice = Village::getBuilding($village->id ?? $village, 'PostOffice'); + + return $postOffice->level * 100; + } +} -- cgit v1.2.3