Cook all now works

This commit is contained in:
Ceikry 2020-03-01 01:23:44 -06:00
parent 8b07e874b2
commit 4b007ebd6c
2 changed files with 21 additions and 0 deletions

View file

@ -110,6 +110,14 @@ public final class CookingDialoguePlugin extends DialoguePlugin {
}
});
player.getDialogueInterpreter().sendInput(false, "Enter the amount:");
} else if (amount == 28){
player.setAttribute("runscript", new RunScript() {
@Override
public boolean handle() {
food.cook(player, object, amount);
return false;
}
});
}
food.cook(player, object, amount);
break;
@ -158,6 +166,9 @@ public final class CookingDialoguePlugin extends DialoguePlugin {
return 5;
case 4:
return -1;
case 3:
return 28;
}
return -1;
}

View file

@ -102,6 +102,14 @@ public final class CookingDialoguePlugin extends DialoguePlugin {
}
});
player.getDialogueInterpreter().sendInput(false, "Enter the amount:");
} else if (amount == 28) {
player.setAttribute("runscript", new RunScript() {
@Override
public boolean handle() {
food.cook(player, object, amount);
return false;
}
});
}
food.cook(player, object, amount);
break;
@ -150,6 +158,8 @@ public final class CookingDialoguePlugin extends DialoguePlugin {
return 5;
case 3:
return -1;
case 2:
return 28;
}
return -1;
}