summaryrefslogtreecommitdiff
path: root/src/Model/Building/Marketplace.php
diff options
context:
space:
mode:
authorDaniel Weipert <git@mail.dweipert.de>2024-01-11 13:15:02 +0100
committerDaniel Weipert <git@mail.dweipert.de>2024-01-11 13:15:02 +0100
commit09caff2b2a06d1f8ac8203567035a21c612165f9 (patch)
tree999be04ff0a418a33e438be9befc8c9297e383f4 /src/Model/Building/Marketplace.php
parent6301f63bd348109b8693a922f02e16d49205a8fd (diff)
send resources
Diffstat (limited to 'src/Model/Building/Marketplace.php')
-rw-r--r--src/Model/Building/Marketplace.php32
1 files changed, 0 insertions, 32 deletions
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 @@
-<?php
-
-namespace App\Model\Building;
-
-use App\Model\Building;
-use App\Model\Unit\Merchant;
-use App\Model\Village;
-
-class Marketplace extends Building
-{
- public string $unitType = 'Merchant';
- public int $buildTimeFactor = 1;
- public int $maxLevel = 25;
-
- public array $resourceRequirementsBase = [
- 'wood' => 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;
- }
-}