-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35 from sebastianluczak/feature/initiative-rolls-…
…and-uncommon-loot-support Feature/initiative rolls and uncommon loot support
- Loading branch information
Showing
42 changed files
with
533 additions
and
244 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
namespace App\Enum\Creature; | ||
|
||
use MyCLabs\Enum\Enum; | ||
|
||
/** | ||
* @method static LEGENDARY() | ||
* @method static ELITE() | ||
* @method static NORMAL() | ||
*/ | ||
class CreatureClassEnum extends Enum | ||
{ | ||
private const LEGENDARY = 150; | ||
private const ELITE = 120; | ||
private const NORMAL = 80; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
namespace App\Enum\Misc; | ||
|
||
use MyCLabs\Enum\Enum; | ||
|
||
/** | ||
* @method static FLIP_EM_ALL_TABLES() | ||
*/ | ||
class AsciiEmoticonEnum extends Enum | ||
{ | ||
private const FLIP_EM_ALL_TABLES = '┻━┻︵ \(°□°)/ ︵ ┻━┻ '; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
namespace App\Message; | ||
|
||
/** | ||
* Used at: | ||
* DevRoomSpawnHandler::__invoke() | ||
*/ | ||
class DevRoomSpawnMessage | ||
{ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
|
||
namespace App\MessageHandler; | ||
|
||
use App\Enum\MessageClassEnum; | ||
use App\Enum\Misc\AsciiEmoticonEnum; | ||
use App\Message\AddAdventureLogMessage; | ||
use App\Message\DevRoomSpawnMessage; | ||
use App\Message\RegenerateMapMessage; | ||
use App\Service\GameService; | ||
use Symfony\Component\Messenger\Handler\MessageHandlerInterface; | ||
use Symfony\Component\Messenger\MessageBusInterface; | ||
|
||
class DevRoomSpawnHandler implements MessageHandlerInterface | ||
{ | ||
protected MessageBusInterface $messageBus; | ||
protected GameService $gameService; | ||
|
||
public function __construct(MessageBusInterface $messageBus, GameService $gameService) | ||
{ | ||
$this->messageBus = $messageBus; | ||
$this->gameService = $gameService; | ||
} | ||
|
||
public function __invoke(DevRoomSpawnMessage $message) | ||
{ | ||
$this->messageBus->dispatch(new AddAdventureLogMessage("[ADMIN] " . AsciiEmoticonEnum::FLIP_EM_ALL_TABLES() . " DevRoom generating.", MessageClassEnum::DEVELOPER())); | ||
$this->gameService->getMapService()->generateDevRoomMap(); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.