Last active
August 29, 2015 14:11
-
-
Save czipperz/6f4698279d8063c678ec to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int maxHealth = 600, currentHealth=maxHealth; | |
int essenceShiftStacks=0; | |
int baseDamage=60; | |
int burstFromPounce = 60; | |
public int getSlarkDamage() { | |
return baseDamage + 3*essenceShiftStacks; | |
} | |
public static void main(String[] args) { | |
new Start(); | |
} | |
public Start() { | |
getHealthRemaining3Hits(); | |
System.out.println(currentHealth + "/" + maxHealth); | |
} | |
public void getHealthRemaining3Hits() { | |
getHealthRemaining1Hit(); getHealthRemaining1Hit(); getHealthRemaining1Hit(); | |
currentHealth -= burstFromPounce; | |
} | |
public void getHealthRemaining1Hit() { | |
//One strength is 19 hit points | |
maxHealth -= 19; | |
currentHealth = currentHealth * maxHealth / (maxHealth + 19); | |
currentHealth -= getSlarkDamage(); | |
essenceShiftStacks++; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment