Bug - Fixed Stat days do not apply their XP modifiers

Veracity

Developer
Staff member
I see the following in modifiers.txt:

Code:
# Stat Day section of modifiers.txt

Moxie Day	Experience Percent (Moxie): +25
Muscle Day	Experience Percent (Muscle): +25
Mysticality Day	Experience Percent (Mysticality): +25

That's all very nice, but we don't seem to use them.

...
3 days until Halloween, Mysticism bonus today (not tomorrow).
...

> modtrace Muscle Experience percent

source Muscle Experience Percent
sign:mongoose +10.00 =*10.0

> modtrace Mysticality Experience percent

source Mysticality Experience Percent

> modtrace Moxie Experience percent

source Moxie Experience Percent

Stat days only apply if you are out of Ronin. I am currently out of Ronin.
 

slyz

Developer
This part of KoLCharacter.recalculateAdjustments() looks like Stat Day modifiers should be taken into account:
PHP:
// If we are out of ronin/hardcore, look at stat day adjustments
if ( KoLCharacter.canInteract() && !KoLmafia.statDay.equals( "None" ) )
{
	newModifiers.add( Modifiers.getModifiers( KoLmafia.statDay ) );
}
where KoLmafia.statDay is set by KoLCharacter.setHoliday() and should be "None", "Moxie Day", "Muscle Day" or "Mysticality Day".

I'll try to add a few prints to see if it's working as it should.

EDIT: Oh well, that was an easy one:
Code:
KoLmafia.statDay = Mysyicality Day
 
Last edited:
Top