Quick have_skill() question

StDoodle

Minion
Does have_skill() work on the TT combos? By "work," I mean return true if you're currently a TT and have all of the component skills, and return false otherwise?
 
From glancing at the code, "Head + Knee Combo", "Head + Shield Combo", "Knee + Shield Combo" and "Head + Knee + Shield Combo" are added to the list of skills you have (if you have the right TT skills of course).

See KoLCharacter.addDerivedSkills(), lines 2790-2815 of KoLCharacter.java.
 
In combat, you can just parse the page looking for the skill id in the dropdown menu as a more failsafe method. That's what I did, since I wasn't sure how have_skill() worked 1) with skills granted from equipment/familiars/etc, or b) when your character has a skill but doesn't actually have it available at the moment due to birdform, lack of proper equipment, or somesuch. It seemed a much simpler way to deal with it.

Of course that wouldn't work as well predictively, so YMMV.
 
Back
Top