Bug - Fixed 1337 W4rdröb n1gh7574nd not recognized

zarqon

Well-known member
Showed up as an unknown monster for me. Suspect it may be due to having the ö character in the name rather than the HTML entity:

HTML:
<td valign=center>You're fighting <span id='monname'>a 1337 W4rdröb n1gh7574nd</span></td>
 

Veracity

Developer
Staff member
Hmm. I could have sworn that we URLdecode monster names - to turn HTML entities into characters - before leetifying and registering the name.
 

Veracity

Developer
Staff member
> test leet Wardröb nightstand

Wardröb nightstand -> W4rdröb n1gh7574nd -> Wardröb nightstand
and, looking at my saved HTML files, I have a fight page with this monster on it:

Code:
You're fighting <span id='monname'>a left-handed, short, askew, pixellated, artisanal, 1337, obscene W4rdröb n1gh7574nd</span>

> test load wardrob.html

Read 14,046 bytes into a 14,045 character string

> test monster

> ash last_monster()

Returned: W4rdröb n1gh7574nd
id => 0
base_hp => 1
base_attack => 1
base_defense => 1
raw_hp => 0
raw_attack => -1
raw_defense => -2
base_initiative => -1
raw_initiative => -1
attack_element => none
defense_element => none
physical_resistance => 0
min_meat => 0
max_meat => 0
base_mainstat_exp => 0.125
phylum => none
poison => none
boss => false
dummy => false
image =>
images => aggregate boolean [string]
attributes =>
random_modifiers => aggregate boolean [string]
**left-handed => true
**short => true
**askew => true
**pixellated => true
**artisanal => true
**1337 => true
**obscene => true
How odd. I saved this HTML specifically to make sure this would work - and it used to work.
 

Veracity

Developer
Staff member
Very good.

> test load wardrob.html

Read 14,046 bytes into a 14,045 character string

> test monster

> ash last_monster()

Returned: Wardröb nightstand
id => 1540
base_hp => 27
base_attack => 55
base_defense => 120
raw_hp => 27
raw_attack => 55
raw_defense => 120
base_initiative => -10000
raw_initiative => -10000
attack_element => none
defense_element => none
physical_resistance => 0
min_meat => 0
max_meat => 0
base_mainstat_exp => 6.875
phylum => construct
poison => none
boss => false
dummy => false
image => nightstand1.gif
images => aggregate boolean [string]
**nightstand1.gif => true
attributes => Atk: 60 Def: 50 HP: 55 Init: -10000 P: construct
random_modifiers => aggregate boolean [string]
**left-handed => true
**short => true
**askew => true
**pixellated => true
**artisanal => true
**1337 => true
**obscene => true
Revision 16113
 
Top