Commit 6146a515 by BellCodeEditor

save project

parent 9f7a2270
Showing with 8 additions and 7 deletions
...@@ -5,13 +5,14 @@ class UNDERTALE: ...@@ -5,13 +5,14 @@ class UNDERTALE:
self.hp = hp self.hp = hp
self.attack = attack self.attack = attack
def LOVE_UP(): def LOVE_UP(self):
Sans.LOVE = Sans.LOVE + 1 self.LOVE = self.LOVE + 1
Sans.hp = Sans.hp + 7 self.hp = self.hp + 7
Sans.attack = Sans.attack + 20 self.attack = self.attack + 20
Sans = UNDERTALE("Sans",1,1) Sans = UNDERTALE("Sans",1,1)
Sans.LOVE_UP()
print("Sans's LOVE =",Sans.LOVE)
print("Sans's hp =",Sans.hp) print("Sans's hp =",Sans.hp)
LOVE_UP() print("Sans's attack =",Sans.attack)
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