money = 0
health = 100
def player_addhealth(addhealth):
health + addhealth
print("[DBG] Health added! now health = " + str(health))
def player_sethealth(sethealth):
health = sethealth
print("[DBG] Health set! now health = " + str(health))
def player_removehealth(removehealth):
health - removehealth
print("[DBG] Health removed! now health = " + str(health))
def player_addmoney(addmoney):
money + addmoney
print("[DBG] Money added! now money = " + str(money))
def player_setmoney(setmoney):
money = setmoney
print("[DBG] money set! now money = " + str(money))
def player_removemoney(removemoney):
money - removemoney
print("[DBG] Money removed! now money = " + str(money))
def player_showmoney():
print("Money: " + str(money))
def player_showhealth():
print("Health: " + str(health))
def player_debuginfo():
player_showmoney()
player_showhealth()
print("[DBG] Info on screen!")
print(money)
print(health)
player_addmoney(10)
print(money)