Skip to content

Instantly share code, notes, and snippets.

@Abuwabu
Last active March 16, 2016 10:40
Show Gist options
  • Save Abuwabu/b50f5b403ccbdcd68348 to your computer and use it in GitHub Desktop.
Save Abuwabu/b50f5b403ccbdcd68348 to your computer and use it in GitHub Desktop.
Function Comment
/*
* Summary: Calculate hitpoints after attack using formula
* new = current - ((enemyStrength*3) - size)
* Parameters: cUser — object containing hero's stats
* Return: Boolean indicating life or death
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment