Skip to content

Instantly share code, notes, and snippets.

@valeth
Created June 7, 2020 20:07
Show Gist options
  • Save valeth/7539c57cd67859a64534a04b7603263f to your computer and use it in GitHub Desktop.
Save valeth/7539c57cd67859a64534a04b7603263f to your computer and use it in GitHub Desktop.
def restore(current, item_sanity):
if current + item_sanity > 999:
return
else:
update_sanity(current + item_sanity)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment