Bug - Fixed jalapeno saucesphere problem in mana burn

xKiv

Active member
Code:
> burn -0

Could not find a known, usable skill of yours uniquely matching "2 Jalapeño Saucesphere"

debug tells me that the UseSkillCommand.cast gets the string in parameters with actual (unicode) character ñ. but then SkillDatabase.getSkillName will try to match against skill name with html entity in it, and that doesn't match.

Code:
> cast o saucesphere

Casting Jalapeño Saucesphere 1 times...

> ash use_skill($skill[jalapeno saucesphere])

Changing "jalapeno saucesphere" to "Jalapeño Saucesphere" would get rid of this message. ()
Casting Jalapeño Saucesphere 1 times...

# i had to actually type ño ... for the next:
> cast jalapeño Saucesphere

Casting Jalapeño Saucesphere 1 times...
You acquire an effect: Jalapeño Saucesphere (25)
Jalapeño Saucesphere was successfully cast.
Unable to invoke o

(just as an evidence that I actually have the skill castable, and also some things I tried to break it in other places)
 

Veracity

Developer
Staff member
Fortunately I have a Sauceror test multi.

Apparently this is an OS or Java difference? On Mac OS X:

Code:
[color=green]> cast o saucesphere[/color]

Casting Jalapeño Saucesphere 1 times...
You acquire an effect: Jalapeño Saucesphere (20)
Jalapeño Saucesphere was successfully cast.

[color=green]> ashq use_skill( $skill[ jalapeno saucesphere ] )[/color]

Changing "jalapeno saucesphere" to "Jalapeño Saucesphere" would get rid of this message. ()
Casting Jalapeño Saucesphere 1 times...
You acquire an effect: Jalapeño Saucesphere (20)
Jalapeño Saucesphere was successfully cast.
I'll investigate more tomorrow after I sleep.
 

Veracity

Developer
Staff member
Well, try revision 19855. This uses "canonical" names to match, since that is how we used to store skillnames.
There is no visible difference for me, but perhaps it will work better for you.

Code:
[color=green]> cast o saucesphere[/color]

Casting Jalapeño Saucesphere 1 times...
You acquire an effect: Jalapeño Saucesphere (20)
Jalapeño Saucesphere was successfully cast.

[color=green]> ashq use_skill($skill[jalapeno saucesphere])[/color]

Changing "jalapeno saucesphere" to "Jalapeño Saucesphere" would get rid of this message. ()
Casting Jalapeño Saucesphere 1 times...
You acquire an effect: Jalapeño Saucesphere (20)
Jalapeño Saucesphere was successfully cast.

[color=green]> cast jalapeño Saucesphere[/color]

Casting Jalapeño Saucesphere 1 times...
You acquire an effect: Jalapeño Saucesphere (20)
Jalapeño Saucesphere was successfully cast.
 
Top