Commit 67002643 by BellCodeEditor

save project

parent d6c81a0f
Showing with 22 additions and 0 deletions
def upgrade():
silf.level=silf.level+1
silf.hp= silf.hp+50
silf.attack=silf.attack+4
class heao(object):
def__init__(self,name):
self.level =1
self.hp=1000
self.attack=2000
self.name=name
def combat():
infort1=self.name+"对"+name+"发起进攻"
infort2=self.'造成'+str(self.attack)+'点伤害'
enemy.hp=self.attack
if enemy.hp>0:
info3=enemy.nam+"阵亡"
info=info1+info2+info3
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