Bale
Minion
Something isn't working properly for me with regards to sushi. Here's my output. The most important part is the very last line so feel free to skip to that:
Why do I get that error message? Here's my code. I highlighted the line that causes the error message.
Even trying to eat sushi from the CLI...
I feel I should be reporting this as a bug, but I cannot believe that nobody else has ever tried to eat sushi from the command line before, so I must be missing something simple.
Code:
Searching for "beefy fish meat"...
Searching for "glistening fish meat"...
Searching for "slick fish meat"...
Searching for "sea avocado"...
Searching for "sea carrot"...
Searching for "sea cucumber"...
Searching for "sea radish"...
Searching for "white rice"...
Purchasing white rice (1 @ 4,300)...
You acquire an item: white rice
Purchasing white rice (5 @ 4,300)...
You acquire white rice (5)
Purchases complete.
Using cached search results for sea carrot...
Purchasing sea carrot (2 @ 4,850)...
You acquire sea carrot (2)
Purchasing sea carrot (4 @ 4,850)...
You acquire sea carrot (4)
Purchases complete.
Using cached search results for slick fish meat...
Purchasing slick fish meat (6 @ 8,557)...
You acquire slick fish meat (6)
Purchases complete.
Searching for "seaweed"...
Purchasing seaweed (4 @ 5,000)...
You acquire seaweed (4)
Purchasing seaweed (2 @ 5,000)...
You acquire seaweed (2)
Purchases complete.
Verifying ingredients for sneaky rabbit roll (1)...
Creating/consuming sneaky rabbit roll (1 of 1)...
You gain 13 Adventures
You acquire an effect: Fishy (duration: 55 Adventures)
You gain 24 Magicalness
You gain 8 Chutzpah
Verifying ingredients for sneaky rabbit roll (1)...
Creating/consuming sneaky rabbit roll (1 of 1)...
You gain 11 Adventures
You acquire an effect: Fishy (duration: 55 Adventures)
You gain 23 Enchantedness
You gain 13 Sarcasm
[COLOR="Red"]You need 1 more sneaky rabbit roll to continue.[/COLOR]
Why do I get that error message? Here's my code. I highlighted the line that causes the error message.
Code:
void eat_fish() {
record comparison_shop {
item it;
int price;
};
comparison_shop [int] fishmeat;
fishmeat[0].it = $item[beefy fish meat];
fishmeat[1].it = $item[glistening fish meat];
fishmeat[2].it = $item[slick fish meat];
comparison_shop [int] veggie;
veggie[0].it = $item[sea avocado];
veggie[1].it = $item[sea carrot];
veggie[2].it = $item[sea cucumber];
veggie[3].it = $item[sea radish];
foreach i in fishmeat
fishmeat[i].price = mall_price(fishmeat[i].it);
sort fishmeat by fishmeat[index].price;
foreach i in veggie
veggie[i].price = mall_price(veggie[i].it);
sort veggie by veggie[index].price;
string sushi;
switch(veggie[0].it) {
case $item[sea cucumber]:
switch(fishmeat[0].it) {
case $item[beefy fish meat]:
sushi = "giant dragon roll";
break;
case $item[glistening fish meat]:
sushi = "wise dragon roll";
break;
case $item[slick fish meat]:
sushi = "tricky dragon roll";
break;
}
break;
case $item[sea carrot]:
switch(fishmeat[0].it) {
case $item[beefy fish meat]:
sushi = "musclebound rabbit roll";
break;
case $item[glistening fish meat]:
sushi = "white rabbit roll";
break;
case $item[slick fish meat]:
sushi = "sneaky rabbit roll";
break;
}
break;
case $item[sea avocado]:
switch(fishmeat[0].it) {
case $item[beefy fish meat]:
sushi = "python roll";
break;
case $item[glistening fish meat]:
sushi = "ancient serpent roll";
break;
case $item[slick fish meat]:
sushi = "slippery snake roll";
break;
}
break;
case $item[sea radish]:
switch(fishmeat[0].it) {
case $item[beefy fish meat]:
sushi = "Jack LaLanne roll";
break;
case $item[glistening fish meat]:
sushi = "wizened master roll";
break;
case $item[slick fish meat]:
sushi = "eleven oceans roll";
break;
}
break;
}
int x = floor((fullness_limit() - my_fullness())/3);
buy(x, $item[white rice]);
buy(x, veggie[0].it);
buy(x, fishmeat[0].it);
buy(x, $item[seaweed]);
for i from 1 upto x
[COLOR="Red"][B]cli_execute("use 1 "+ sushi);[/B][/COLOR]
}
Even trying to eat sushi from the CLI...
Code:
[COLOR="olive"]> use 1 sneaky rabbit roll[/COLOR]
Verifying ingredients for sneaky rabbit roll (1)...
Creating/consuming sneaky rabbit roll (1 of 1)...
You gain 14 Adventures
You acquire an effect: Fishy (duration: 55 Adventures)
You gain 21 Enchantedness
You gain 11 Smarm
Verifying ingredients for sneaky rabbit roll (1)...
Creating/consuming sneaky rabbit roll (1 of 1)...
You gain 11 Adventures
You acquire an effect: Fishy (duration: 55 Adventures)
You gain 21 Wizardliness
You gain 13 Sarcasm
[COLOR="Red"]You need 1 more sneaky rabbit roll to continue.[/COLOR]
I feel I should be reporting this as a bug, but I cannot believe that nobody else has ever tried to eat sushi from the command line before, so I must be missing something simple.