I'd looked at equipment.dat, hoping that it would provide what I was looking for, but alas, it only provides requirement data, which, as you indicated, is more than adequately handled by can_equip(). The purpose of the Equipment map I am working on is to document the side-effects of equipment rather than requirements, to allow statements in my scripts like:
Code:
foreach Slot in Body {
equip_slot(Slot,optimum_slot(Slot,"Melee Damage"));
}
The Equipment section of the ASH reference in the wiki does not mention a function that returns the power of a piece of equipment. Where is it documented/what is the syntax? Admittedly, though, the power attbritutes in the map I posted are mainly for checking whether an $item is in the map or not (This is why all the accessories have power = -1)
I was unaware of Nightmist's library, but on review it is too segmented for my needs. The particular functions I envision would pass strings over a single map rather than indexing into a dozen different maps.
In any case, it appears the answer to my original question is 'no', so I'll continue adding to the map and, if ever it is complete, post it, since the actual doing of evil things with it is non-trivial
