summaryrefslogtreecommitdiff
path: root/src/Model/Unit/Merchant.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Model/Unit/Merchant.php')
-rw-r--r--src/Model/Unit/Merchant.php33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/Model/Unit/Merchant.php b/src/Model/Unit/Merchant.php
deleted file mode 100644
index be0b25e..0000000
--- a/src/Model/Unit/Merchant.php
+++ /dev/null
@@ -1,33 +0,0 @@
-<?php
-
-namespace App\Model\Unit;
-
-use App\Model\Unit;
-use App\Model\Village;
-
-class Merchant extends Unit
-{
- public string $buildingType = 'Marketplace';
- public int $travelTime = 1;
- public int $populationDemandFactor = 1;
-
- public array $resourceRequirementsBase = [
- 'wood' => 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
- {
- $marketplace = Village::getBuilding($village->id ?? $village, 'Marketplace');
-
- return $marketplace->level * 100;
- }
-}