Commit 6146a515 by BellCodeEditor

save project

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