From 6f0b518a4ecaf96e05e1fae8b5b3fe49e40d338b Mon Sep 17 00:00:00 2001 From: Chris Gillis Date: Tue, 22 Dec 2015 16:27:05 -0800 Subject: [PATCH] added lycan --- CHANGELOG | 1 + src/Game/Command/HelpCommand.php | 1 + src/Game/Command/SeeCommand.php | 2 +- src/Game/Role.php | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 471ee94..f1b6848 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -3,3 +3,4 @@ * Fixed issue with !guard and !kill not being able to find the targeted user * Fixed issue where game ends prematurely when Bodyguard is in the role pool * Added the Tanner role +* Added the Lycan role \ No newline at end of file diff --git a/src/Game/Command/HelpCommand.php b/src/Game/Command/HelpCommand.php index b14e54e..81b4501 100644 --- a/src/Game/Command/HelpCommand.php +++ b/src/Game/Command/HelpCommand.php @@ -18,6 +18,7 @@ public function fire() $help_msg .= "Special Roles\r\n------------------------\r\n"; $help_msg .= " |_ Seer - A villager who, once each night, is allowed to see the role of another player. The bot will private message you.\r\n"; $help_msg .= " |_ Tanner - A player not on the side of the villagers or the werewolves who wins if is killed.\r\n"; + $help_msg .= " |_ Lycan - A villager who appears to the Seer as a Werewolf.\r\n"; $help_msg .= " |_ Bodyguard - A villager who may protect a player from being eliminated once each night, but not the same person two nights in a row.\r\n\r\n"; $help_msg .= "Available Commands\r\n------------------------\r\n"; $help_msg .= "|_ !start - Starts a new game with everyone in the channel participating\r\n"; diff --git a/src/Game/Command/SeeCommand.php b/src/Game/Command/SeeCommand.php index 5036468..8ee5384 100644 --- a/src/Game/Command/SeeCommand.php +++ b/src/Game/Command/SeeCommand.php @@ -153,7 +153,7 @@ public function fire() continue; } - if ($player->role == Role::WEREWOLF) { + if ($player->role == Role::WEREWOLF || $player->role == Role::LYCAN) { $msg = "@{$player->getUsername()} is on the side of the Werewolves."; } else { $msg = "@{$player->getUsername()} is on the side of the Villagers."; diff --git a/src/Game/Role.php b/src/Game/Role.php index 0cadce9..ac1a0e1 100644 --- a/src/Game/Role.php +++ b/src/Game/Role.php @@ -7,4 +7,5 @@ class Role const WEREWOLF = "Werewolf"; const BODYGUARD = "Bodyguard"; const TANNER = "Tanner"; + const LYCAN = "Lycan"; } \ No newline at end of file