diff --git a/src/Component/Map/Effects/Type/CloakUnuseableEffectHandler.php b/src/Component/Map/Effects/Type/CloakUnuseableEffectHandler.php index fc071332a..cf409d79b 100644 --- a/src/Component/Map/Effects/Type/CloakUnuseableEffectHandler.php +++ b/src/Component/Map/Effects/Type/CloakUnuseableEffectHandler.php @@ -29,7 +29,7 @@ public function handleIncomingSpacecraft(SpacecraftWrapperInterface $wrapper, Me $this->spacecraftSystemManager->deactivate($wrapper, SpacecraftSystemTypeEnum::CLOAK, true); $messages->addInformation( - sprintf("[color=yellow]Tarnung durch %s ausgefallen.[/color]", $spacecraft->getLocation()->getFieldType()->getName()), + sprintf("[color=yellow]Ionische Dispersion durch %s hat die Phasenmodulation des Tarnsystems gestört
Tarnsystem ausgefallen[/color]", $spacecraft->getLocation()->getFieldType()->getName()), $wrapper->get()->getUser()->getId() ); } diff --git a/src/Component/Map/Effects/Type/LSSMalfunctionEffectHandler.php b/src/Component/Map/Effects/Type/LSSMalfunctionEffectHandler.php new file mode 100644 index 000000000..3925594d4 --- /dev/null +++ b/src/Component/Map/Effects/Type/LSSMalfunctionEffectHandler.php @@ -0,0 +1,30 @@ +get(); + + $messages->addInformation( + sprintf("[color=yellow]Interferenz im Subraum durch %s detektiert
+ Langstreckensensoren sind aktiv, liefern jedoch keine verwertbaren Daten[/color]", $spacecraft->getLocation()->getFieldType()->getName()), + $wrapper->get()->getUser()->getId() + ); + } +} \ No newline at end of file diff --git a/src/Component/Map/Effects/Type/WarpdriveLeakEffectHandler.php b/src/Component/Map/Effects/Type/WarpdriveLeakEffectHandler.php index bd4e5d780..c5b948c36 100644 --- a/src/Component/Map/Effects/Type/WarpdriveLeakEffectHandler.php +++ b/src/Component/Map/Effects/Type/WarpdriveLeakEffectHandler.php @@ -35,7 +35,11 @@ public function handleIncomingSpacecraft(SpacecraftWrapperInterface $wrapper, Me $warpdrive->lowerWarpDrive($loss)->update(); $messages->addInformation( - sprintf("[color=yellow]Leck im Warpantrieb durch %s. (Verlust: %d)[/color]", $spacecraft->getLocation()->getFieldType()->getName(), $loss), + sprintf( + "[color=yellow]Fluktuationen im Warpplasmaleitungssystem durch %s festgestellt
Warpantriebs-Leckage verursacht Kapazitätsverlust von %s Cochrane[/color]", + $spacecraft->getLocation()->getFieldType()->getName(), + $loss + ), $wrapper->get()->getUser()->getId() ); } diff --git a/src/Component/Map/services.php b/src/Component/Map/services.php index b56dd4edf..f3b52e1fc 100644 --- a/src/Component/Map/services.php +++ b/src/Component/Map/services.php @@ -7,6 +7,7 @@ use Stu\Component\Map\Effects\EffectHandling; use Stu\Component\Map\Effects\EffectHandlingInterface; use Stu\Component\Map\Effects\Type\CloakUnuseableEffectHandler; +use Stu\Component\Map\Effects\Type\LSSMalfunctionEffectHandler; use Stu\Component\Map\Effects\Type\WarpdriveLeakEffectHandler; use Stu\Lib\Map\FieldTypeEffectEnum; @@ -18,6 +19,7 @@ 'handlerList', [ FieldTypeEffectEnum::CLOAK_UNUSEABLE->value => autowire(CloakUnuseableEffectHandler::class), + FieldTypeEffectEnum::LSS_MALFUNCTION->value => autowire(LSSMalfunctionEffectHandler::class), FieldTypeEffectEnum::WARPDRIVE_LEAK->value => autowire(WarpdriveLeakEffectHandler::class) ] ), diff --git a/src/Lib/Map/FieldTypeEffectEnum.php b/src/Lib/Map/FieldTypeEffectEnum.php index 12efefbec..9a01d0b40 100644 --- a/src/Lib/Map/FieldTypeEffectEnum.php +++ b/src/Lib/Map/FieldTypeEffectEnum.php @@ -15,7 +15,6 @@ enum FieldTypeEffectEnum: string public function hasHandler(): bool { return match ($this) { - self::LSS_MALFUNCTION => false, self::NO_SPACECRAFT_COUNT => false, self::DUBIOUS_SPACECRAFT_COUNT => false, default => true