running debug, here is the end of te4_log (1MB large)
[LOG]
[LOG] Resting starts...
[LOG] Rested for 0 turns (stop reason: all resources and life at maximum).
[LOG] Ran for 2 turns (stop reason: hostile spotted to the northwest (giant acid ant)).
[LOG]
[USERCHAT] channel achievement frobnoid tome Exterminator false false
[USERCHAT] channel talk TDT11111 tome How does one fight Urkis?
[LOG] Dwarfy slows down.
[ATTACK] attacking with steel longsword 'Neroseda'
[ATTACK] to giant acid ant :: 71.446320680733 9 5 8.5 :: 1
checkHit 49.666666666667 8.5
=> chance to hit 100
[ATTACK] raw dam 71.446320680733 versus 5 0.3 with APR 9
[ATTACK] after armor 71.446320680733
[ATTACK] after range 78
[PHYS CRIT %] 5
[PHYS CRIT %] sword accuracy bonus 49.666666666667 8.5 = 0.16466666666667
[ATTACK] after crit 129.844
[ATTACK] after mult 129.844
[LOG] #{bold}##UID

0##fbd578#Dwarfy#LAST# performs a melee critical strike against Giant acid ant!#{normal}#
[PROJECTOR] starting dam 129.844
[PROJECTOR] after difficulty dam 129.844
[PROJECTOR] res 0 1 on dam 111.66584
[PROJECTOR] after resists dam 111.66584
[PROJECTOR] after flat damage armor 111.66584
[PROJECTOR] final dam after static checks 111.66584
[PROJECTOR] final dam after hooks and callbacks 111.66584
[PROJECTOR] starting dam 7
[PROJECTOR] after difficulty dam 7
[PROJECTOR] res 0 1 on dam 7
[PROJECTOR] after resists dam 7
[PROJECTOR] after flat damage armor 7
[PROJECTOR] final dam after static checks 7
[PROJECTOR] final dam after hooks and callbacks 7
[PROJECTOR] starting dam 11
[PROJECTOR] after difficulty dam 11
[PROJECTOR] res 0 1 on dam 12.1
[PROJECTOR] after resists dam 12.1
[PROJECTOR] after flat damage armor 12.1
[PROJECTOR] final dam after static checks 12.1
[PROJECTOR] final dam after hooks and callbacks 12.1
checkHit 21.15 8.0222882086435
=> chance to hit 83
[PROJECTOR] starting dam 7
[PROJECTOR] after difficulty dam 7
[PROJECTOR] res 0 1 on dam 7.42
[PROJECTOR] after resists dam 7.42
[PROJECTOR] after flat damage armor 7.42
[PROJECTOR] final dam after static checks 7.42
[PROJECTOR] final dam after hooks and callbacks 7.42
checkHit 21.15 8.0222882086435
=> chance to hit 83
[PROJECTOR] starting dam 5
[PROJECTOR] after difficulty dam 5
[PROJECTOR] res 0 1 on dam 5.3
[PROJECTOR] after resists dam 5.3
[PROJECTOR] after flat damage armor 5.3
[PROJECTOR] final dam after static checks 5.3
[PROJECTOR] final dam after hooks and callbacks 5.3
[PROJECTOR] starting dam 5
[PROJECTOR] after difficulty dam 5
[PROJECTOR] res 0 1 on dam 5
[PROJECTOR] after resists dam 5
[PROJECTOR] after flat damage armor 5
[PROJECTOR] final dam after static checks 5
[PROJECTOR] final dam after hooks and callbacks 5
[LOG] #UID

0##fbd578#Dwarfy#LAST# hits Giant acid ant for #{bold}##aaaaaa#112 physical#{normal}##LAST#, #LIGHT_STEEL_BLUE#7 temporal#LAST#, #LIGHT_GREEN#12 nature#LAST#, #YELLOW#7 mind#LAST#, #YELLOW#5 mind#LAST# (143 total damage).
[LOG] #UID:135582:0#Giant acid ant hits #fbd578#Dwarfy#LAST# for #GREEN#5 acid#LAST# damage.
AI took for target 135582 giant acid ant :: 1777 Dwarfy 1 < 100
giant acid ant 135582 dumb ai talents can use Acidic Spray T_ACIDIC_SPRAY
giant acid ant 135582 dumb ai talents can use Attack T_ATTACK
giant acid ant 135582 dumb ai talents can use Acidic Crawl T_CRAWL_ACID
dumb ai uses T_CRAWL_ACID
[LOG] Giant acid ant crawls acid onto Dwarfy.
[ATTACK] attacking with innate combat
[ATTACK] to Dwarfy :: 13.08851138437 1007 64.763261608192 31.793647013791 :: 1.5059644256269
checkHit 24.5 31.793647013791
=> chance to hit 32
[LOG] #UID:135582:0#Giant acid ant misses #fbd578#Dwarfy#LAST#.
[LOG]
[ATTACK] attacking with steel longsword 'Neroseda'
[ATTACK] to giant acid ant :: 71.446320680733 9 5 8.5 :: 1
checkHit 49.666666666667 8.5
=> chance to hit 100
[ATTACK] raw dam 71.446320680733 versus 5 0.3 with APR 9
[ATTACK] after armor 71.446320680733
[ATTACK] after range 99
[PHYS CRIT %] 5
[ATTACK] after crit 99
[ATTACK] after mult 99
[PROJECTOR] starting dam 99
[PROJECTOR] after difficulty dam 99
[PROJECTOR] res 0 1 on dam 85.14
[PROJECTOR] after resists dam 85.14
[PROJECTOR] after flat damage armor 85.14
[PROJECTOR] final dam after static checks 85.14
[PROJECTOR] final dam after hooks and callbacks 85.14
[PROJECTOR] starting dam 5
[PROJECTOR] after difficulty dam 5
[PROJECTOR] res 0 1 on dam 5
[PROJECTOR] after resists dam 5
[PROJECTOR] after flat damage armor 5
[PROJECTOR] final dam after static checks 5
[PROJECTOR] final dam after hooks and callbacks 5
[LOG] #UID

0##fbd578#Dwarfy#LAST# hits Giant acid ant for #aaaaaa#85 physical#LAST# damage.
[LOG] #UID:135582:0#Giant acid ant hits #fbd578#Dwarfy#LAST# for #GREEN#5 acid#LAST# damage.
[LOG] #{bold}##UID

0##fbd578#Dwarfy#LAST# killed Giant acid ant!#{normal}#
[LOG]
[LOG] Resting starts...
[LOG] Rested for 0 turns (stop reason: all resources and life at maximum).
giant fire ant 135573 dumb ai talents can use Flamespit T_RITCH_FLAMESPITTER_BOLT
dumb ai uses T_RITCH_FLAMESPITTER_BOLT
[LOG] Giant fire ant uses Flamespit.
[MIND CRIT %] 1
[PROJECTOR] starting dam 11.666603256725
[PROJECTOR] after difficulty dam 11.666603256725
[PROJECTOR] res 31 0.69 on dam 11.666603256725
[PROJECTOR] after resists dam 8.04995624714
[PROJECTOR] after flat damage armor 8.04995624714
[PROJECTOR] final dam after static checks 8.04995624714
[PROJECTOR] final dam after hooks and callbacks 8.04995624714
[LOG] Ran for 2 turns (stop reason: taken damage).
[SHADER] Loading from /data/gfx/shaders/fireflash.lua
[SHADER] Loaded shader with totalname fireflash[]
New GL Shader program 43