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