File size: 941 Bytes
0b75c79 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
def to_round_result(round_effect_dict, round_result_explanation):
vocab_dictionary = {
"life": "์๋ช
๋ ฅ์ด",
"money": "๋์ด",
"stamina": "์ฒด๋ ฅ์ด",
"intelligence": "์ง๋ฅ์ด",
"combat_power": "์ ํฌ๋ ฅ์ด",
"agility": "๋ฏผ์ฒฉ์ฑ์ด",
}
round_effect_str = ""
for status in ['player_restriction', 'player_capability']:
for key, value in round_effect_dict[status].items():
if value > 0:
round_effect_str += f"{vocab_dictionary[key]} {value}๋งํผ ์ฆ๊ฐํ์ต๋๋ค. "
elif value == 0:
round_effect_str += f"{vocab_dictionary[key]} ๋ณํํ์ง ์์์ต๋๋ค. "
else:
round_effect_str += f"{vocab_dictionary[key]} {value*(-1)}๋งํผ ๊ฐ์ํ์ต๋๋ค. "
return round_effect_str + round_result_explanation
def player_profile_to_str(player_profile_dict):
return '\n' + '\n'.join([f"{key}: {value}" for key, value in player_profile_dict.items()]) |