Commit b08ab278 by BellCodeEditor

save project

parent 22354288
Showing with 23 additions and 0 deletions
#~ 洪荒 ~ 源码
class Hero:
def __init__(self,name,hp,attack):
self.level = 1
self.name = name
self.hp = hp
self.attack = attack
def Zupgrade(self):
self.level = self.level + 1
self.hp = self.hp + 60
self.attack = self.attack + 35
def Fupgrade(self):
self.level = self.level + 1
self.hp = self.hp + 110
self.attack = self.attack + 10
#仙人阵营
TSLJ = Hero('太上老君',500,35)
YHDD = Hero('玉皇大帝',450,45)
#妖族阵营
DHTY = Hero('东皇太一',700,20)
DJ = Hero('妲己',200,55)
#作弊隐藏角色(慎用)
TDHJ = Hero('天道鸿钧',99999999999,9999999999)
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