I start a new HCCS ascension with my Asdon Martin in the workshed. I run a script which contains the following code:
It prints "No Asdon Martin". So investigating it, I run the following:
Among the output, it prints "item = portable Mayo Clinic, count = 1".
As soon as I click on the workshed, it realizes that it actually has an Asdon Martin installed, and the script works correctly. I suppose I can work around this by calling visit_url("campground.php?action=workshed"), but that would basically mean an extra server hit each time I restart the script.
I don't know if this is something Community Service related, or a general problem. Maybe someone else who's just starting a different ascension type could run the code above before visiting the workshed to see if it behaves the same?
Let me know if I can provide more information.
Code:
if (!(get_campground() contains $item[Asdon Martin keyfob]))
{
print("No Asdon Martin");
}
It prints "No Asdon Martin". So investigating it, I run the following:
Code:
foreach it, n in get_campground()
{
print("item = " + it + ", count = " + n);
}
Among the output, it prints "item = portable Mayo Clinic, count = 1".
As soon as I click on the workshed, it realizes that it actually has an Asdon Martin installed, and the script works correctly. I suppose I can work around this by calling visit_url("campground.php?action=workshed"), but that would basically mean an extra server hit each time I restart the script.
I don't know if this is something Community Service related, or a general problem. Maybe someone else who's just starting a different ascension type could run the code above before visiting the workshed to see if it behaves the same?
Let me know if I can provide more information.