Commit 4bb1ff2e by BellCodeEditor

save project

parent fc6e2008
Showing with 19 additions and 5 deletions
......@@ -8,14 +8,27 @@ yase=Hero('yase',300,20)
hy=Hero('hy',250,23)
k=Hero('K',5600,199)
def:
print(yase.attack)
print(hy.attack)
print(k.attack)
self.level=self.level+1
self.level=self.level+1
self.hp=self.hp+50
self.attack=self.attack+4
upgrade()
upgrade(yase)
print("等级"self.houyi.level)
print("血量"self.houyi.up)
print("攻击力"self.houyi.attack)
self.(mozi):
self.level=self.level+1
self.hp=self.hp+1000
self.attack=self.attack+200
print("等级"self.mozi.level)
print("血量"self.mozi.up)
print("攻击力"self.mozi.attack)
self.(lubu):
self.level=self.level+1
self.hp=self.hp+1200
self.attack=self.attack+230
print("等级"self.lubu.level)
print("血量"self.lubu.up)
print("攻击力"self.lubu.attack)
\ 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