Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. traceln(agent.getWish());
  2. traceln(current_food);
  3. if (agent.checkWish(current_food)) {
  4. if ((1 - take_probability) > uniform(0, 1)) {
  5. traceln("miss");
  6. return;
  7. }
  8. agent.takeWish(current_food);
  9. food_menu.get(current_food).addCount();
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement