One more thing, it seems weapons are picking up their skill bonus from whatever category you have active, no matter their actual category, but seem to have a native marker for 'missile' or 'melee' because i can't seem to get spear, for example, to print out as a melee weapon the output. it matters because it is two different skills, so you have to be able to specify which mode the skill applies to (ie melee spear or thrown spear).
wouldn't it be easier to just have each weapon with a category variable, and when the player specifies it in the 'attack' field, you just look up the category bonus, check to see if it is the favored weapon or not, then print the bonus. the system now is very clunky (import attack from the skills table, select in OB field, then select in attack field..). Then just have Spear - thrown, or Spear - melee..... seems faster and easier.