mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-20 21:40:27 -07:00
Implemented cooking curry and pita bread
This commit is contained in:
parent
cbeb422411
commit
c269949986
3 changed files with 34 additions and 7 deletions
|
|
@ -19310,6 +19310,14 @@
|
||||||
"archery_ticket_price": "0",
|
"archery_ticket_price": "0",
|
||||||
"id": "1866"
|
"id": "1866"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"examine": "It's all burnt.",
|
||||||
|
"durability": null,
|
||||||
|
"name": "Burnt pitta bread",
|
||||||
|
"tradeable": "true",
|
||||||
|
"archery_ticket_price": "0",
|
||||||
|
"id": "1867"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"durability": null,
|
"durability": null,
|
||||||
"name": "Burnt pitta bread",
|
"name": "Burnt pitta bread",
|
||||||
|
|
@ -20724,6 +20732,14 @@
|
||||||
"archery_ticket_price": "0",
|
"archery_ticket_price": "0",
|
||||||
"id": "2012"
|
"id": "2012"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"examine": "Eew, it's horribly burnt.",
|
||||||
|
"durability": null,
|
||||||
|
"name": "Burnt curry",
|
||||||
|
"tradeable": "true",
|
||||||
|
"archery_ticket_price":"0",
|
||||||
|
"id":"2013"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"durability": null,
|
"durability": null,
|
||||||
"name": "Burnt curry",
|
"name": "Burnt curry",
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,8 @@ public enum CookableItems {
|
||||||
FAT_SNAIL(3373, 3367, 3375, 22, 95, 73, 402, 73, 402),
|
FAT_SNAIL(3373, 3367, 3375, 22, 95, 73, 402, 73, 402),
|
||||||
|
|
||||||
// bread
|
// bread
|
||||||
BREAD(2309, 2307, 2311, 1, 40, 0, 0, 118, 492),
|
BREAD(2309, 2307, 2311, 1, 40, 118, 492, 118, 492),
|
||||||
|
PITTA_BREAD(1865, 1863, 1867, 58, 40,118, 492, 118, 492),
|
||||||
|
|
||||||
// cake
|
// cake
|
||||||
CAKE(1891, 1889, 1903, 40, 180, 0, 0, 38, 332),
|
CAKE(1891, 1889, 1903, 40, 180, 0, 0, 38, 332),
|
||||||
|
|
@ -79,6 +80,7 @@ public enum CookableItems {
|
||||||
|
|
||||||
// bowl foods
|
// bowl foods
|
||||||
BOWL_STEW(2003, 2001, 2005, 25, 117, 68, 392, 68, 392),
|
BOWL_STEW(2003, 2001, 2005, 25, 117, 68, 392, 68, 392),
|
||||||
|
BOWL_CURRY(2011, 2009, 2013, 60, 280, 38, 332, 38, 332),
|
||||||
BOWL_NETTLE(4239, 4237, 4239, 20, 52, 78, 412, 78, 412),
|
BOWL_NETTLE(4239, 4237, 4239, 20, 52, 78, 412, 78, 412),
|
||||||
BOWL_EGG(7078, 7076, 7090, 13, 50, 0, 0, 90, 438),
|
BOWL_EGG(7078, 7076, 7090, 13, 50, 0, 0, 90, 438),
|
||||||
BOWL_ONION(7084, 1871, 7092, 43, 60, 36, 322, 36, 322),
|
BOWL_ONION(7084, 1871, 7092, 43, 60, 36, 322, 36, 322),
|
||||||
|
|
|
||||||
|
|
@ -118,7 +118,8 @@ public class StandardCookingPulse extends Pulse {
|
||||||
effectiveCookingLevel -= 5;
|
effectiveCookingLevel -= 5;
|
||||||
}
|
}
|
||||||
CookableItems item = CookableItems.forId(food);
|
CookableItems item = CookableItems.forId(food);
|
||||||
int low, high;
|
int low;
|
||||||
|
int high;
|
||||||
if (hasGauntlets && CookableItems.gauntletValues.containsKey(food)) {
|
if (hasGauntlets && CookableItems.gauntletValues.containsKey(food)) {
|
||||||
int[] successValues = CookableItems.gauntletValues.get(food);
|
int[] successValues = CookableItems.gauntletValues.get(food);
|
||||||
low = successValues[0];
|
low = successValues[0];
|
||||||
|
|
@ -189,11 +190,19 @@ public class StandardCookingPulse extends Pulse {
|
||||||
if (CookableItems.intentionalBurn(food.getId())) {
|
if (CookableItems.intentionalBurn(food.getId())) {
|
||||||
return "You deliberately burn the perfectly good piece of meat.";
|
return "You deliberately burn the perfectly good piece of meat.";
|
||||||
}
|
}
|
||||||
if (!burned) {
|
|
||||||
|
if (!burned && food.getName().startsWith("Raw")) {
|
||||||
return "You manage to cook some " + food.getName().replace("Raw ", "");
|
return "You manage to cook some " + food.getName().replace("Raw ", "");
|
||||||
} else {
|
} else if (burned && food.getName().startsWith("Raw")) {
|
||||||
return "You accidentally burn some " + food.getName().replace("Raw ", "");
|
return "You accidentally burn some " + food.getName().replace("Raw ", "");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!burned && food.getName().startsWith(("Uncooked"))) {
|
||||||
|
return "You manage to cook some " + food.getName().replace("Uncooked ", "");
|
||||||
|
} else if (burned && food.getName().startsWith(("Uncooked"))) {
|
||||||
|
return "You accidentally burn some " + food.getName().replace("Uncooked ", "");
|
||||||
|
}
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
private Animation getAnimation(final Scenery object) {
|
private Animation getAnimation(final Scenery object) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue