From f9b441af91ada8922e59413c8251d0c631a5838c Mon Sep 17 00:00:00 2001 From: Nickelza Date: Wed, 8 May 2024 21:58:52 +0200 Subject: [PATCH] feat(fight/plunder): Added win probability to scout --- resources/phrases.py | 4 ++-- src/service/fight_plunder_service.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/resources/phrases.py b/resources/phrases.py index edcfb34..26086a2 100644 --- a/resources/phrases.py +++ b/resources/phrases.py @@ -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: *{}*" diff --git a/src/service/fight_plunder_service.py b/src/service/fight_plunder_service.py index b33e16d..e6b80a6 100644 --- a/src/service/fight_plunder_service.py +++ b/src/service/fight_plunder_service.py @@ -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,