Currently weapons are set up as piercing, slashing, or whacking, using their object's oc_dir field, with the intention that certain weapons can classify as both. However, since oc_dir is only 2 bits and WHACK is 0, there's no way to unambiguously express some of these combinations. Certain weapons such as the lucern hammer are defined as combination piercing/blunt weapons, but the game just sees it as a piercing weapon. This commit adds a third bit to oc_dir and promotes the WHACK constant to its own bit. Nothing should be affected by this (wand directions and the like should remain working as usual) other than the blunt-and-something-else weapons being defined properly.
6.8 KiB
6.8 KiB