Commit cadc1cea by BellCodeEditor

save project

parent 9a22a9d6
Showing with 6332 additions and 0 deletions
class Hero():
def __init__(self,name):
self.name=name
self.level=1
self.hp=250
self.attack=40
self.max_hp=self.hp
def cure(self):
self.hp=self.hp+60
if self.hp>self.max_hp:
self.hp=self.max_hp
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