; combat_src_act: ptr to source actor
; combat_dst_act: the target actor
act_combat:
+
ret
; loads attribute table of an actor
; e.g. weapon attacks with bow
.de ITEM_F_RANGE, 1
+ ; item damage types
+ ; flags
+.se 1
+.de ITEM_DT_PHYSICAL, 1
+.de ITEM_DT_POISON, 2
+.de ITEM_DT_FIRE, 4
+.de ITEM_DT_FROST, 8
+.de ITEM_DT_LIGHTNING, 16
+
; item struct
.se 0
.de item_type, 1
.de item_damage, 1
; proficiency mask needed to use the item
.de item_prof, 1
+ ; damage type of the item
+.de item_damage_type, 1
; bonus attributes provided by the item
; attr struct pointer
.de item_attr, 2
.de item_size, 0
+ ; combat res flags
+.se 0
+.de COMBAT_RES_HIT, 1
+.de COMBAT_RES_MISS, 1
+.de COMBAT_RES_GLANCING_BLOW, 1
+.de COMBAT_RES_DODGE, 1
+.de COMBAT_RES_CRIT, 1
+
; combat struct
.se 0
; ptr sto source and dst actor
.de combat_res_damage, 1
; the attack type (e.g. critical, dodge, miss)
; if all flags are 0 == normal hit
-.de combat_res_flags, 1
+.de combat_res_hit_type, 1
.de combat_size, 0