Well... AdventureRequest.translateGenericType is where it does all the disambiguation.
The first thing it does is to use BasementRequest.basementMonster if you are in the basement. I believe that uses text from the encounter to identify the monster, rather than monster name or image, so we should be OK.
The next thing it does is strip off the random modifiers and translate the monster name from 1337 speak, if appropriate.
And then it proceeds with the other methods we have for disambiguating monsters: consequences.txt, monster image, video game monsters. Most of the consequences.txt disambiguation depends partly on the base monster name (which we SHOULD have trnslated correctly from 1337) AND monster images. So, for Ed the Undying:
Code:
MONSTER Ed the Undying /ed(\d)\.gif "Ed the Undying ($1)"
MONSTER Ed the Undying . "Ed the Undying (1)"
and for the Naughty Sorceress, well, we have no special handling for her, since KoL itself reports her as Naughty Sorceress, Naughty Sorceress (2), and Naughty Sorceress (3).What I notice is this:
Encounter: 1337 3d 7h3 Undy1ng
Round 1: 3d 7h3 undy1ng takes 9 damage.
We did not match the monster. Notice that the "U" is capitalized in the Encounter.
Encounter: The 1337 N4ugh7y 50rc3r355 (2)
Round 2: the n4ugh7y 50rc3r355 (2) takes 144 damage.
We did not match the monster. Notice that the "N" is capitalized in the Encounter.
I don't see why that would be a problem:
> ash leetify( "Ed the Undying" )
Returned: 3d 7h3 Undy1ng
> ash leetify( "Naughty Sorceress (2)" )
Returned: N4ugh7y 50rc3r355 (2)
... since exactly those strings should be in our 1337 -> monster translation table. But, perhaps not.
Here are my results from yesterday with Ed and the Naughty Sorceress:
Code:
[703] The Lower Chambers (Empty/Empty/Ed's Chamber)
Encounter: annoying Ed the Undying
Round 2: Ed the Undying (1) takes 12 damage.
[704] The Lower Chambers
Encounter: skinny Ed the Undying
Round 2: Ed the Undying (2) takes 267 damage.
[705] The Lower Chambers
Encounter: haunted Ed the Undying
Round 2: Ed the Undying (3) takes 220 damage.
[706] The Lower Chambers
Encounter: sleazy Ed the Undying
Round 2: Ed the Undying (4) takes 203 damage.
[707] The Lower Chambers
Encounter: skinny Ed the Undying
Round 2: Ed the Undying (5) takes 274 damage.
[708] The Lower Chambers
Encounter: tiny Ed the Undying
Round 2: Ed the Undying (1) takes 317 damage.
[709] The Lower Chambers
Encounter: broke Ed the Undying
Round 2: Ed the Undying (7) takes 218 damage.
Notice that we successfully disambiguated Ed via his image - except for "tiny" Ed, who obviously didn't have the same image.
Code:
[795] The Naughty Sorceress' Chamber
Encounter: The twirling Naughty Sorceress
Round 2: Naughty Sorceress takes 82 damage.
[796] The Naughty Sorceress' Chamber
Encounter: The invisible Naughty Sorceress (2)
Round 2: Naughty Sorceress (2) takes 77 damage.
[796] The Naughty Sorceress' Chamber
Encounter: The foul-mouthed Naughty Sorceress (3)
Round 0: Veracity loses initiative!
You lose 32 hit points
You lose 466,990 hit points
[809] The Naughty Sorceress' Chamber
Encounter: The untouchable Naughty Sorceress
Round 2: Naughty Sorceress takes 6 damage.
[809] The Naughty Sorceress' Chamber
Encounter: The yuletide Naughty Sorceress
Round 2: Naughty Sorceress takes 105 damage.
[810] The Naughty Sorceress' Chamber
Encounter: The electrified Naughty Sorceress (2)
Round 2: Naughty Sorceress (2) takes 55 damage.
[810] The Naughty Sorceress' Chamber
Encounter: The throbbing Naughty Sorceress
Round 2: Naughty Sorceress takes 107 damage.
[811] The Naughty Sorceress' Chamber
Encounter: The filthy Naughty Sorceress (2)
Round 2: Naughty Sorceress (2) takes 104 damage.
[811] The Naughty Sorceress' Chamber
Encounter: The restless Naughty Sorceress (3)
Round 0: Veracity loses initiative!
Round 1: Veracity wins the fight!
Since we did not need to disambiguate the Naughty Sorceress, we had no problem.
So, obviously something is different about 1337 Ed and 1337 Naughty Sorceress.
For the latter, I wonder if we are trying to disambiguate "The Naughty Sorceress", even though the actual monster is named "Naughty Sorceress". For Ed, no idea, yet.