Closed Vgr255 closed 6 years ago
I would rather keep "neutral" alongside "win stealer" -- it makes the code SO MUCH NICER than if we separate them into two separate categories.
Neutral does not mean "teamless", it just means "not on wolf team and not on village team". Win stealer roles are therefore neutral by that definition, and it makes roles which interact with neutrals as well as the stop_game code to determine winners a lot cleaner if all neutrals (including win stealers) are lumped together in that category.
My design for the categories is (in general) as follows:
Unless you have any specific objections, I'll be reverting that change in due course.
Hmm, makes sense actually! My motivation behind the change was in the case of some role which cared about which roles win as a team vs which roles win individually (while being a win stealer). I didn't realize that "neutral" had the implication of being a core game mechanic.
However, I still think that there should be a way to distinguish roles that win as a team such as monsters, pipers, succubi etc., and roles that don't, such as fool, but there probably is a better way to do it than hijacking the "neutral" tag. Maybe a "tertiary team" tag or something alike? That would imply the role is responsible for handling that kind of stuff. Don't bother reverting, I'll do it in my next push (won't add anything else for now).
Open questions: Should a set containing more than one of village, wolfteam, or neutral be considered an error? Should also all win stealers be neutral and not any other team?
Additionally and unrelatedly, is it worth trying to figure out a common set that encapsulates all roles that amnesiac can't turn into? There is some logic to it, we just haven't laid it out - doing so would maybe help us figure out a tag for that.
Possible new tags to add (names placeholders, feel free to change):
default
: roles with no ability or anything. includes villager and cultist, and maybe drunk
beginning
: roles which only act at the beginning of the game. includes matchmaker, clone, wild child, and possibly minion
longterm
: roles which need time to properly setup whatever condition they have. includes piper and dullahan, and maybe doctor (although it might fit more in beginning)
wolf-like
(team-switcher
?): roles which are not wolves but may become so during game. includes lycan and wild child, and also traitor possibly
unsafe
: roles for which their game winning chance is greatly altered (either in a good or bad way) by having their standing with village altered in any way. includes fool and jester
tertiary
: roles which are part of another, tertiary team. may or may not be win stealers. includes succubus, monster, piper, and demoniac. no use for it yet
Actual applications of the new tags:
default
, win stealer
, beginning
, longterm
}
beginning
and longterm
into one I guesswolf
, cursed
, unsafe
}wolfteam
, wolf-like
, unsafe
}unsafe
, win stealer
}wolf
, wolf-like
}villager
}The safe
category doesn't make much sense right now... Seer seeing the player as the role they are should be the default behaviour, and that should be altered by other categories, such as innocent
, cursed
, etc. I propose we remove the category - or, rather, re-purpose the name to mean "roles that have a good standing with village", using it for the restrictions for assassin instead.
Speaking of secondary roles restrictions, I've come up with a simple syntax for that. It would look like this:
self.SECONDARY_ROLES = {
"cursed villager": ["*", "-cursed", "-wolf", "-unsafe"],
"gunner": ["village", "neutral", "hidden", "-unsafe", "-team-switcher"],
"sharpshooter": ["village", "neutral", "hidden", "-unsafe", "-team-switcher"],
"mayor": ["*", "-unsafe", "-win stealer"],
"assassin": [...], # haven't quite figured that one out yet (see also above)
"blessed villager": ["default", "-wolfteam"],
}
where "*"
means to add all roles to the whitelist. Any tag adds all relevant roles to the whitelist, and a tag preceded by a -
removes all relevant roles from the whitelist. It's a whitelist in essence, but can be used as a blacklist with the use of minus signs. All categories are evaluated in order, so you could do some interesting stuff with it.
I have a working proof-of-concept on my bot if you're interested.
Additional questions:
team-switcher
? So far lycan and wild child are.team-switcher
?villager and cultist are special in that have some hardcoded stuff in core gameplay; you can tag them if you want but nothing else should additionally be in that category (drunk doesn't fit, for instance). "default" seems like a bad choice, since that implies that they are the default roles (when indeed any role can be a default role now with this PR). Amnesiac hardcoding villager and cultist seems fine to me, given that.
beginning: part of this PR is eliminating that entirely. I see value in a tag that indicates the role is required to act the first time that they have the opportunity to, but I'm removing night 1 restrictions as part of this PR so that amnesiac can be matchmaker, wild child, etc. and that exchanging into matchmaker lets you act and choose another set of lovers.
longterm: I don't see the point of this. piper is covered from win stealer, and amnesiac-dullahan can still win because they'll get a much smaller list n3 than they would n1.
unsafe: this confuses me, and seems like it is already covered by neutral combined with some other tag.
tertiary: don't add tags unless they're going to actually be used right now (i.e. as part of this PR)
safe: Seer seeing villager vs wolf as the default makes far more sense than the reverse; we have more roles that are seen as one of those two categories than roles that are seen as the actual role. Plus, this tag does far more than impact seer -- it also has meaning for wolf mystic and the evilvillage game mode. Neatly enough, the roles that need special handling for all 3 of those things are exactly the same; it's not a case where one is a subset of the other or diverge a bit, it's literally the same roles in all 3 cases. There is no reason to split that into multiple tags.
secondary roles: we need to be able to specify actual role names in addition to categories. Otherwise, that syntax looks fine, and I like how it mostly follows the same format as role guide.
I would consider both turncoat and amnesiac to be team-switchers
Ah, I didn't realize mystic was using that category as well. I still think that seer should, by default, see the actual role that the person is, but if you tell me that it's better that way, I'll take your word for it! I agree with all the other points :)
Opening PR so reviewing/commenting is easier. Don't merge yet.