Hmm, guess I should have tested that first...
I've fixed that, and added a few other things:
jiggle staff (useful guaranteed hit for no MP)
some spell damage formulae fixes
doesn't try to steal if monster has no items
new LESS_PESSIMISTIC flag (false, i.e. off, by default)
The formulae in...