Skip to content

Instantly share code, notes, and snippets.

@czipperz
Last active August 29, 2015 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save czipperz/6f4698279d8063c678ec to your computer and use it in GitHub Desktop.
Save czipperz/6f4698279d8063c678ec to your computer and use it in GitHub Desktop.
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