Skip to content

Commit

Permalink
feat(fight/plunder): Added win probability to scout
Browse files Browse the repository at this point in the history
  • Loading branch information
Nickelza committed May 8, 2024
1 parent a8aba31 commit f9b441a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/phrases.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,8 @@ def surround_with_arrows(text: str) -> str:
FIGHT_PLUNDER_SCOUT_USER_GROUP = "Are you sure you want to scout {}?\nIt will cost you ฿*{}*"
FIGHT_PLUNDER_SCOUT_SEARCH = "Would you like to scout for an opponent?" + FIGHT_PLUNDER_SCOUT_FEE
FIGHT_PLUNDER_SCOUT_SEARCH_USER = (
"Opponent: *{}*\nPotential win: ฿*{}*\nPotential loss: ฿*{}*{}\n\nNext scouting fee: "
" ฿*{}*\nCurrent bounty: ฿*{}*"
"Opponent: *{}*\nWin probability: *{}%*\nPotential win: ฿*{}*\nPotential loss: ฿*{}*{}\n\nNext"
" scouting fee: ฿*{}*\nCurrent bounty: ฿*{}*"
)
FIGHT_PLUNDER_SCOUT_SEARCH_USER_NEW = "New opponent found!\n\n"
FIGHT_PLUNDER_SCOUT_USER_JAIL_TIME = "\nPotential jail time: *{}*"
Expand Down
1 change: 1 addition & 0 deletions src/service/fight_plunder_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ async def private_send_scout_request(
next_scout_fee = get_scout_fee(user, False, scout_type)
caption = phrases.FIGHT_PLUNDER_SCOUT_SEARCH_USER.format(
opponent.get_markdown_name(),
win_probability,
get_belly_formatted(win_amount),
get_belly_formatted(lose_amount),
potential_jail_time_text,
Expand Down

0 comments on commit f9b441a

Please sign in to comment.