Commit 9f7a2270 by BellCodeEditor

save project

parent 981f71d1
Showing with 9 additions and 3 deletions
...@@ -4,7 +4,14 @@ class UNDERTALE: ...@@ -4,7 +4,14 @@ class UNDERTALE:
self.name = name self.name = name
self.hp = hp self.hp = hp
self.attack = attack self.attack = attack
def LOVE_UP():
Sans.LOVE = Sans.LOVE + 1
Sans.hp = Sans.hp + 7
Sans.attack = Sans.attack + 20
Sans = UNDERTALE("Sans",1,1) Sans = UNDERTALE("Sans",1,1)
Papyrus = UNDERTALE("Papyrus",680,40)
print("Sans's hp =",Sans.hp) print("Sans's hp =",Sans.hp)
print("Papyrus's hp =",Papyrus.hp) LOVE_UP()
\ No newline at end of file LOVE_UP()
print("Sans's hp =",Sans.hp)
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