Commit e1ca825b by BellCodeEditor

save project

parent 073770fb
Showing with 6 additions and 0 deletions
...@@ -3,3 +3,8 @@ def cure(self): # 治疗 ...@@ -3,3 +3,8 @@ def cure(self): # 治疗
if self.hp > self.max_hp: if self.hp > self.max_hp:
self.hp = self.max_hp self.hp = self.max_hp
print(self.name + "使用了治疗,血量增加:",60,",目前的血量为:",self.hp) print(self.name + "使用了治疗,血量增加:",60,",目前的血量为:",self.hp)
houyi = player("射手""后羿")
yase = hero("亚瑟")
print(30 * '-')
print(' 战斗开始')
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment