Commit 0c6da095 by BellCodeEditor

auto save

parent 1c7c9e5e
Showing with 69 additions and 1 deletions
i import random
class Heimport random
class Hero(object):
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+=55
if self.hp>self.max_hp:
self.hp=self.max_hp
class player(Hero)
def __init__(self,name):
super(.)
\ 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