forked from Cryz/battle_royale_sim
add random health, random damage and show full player stats with emoji
This commit is contained in:
@@ -21,21 +21,21 @@ async def add_random_players(update, context, colors_names= False):
|
||||
|
||||
async def get_players(update, context):
|
||||
Arena= context.application.bot_data['arena']
|
||||
players= [p.get_name() for p in Arena.get_players()]
|
||||
players= [p.get_name_and_stats() for p in Arena.get_players()]
|
||||
players_str= '\n'.join(players)
|
||||
print(f'get_players: {players_str}')
|
||||
await update.message.reply_text(f'Ecco i giocatori presenti nel mondo do gioco: \n{players_str}')
|
||||
|
||||
async def get_alive_players(update, context):
|
||||
Arena= context.application.bot_data['arena']
|
||||
alive= [a.get_name() for a in Arena.get_alive_players()]
|
||||
alive= [a.get_name_and_stats() for a in Arena.get_alive_players()]
|
||||
alive_str= '\n'.join(alive)
|
||||
print(f'get_alive_players: {alive_str}')
|
||||
await update.message.reply_text(f'Ecco i giocatori ancora vivi: \n{alive_str}')
|
||||
|
||||
async def get_death_players(update, context):
|
||||
Arena= context.application.bot_data['arena']
|
||||
death= [d.get_name() for d in Arena.get_death_players()]
|
||||
death= [d.get_name_and_stats() for d in Arena.get_death_players()]
|
||||
death_str= '\n'.join(death)
|
||||
print(f'get_death_players: {death_str}')
|
||||
await update.message.reply_text(f'Ecco i giocatori morti x.x: \n{death_str}')
|
||||
|
||||
@@ -8,11 +8,11 @@ def get_winner(Arena):
|
||||
except: pass
|
||||
day= Arena.day
|
||||
if winner.player_gender_is_male():
|
||||
msg= f'{winner.get_name()} Vince la cruenta battaglia uccidendo {winner.get_kills()} giocatori, e vive felice e contento con Guarino'
|
||||
msg= f'{winner.get_name_and_stats()} Vince la cruenta battaglia uccidendo {winner.get_kills()} giocatori, e vive felice e contento con Guarino'
|
||||
elif winner.player_gender_is_female():
|
||||
msg= f'{winner.get_name()} Vince la cruenta battaglia uccidendo {winner.get_kills()} giocatori, e vive felice e contenta con Guarino'
|
||||
msg= f'{winner.get_name_and_stats()} Vince la cruenta battaglia uccidendo {winner.get_kills()} giocatori, e vive felice e contenta con Guarino'
|
||||
else:
|
||||
msg= f'{winner.get_name()} Vince la cruenta battaglia uccidendo {winner.get_kills()} giocatori, e vive felice e content# con Guarino'
|
||||
msg= f'{winner.get_name_and_stats()} Vince la cruenta battaglia uccidendo {winner.get_kills()} giocatori, e vive felice e content# con Guarino'
|
||||
return msg
|
||||
|
||||
async def simulate_day(context, chat_id):
|
||||
|
||||
Reference in New Issue
Block a user