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()]) |