yqianjiang commited on
Commit
4ece764
·
1 Parent(s): 80bd9a3

info print

Browse files
Files changed (1) hide show
  1. Character.py +14 -15
Character.py CHANGED
@@ -199,23 +199,22 @@ class Character:
199
  # Display current attributes
200
  history = "\n".join(self.history)
201
  attributes = [
202
- f"Name: {self.name}",
203
- f"Gender: {self.gender}",
204
- f"Real Age: {self.real_age}",
205
- f"Apparent Age: {self.apparent_age}",
206
- f"Cultivation Level: {self.cultivation_level}",
207
- f"Cultivation Rank: ({self.cultivation_rank}){self.view_rank()}",
208
- f"Special Constitution: {self.special_constitution}",
209
- f"Spiritual Roots: {self.spiritual_roots}",
210
- f"Experience Points: {self.experience_points}",
 
 
 
211
  f"Combat Power: {self.combat_power}",
212
- f"Partner: {self.partner.name if self.partner is not None else ''}",
213
- f"Is Alive: {self.is_alive}",
214
  f"Buff: {self.buff}",
215
- f"Clan: {self.clan}",
216
- f"Parents: {[parent.name for parent in self.parents]}",
217
- f"Children: {[child.name for child in self.children]}",
218
- f"History: {history}",
219
  ]
220
  return "\n".join(attributes)
221
 
 
199
  # Display current attributes
200
  history = "\n".join(self.history)
201
  attributes = [
202
+ f"名字: {self.name}",
203
+ f"性别: {self.gender}",
204
+ f"年龄: {self.real_age}",
205
+ f"表观年龄: {self.apparent_age}",
206
+ f"修仙阶段: ({self.cultivation_rank}){self.view_rank()}",
207
+ f"特殊体质: {[special_constitution for (special_constitution, is_active) in zip(['战斗体质', '合欢体质', '灵龟体质', '蜉蝣体质'], self.special_constitution) if is_active]}",
208
+ f"灵根: {[spiritual_root for (spiritual_root, is_active) in zip(['金', '木', '水', '火', '土'], self.spiritual_roots) if is_active]}",
209
+ f"伴侣: {self.partner.name if self.partner is not None else ''}",
210
+ f"存活: {self.is_alive}",
211
+ f"宗族: {self.clan}",
212
+ f"父母: {[parent.name for parent in self.parents]}",
213
+ f"孩子: {[child.name for child in self.children]}",
214
  f"Combat Power: {self.combat_power}",
215
+ f"Experience Points: {self.experience_points}",
 
216
  f"Buff: {self.buff}",
217
+ f"历程: {history}",
 
 
 
218
  ]
219
  return "\n".join(attributes)
220