paradoxed

Untitled

Mar 4th, 2016
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. public class FighterHealHandler extends TaskNode {
  2. @Override
  3. public boolean accept() {
  4. return Methods.canHeal();
  5. }
  6.  
  7. @Override
  8. public int execute() {
  9. Item food = getInventory().get(Methods.fighterFoodType);
  10.  
  11. if (food != null) {
  12. if (food.interact("Eat")) {
  13. Methods.Status = "Eating: " + Methods.fighterFoodType;
  14. }
  15. }
  16. return 0;
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment