Commit da6f8576 by BellCodeEditor

save project

parent beb166ed
Showing with 16 additions and 0 deletions
import random
class Hero:
def _init_(self,same):
self.name=name
self.leven=1
self.attack=50
self.hp=250
self.max_hp=slef.hp
def gj(self,name):
name.hp=name.hp-self.attack
def zl(slef):
self.hp=slef.hp=name.hp+50
if selp.hp=self.max_hp:
if selp.hp=self.max_hp
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