Guest User

Untitled

a guest
Jul 18th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. public int eat()
  2. {
  3. int curHP = skills.getCurrentSkillLevel(STAT_HITPOINTS);
  4. double eat = random(skills.getRealSkillLevel(STAT_HITPOINTS) * 0.4, skills.getRealSkillLevel(STAT_HITPOINTS)* 0.6);
  5. if (curHP <= eat) {
  6. clickInventoryItem(FOOD_IDS, "Eat");
  7. return 200;
  8. }
  9. return 10;
  10. }
Add Comment
Please, Sign In to add comment