Bug appearance_rates thinks monsters are banished even when they aren't

If you're within the same session of mafia, it seems that the appearance_rates function will "save" any banishes that have happened that session, even if you ascend.

running the two arg version of appearance_rates will refresh the data

An example from today to show what happens:


Code:
> ash appearance_rates($location[ Domed City of Grimacia])

Returned: aggregate float [monster]
none => 0.0
unhinged survivor => 32.05128205128205
grizzled survivor => 32.05128205128205
whiny survivor => 32.05128205128205
cat-alien => -3.0
dog-alien => 3.846153846153846
alielf => -3.0

Code:
> ash is_banished($monster[cat-alien])

Returned: false

Code:
> ash appearance_rates($location[ Domed City of Grimacia])

Returned: aggregate float [monster]
none => 0.0
unhinged survivor => 32.05128205128205
grizzled survivor => 32.05128205128205
whiny survivor => 32.05128205128205
cat-alien => -3.0
dog-alien => 3.846153846153846
alielf => -3.0

Code:
> ash appearance_rates($location[ Domed City of Grimacia], true)

Returned: aggregate float [monster]
none => 0.0
unhinged survivor => 29.761904761904763
grizzled survivor => 29.761904761904763
whiny survivor => 29.761904761904763
cat-alien => 3.5714285714285716
dog-alien => 3.5714285714285716
alielf => 3.5714285714285716

Code:
> ash appearance_rates($location[ Domed City of Grimacia])

Returned: aggregate float [monster]
none => 0.0
unhinged survivor => 29.761904761904763
grizzled survivor => 29.761904761904763
whiny survivor => 29.761904761904763
cat-alien => 3.5714285714285716
dog-alien => 3.5714285714285716
alielf => 3.5714285714285716
 
Back
Top