Bug - Fixed Skill acquisition not detected

Veracity

Developer
Staff member
When I ate a sleeping dog today, KoLmafia did not notice that I acquired the Dog Tired skill until I manually visited the char sheet. Perhaps the HTML for "You acquire a skill" has changed. Fortunately, I had the debug log going.

Code:
<td valign=center>You acquire a skill:  </td><td><img src="http://images.kingdomofloathing.com/itemimages/jarl_regdog.gif" onClick='javascript:poop("desc_skill.php?whichskill=91&self=true","skill", 350, 300)' width=30 height=30></td><td><b><a onClick='javascript:poop("desc_skill.php?whichskill=91&self=true","skill", 350, 300)'>Dog Tired</a></b></td>
 
Had a little look at this. To my inexpert eye, I can't see anything clearly wrong with that. Skills given to inv_eat.php wouldn't be found, but I don't think the Hot Dogs are handled by that (I can't see how the various skills from eating other than Stomach of Steel would be learned, though - such as from hi meins and insanely spicy enchanted bean burrito). Could always handle it by just checking for the hot dog being eaten, the way items which are used or consumed otherwise are?
 
The problem was we detect skills in externalUpdate - which is called for Relay Browser and visit_url requests - but not automatically when it's an internal request, as in eating a hot dog via the Item Manager.

Revision 12692
 
Back
Top