Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Buttons/Turn.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ async def passForRound(player, game: GamestateHelper, interaction: discord.Inter
view2 = View()
view2.add_item(Button(label="Pass Unless Someone Attacks You",
style=discord.ButtonStyle.green, custom_id="permanentlyPass"))
await asyncio.sleep(1)
await interaction.followup.send(interaction.user.mention + " you may use this button to pass on reactions"
" unless someone invades your systems.", view=view2, ephemeral=True)

Expand Down
6 changes: 3 additions & 3 deletions commands/search_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,8 @@ async def stats(self, interaction: discord.Interaction, tourney_only:bool=False)
for player in game.gamestate["players"]:
username = game.gamestate["players"][player]["username"]
if "(" in username:
username = username.split("(")[0]
vp_count[username] += int(100*drawing.get_public_points(game.gamestate["players"][player], True)/highestVP)
username = username.split("(")[0].replace(" ","")
vp_count[username] += float(100.0*drawing.get_public_points(game.gamestate["players"][player], True)/highestVP)
if game.gamestate["roundNum"] == 9:
finished_tourney_games[username] += 1
else:
Expand Down Expand Up @@ -347,6 +347,6 @@ async def stats(self, interaction: discord.Interaction, tourney_only:bool=False)
for faction, count in faction_performance.most_common():
relative_faction_performance[faction] += int(count/max_faction_performance[faction] * 100)
for faction, count in relative_faction_performance.most_common():
summary += f"{faction}: {count} out of 100 possible points\n"
summary += f"{faction}: {count} out of 100 possible points (in {str(max_faction_performance[faction]/100)} games)\n"
asyncio.create_task(interaction.channel.send(summary) )

Loading