Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public int eat()
- {
- int curHP = skills.getCurrentSkillLevel(STAT_HITPOINTS);
- double eat = random(skills.getRealSkillLevel(STAT_HITPOINTS) * 0.4, skills.getRealSkillLevel(STAT_HITPOINTS)* 0.6);
- if (curHP <= eat) {
- clickInventoryItem(FOOD_IDS, "Eat");
- return 200;
- }
- return 10;
- }
Add Comment
Please, Sign In to add comment