Feature Mafia should prefer an exact match in CCS

Bale

Minion
If someone's CCS looks like this:

Code:
[ sea cow ]
skill Transcendent Olfaction
attack

[ default ]
attack

Then mafia will attempt to olfact both the "sea cow" and the "sea cowboy." As with other similar circumstances, if there is an exact match, KoLmafia needs to only accept that match.
 
I haven't even glanced at the code, but I'm guessing the approach is "does any section match this monster or location name?" I think the code would need quite a bit of restructuring to check if a section title applies specifically to only 1 monster or location and to exclude it in that case.

For the particular case you posted, does
Code:
[sea cowboy]
section default

work? If so, I doubt it's worth the effort to handle this one case, since I don't think there are any other cases with that issue.
 
Back
Top