Commit 49a73e42 by BellCodeEditor

auto save

parent 82d0511c
Showing with 4 additions and 2 deletions
class UT: class UT:
def __init__(UT,name,hp,attack): def __init__(UT,name,hp,attack):
UT.level=1
UT.name=name UT.name=name
UT.hp=hp UT.hp=hp
UT.attack=attack UT.attack=attack
...@@ -12,11 +13,11 @@ print(sans.attack) ...@@ -12,11 +13,11 @@ print(sans.attack)
print(paparuls.name) print(paparuls.name)
print(paparuls.hp) print(paparuls.hp)
print(paparuls.attack) print(paparuls.attack)
def up(): def up(UT):
Chara.hp=Chara.hp+19 Chara.hp=Chara.hp+19
Chara.attack=Chara.attack+9999994 Chara.attack=Chara.attack+9999994
up() up(UT)
print(Chara.name) print(Chara.name)
print(Chara.hp) print(Chara.hp)
print(Chara.attack) print(Chara.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