Skip to content

Commit

Permalink
fix enum identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
g5bot committed Jun 25, 2023
1 parent 9b736cd commit c2033c6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions src/Module/Tick/Ship/Crew/CrewLimitations.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
namespace Stu\Module\Tick\Ship\Crew;

use InvalidArgumentException;
use Stu\Component\Game\GameEnum;
use Stu\Component\Player\CrewLimitCalculatorInterface;
use Stu\Component\Ship\System\ShipSystemManagerInterface;
use Stu\Module\Logging\LoggerUtilFactoryInterface;
use Stu\Module\Logging\LoggerUtilInterface;
use Stu\Module\Message\Lib\PrivateMessageFolderSpecialEnum;
use Stu\Module\Message\Lib\PrivateMessageSenderInterface;
use Stu\Module\PlayerSetting\Lib\UserEnum;
use Stu\Module\Ship\Lib\Battle\AlertRedHelperInterface;
use Stu\Module\Ship\Lib\ShipWrapperFactoryInterface;
use Stu\Orm\Repository\CrewRepositoryInterface;
Expand Down Expand Up @@ -123,7 +123,7 @@ private function letColonyAssignmentsQuit(int $userId, int $crewToQuit): int
if ($amount > 0) {
$msg = sprintf(_('Wegen Überschreitung des globalen Crewlimits haben %d Crewman ihren Dienst auf deinen Kolonien quittiert'), $amount);
$this->privateMessageSender->send(
GameEnum::USER_NOONE,
UserEnum::USER_NOONE,
$userId,
$msg,
PrivateMessageFolderSpecialEnum::PM_SPECIAL_COLONY
Expand All @@ -149,7 +149,7 @@ private function letTradepostAssignmentsQuit(int $userId, int $crewToQuit): int
if ($amount > 0) {
$msg = sprintf(_('Wegen Überschreitung des globalen Crewlimits haben %d deiner Crewman auf Handelsposten ihren Dienst quittiert'), $amount);
$this->privateMessageSender->send(
GameEnum::USER_NOONE,
UserEnum::USER_NOONE,
$userId,
$msg,
PrivateMessageFolderSpecialEnum::PM_SPECIAL_SYSTEM
Expand All @@ -175,7 +175,7 @@ private function letEscapePodAssignmentsQuit(int $userId, int $crewToQuit): int
if ($amount > 0) {
$msg = sprintf(_('Wegen Überschreitung des globalen Crewlimits haben %d deiner Crewman auf Fluchtkapseln ihren Dienst quittiert'), $amount);
$this->privateMessageSender->send(
GameEnum::USER_NOONE,
UserEnum::USER_NOONE,
$userId,
$msg,
PrivateMessageFolderSpecialEnum::PM_SPECIAL_SYSTEM
Expand Down Expand Up @@ -240,7 +240,7 @@ private function letCrewQuit(int $randomShipId, int $userId): int

$msg = sprintf(_('Wegen Überschreitung des globalen Crewlimits hat die Crew der %s gemeutert und das Schiff verlassen'), $randomShip->getName());
$this->privateMessageSender->send(
GameEnum::USER_NOONE,
UserEnum::USER_NOONE,
$userId,
$msg,
$randomShip->isBase() ? PrivateMessageFolderSpecialEnum::PM_SPECIAL_STATION : PrivateMessageFolderSpecialEnum::PM_SPECIAL_SHIP
Expand Down
8 changes: 4 additions & 4 deletions src/Module/Tick/Ship/Repair/RepairActions.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
use Stu\Component\Building\BuildingEnum;
use Stu\Component\Colony\ColonyFunctionManagerInterface;
use Stu\Component\Colony\Storage\ColonyStorageManagerInterface;
use Stu\Component\Game\GameEnum;
use Stu\Component\Ship\Repair\RepairUtilInterface;
use Stu\Component\Ship\ShipStateEnum;
use Stu\Component\Ship\System\ShipSystemManagerInterface;
use Stu\Module\Logging\LoggerUtilFactoryInterface;
use Stu\Module\Logging\LoggerUtilInterface;
use Stu\Module\Message\Lib\PrivateMessageFolderSpecialEnum;
use Stu\Module\Message\Lib\PrivateMessageSenderInterface;
use Stu\Module\PlayerSetting\Lib\UserEnum;
use Stu\Module\Ship\Lib\ShipWrapperFactoryInterface;
use Stu\Orm\Entity\ColonyInterface;
use Stu\Orm\Entity\ShipInterface;
Expand Down Expand Up @@ -112,7 +112,7 @@ private function proceedSpareParts(): void
);

$this->privateMessageSender->send(
GameEnum::USER_NOONE,
UserEnum::USER_NOONE,
$colony->getUser()->getId(),
sprintf(
_('Es wurden %d %s hergestellt'),
Expand Down Expand Up @@ -285,7 +285,7 @@ private function repairShipOnEntity(ShipInterface $ship, ColonyInterface|ShipInt
);

$this->privateMessageSender->send(
GameEnum::USER_NOONE,
UserEnum::USER_NOONE,
$ship->getUser()->getId(),
$shipOwnerMessage,
PrivateMessageFolderSpecialEnum::PM_SPECIAL_SHIP
Expand All @@ -307,7 +307,7 @@ private function repairShipOnEntity(ShipInterface $ship, ColonyInterface|ShipInt
);

$this->privateMessageSender->send(
GameEnum::USER_NOONE,
UserEnum::USER_NOONE,
$entity->getUser()->getId(),
$entityOwnerMessage,
$isColony ? PrivateMessageFolderSpecialEnum::PM_SPECIAL_COLONY :
Expand Down

0 comments on commit c2033c6

Please sign in to comment.