Esempio n. 1
0
// Reveal evils to Merlin, but not Mordred
func (avalon *AvalonCommand) revealToMerlin(bot *models.Bot) {
	merlin := avalon.game.SpecialCharacters["merlin"]
	merlinSees := avalon.game.EvilCharactersWithoutMordred()

	resp := fmt.Sprintf("You see the Minions of Mordred: %s.", cmodels.ListNicks(merlinSees))
	bot.Connection.Say(merlin, resp)
}
Esempio n. 2
0
// Evils see each other, except for Oberon
func (avalon *AvalonCommand) revealToEvils(bot *models.Bot) {
	visibleEvils := avalon.game.EvilCharactersWithoutOberon()
	resp := fmt.Sprintf(evilTeamFormatString, cmodels.ListNicks(visibleEvils))

	for _, evil := range visibleEvils {
		bot.Connection.Say(evil, resp)
	}
}