diff --git a/src/defaultsettings.yml b/src/defaultsettings.yml index c00e4edd..30ad74ad 100644 --- a/src/defaultsettings.yml +++ b/src/defaultsettings.yml @@ -1123,11 +1123,11 @@ gameplay: &gameplay pool: _desc: > This number is multiplied with the number of players to determine how many total clue tokens - are available in the game. + are available in the game. Fractions are always rounded up. _type: - float - int - _default: 3 + _default: 3.2 bite: _desc: The maximum number of clue tokens drawn when someone is the target of a vampire bite. _type: int diff --git a/src/gamemodes/pactbreaker.py b/src/gamemodes/pactbreaker.py index 397cdfa3..074c0198 100644 --- a/src/gamemodes/pactbreaker.py +++ b/src/gamemodes/pactbreaker.py @@ -180,7 +180,7 @@ def on_start_game(self, evt: Event, var: GameState, mode_name: str, mode: GameMo pl = get_players(var) self.active_players.update(pl) # initialize clue pool - self.clue_pool = math.floor(config.Main.get("gameplay.modes.pactbreaker.clue.pool") * len(pl)) + self.clue_pool = math.ceil(config.Main.get("gameplay.modes.pactbreaker.clue.pool") * len(pl)) def on_send_role(self, evt: Event, var: GameState): pl = get_players(var) @@ -239,8 +239,8 @@ def build_deck(self, var: GameState, location: Location, visitors: set[User]) -> if location is Forest: deck = (["empty-handed", "evidence", "evidence"] - + (["hunted", "hunted"] * num_wolves) - + (["evidence", "evidence"] * num_other)) + + (["hunted", "hunted", "evidence"] * num_wolves) + + (["evidence", "evidence", "empty-handed"] * num_other)) num_draws = 2 elif location is VillageSquare: deck = (["empty_handed"] * (2 * max(0, num_visitors - 4)) @@ -698,7 +698,7 @@ def observe(self, wrapper: MessageDispatcher, message: str): target_role = "vigilante" if target in self.turned else "villager" self.collected_evidence[wrapper.source][target_role].add(target) - wrapper.send(messages["observe_success"].format(target, target_role)) + wrapper.send(messages["pactbreaker_observe_success"].format(target, target_role)) def identify(self, wrapper: MessageDispatcher, message: str): """Spend clue tokens to accurately learn about a player's role."""