Commit 80b96429 by BellCodeEditor

save project

parent 5933ffec
Showing with 18 additions and 0 deletions
class Hero:
def __init__(self,name,hp,attack):
self.level = 1
self.name = name
self.hp = hp
self.attack = attack
GUY = Hero("GUY",10492,10492)
INCENDIARYBOTTLEGIRL = Hero("INCENDIARYBOTTLEGIRL",10492,10492)
print("GUY的攻击力是:",GUY.attack)
print("INCENDIARYBOTTLEGIRL的攻击力是:",INCENDIARYBOTTLEGIRL.attack)
def update():
GUY.level = GUY.level + 10492
GUY.hp = GUY.hp + 10492
GUY.attack = GUY.attack + 10492
INCENDIARYBOTTLEGIRL.level = INCENDIARYBOTTLEGIRL.level + 10492
INCENDIARYBOTTLEGIRL.hp = INCENDIARYBOTTLEGIRL.hp + 10492
INCENDIARYBOTTLEGIRL.attack = INCENDIARYBOTTLEGIRL.attack + 10492
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