Commit 789a1f2c by BellCodeEditor

save project

parent bcb5c737
Showing with 5 additions and 5 deletions
......@@ -5,20 +5,20 @@ class Hero:
self.hp=hp
self.attack=attack
def upgrade(self):
def upgrade(self):
self.level = self.level + 1
self.hp = self.hp + 999999
self.attack = self.attack + 900000000
LianDao = Hero('LianDao_ShengSiJiSu',90000000000000000000000000000000000000000000000000000000000000000000000000000000000,999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999)
LianDao = Hero('LianDao',90000000000000000000000000000000000000000000000000000000000000000000000000000000000,999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999)
LianDao_ZhongXingShouGe = Hero('LianDao_ZhongXingShouGe',9000000000000000000000000000,999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999)
LianDao_JiYuanZhanZheng = Hero('LianDao_JiYuanZhanZheng',5600000000000000000000000000000000000000000,19999999999999999999999999999999999999999999999999999999999999999999)
upgrade()
upgrade()
LianDao.upgrade()
LianDao.upgrade()
print(LianDao_ShengSiJiSu.attack)
print(LianDao.attack)
print(LianDao_ZhongXingShouGe.attack)
print(LianDao_JiYuanZhanZheng.attack)
......
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