Theraze
Active member
This is about the 3rd ascension that I have hit this infinite loop bug:
<snip>
The orchard routine needs an exit condition if obtain fails due to lack of adventures.
I actually mentioned this on post 627 (and you've been posting about the bug since April, if my thread-searching proves valid?) and suggested the following code into each loop.
PHP:
if (my_adventures() == 0) die("Come back tomorrow for more of the same exciting filth!");
Tried putting it in various other places, but it just broke the script... So the entire actual heart-collection now looks like this:
PHP:
while (have_effect($effect[Filthworm Guard Stench]) == 0) {
while (have_effect($effect[Filthworm Drone Stench]) == 0) {
while (have_effect($effect[Filthworm Larva Stench]) == 0) {
obtain(1, "filthworm hatchling scent gland", $location[hatching chamber]);
if (!use(1, $item[filthworm hatchling scent gland])) print("You smell like a hatchling.","olive");
if (my_adventures() == 0) die("Come back tomorrow for more of the same exciting filth!");
}
obtain(1, "filthworm drone scent gland", $location[feeding chamber]);
if (!use(1, $item[filthworm drone scent gland])) print("You smell like a drone.","olive");
if (my_adventures() == 0) die("Come back tomorrow for more of the same exciting filth!");
}
obtain(1, "filthworm royal guard scent gland", $location[guards' chamber]);
if (!use(1, $item[filthworm royal guard scent gland])) print("You smell like a guard.","olive");
if (my_adventures() == 0) die("Come back tomorrow for more of the same exciting filth!");
}