PaladinWhite
Member
I haven't been able to narrow down exactly what's going on, but preference _spacegateTurnsLeft is not being correctly set to 0 in all circumstances when the Spacegate is out of energy. I've definitely seen it set to 0 in some instances, but here's an example where it does not set:
So Mafia clearly detects that I can't adventure Through the Spacegate, but it's not setting the preference correctly.
I'll try and narrow down cases where this does or does not work. But I'm hoping someone with a better eye might spot the issue right away. I guess Mafia is detecting "no more adventures available" by the absence of an adventure link at place.php?whichplace=spacegate? I've confirmed that there's no adventure link when I view that page in the relay browser, but the preference doesn't change.
Code:
[I've already run 20 turns Through the Spacegate today.]
[COLOR="#DAA520"]> prefref spacegate[/COLOR]
...
_spacegateTurnsLeft 20
...
[COLOR="#DAA520"]> ash adventure(1, $location[Through the Spacegate]);[/COLOR]
Visit to The Spacegate: Through the Spacegate in progress...
[COLOR="#FF0000"]The Spacegate is out of energy for today.[/COLOR]
[COLOR="#DAA520"]> prefref spacegate[/COLOR]
...
_spacegateTurnsLeft 20
...
So Mafia clearly detects that I can't adventure Through the Spacegate, but it's not setting the preference correctly.
I'll try and narrow down cases where this does or does not work. But I'm hoping someone with a better eye might spot the issue right away. I guess Mafia is detecting "no more adventures available" by the absence of an adventure link at place.php?whichplace=spacegate? I've confirmed that there's no adventure link when I view that page in the relay browser, but the preference doesn't change.