summaryrefslogtreecommitdiff
path: root/src/Model/Building
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
parent6301f63bd348109b8693a922f02e16d49205a8fd (diff)
send resources
Diffstat (limited to 'src/Model/Building')
-rw-r--r--src/Model/Building/Embassy.php2
-rw-r--r--src/Model/Building/PostOffice.php (renamed from src/Model/Building/Marketplace.php)12
-rw-r--r--src/Model/Building/TownHall.php2
3 files changed, 8 insertions, 8 deletions
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/PostOffice.php
index 8978003..5765a0f 100644
--- a/src/Model/Building/Marketplace.php
+++ b/src/Model/Building/PostOffice.php
@@ -3,13 +3,13 @@
namespace App\Model\Building;
use App\Model\Building;
-use App\Model\Unit\Merchant;
+use App\Model\Unit\MailCarrier;
use App\Model\Village;
-class Marketplace extends Building
+class PostOffice extends Building
{
- public string $unitType = 'Merchant';
- public int $buildTimeFactor = 1;
+ public string $unitType = 'MailCarrier';
+ public int $buildTimeFactor = 5;
public int $maxLevel = 25;
public array $resourceRequirementsBase = [
@@ -25,8 +25,8 @@ class Marketplace extends Building
public static function getResourceCapabilities(Village $village): int
{
- $merchants = Village::getUnit($village, 'Merchant', Village::FETCH_UNIT_RESIDENCE, Village::RETURN_UNIT_EXISTING);
+ $mailCarriers = Village::getUnit($village, 'MailCarrier', Village::FETCH_UNIT_RESIDENCE, Village::RETURN_UNIT_EXISTING);
- return Merchant::getResourceCapabilities($village) * $merchants->amount;
+ 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 = [