Remove hard-coded dependence on monster display characters
|Reported by:||GabeCunningham||Owned by:|
Description (last modified by nckmccnnll)
In generate.c, some of the monster pits / nests use flags to restrict the type of creatures (such as undead pits and pits of animals), whereas others check the display character (such as jelly pits and orc pits). For jelly pits, there's currently no better way, but orcs, trolls, etc all have a race flag anyway. Is there a reason why we don't just use that?
In fact, it might be nice for (almost) every monster to have a race or multiple races. Instead of handling it with flags, we could have each monster kind also store its race(s), which would then be used for slays, building pits, etc.
Change History (3)
comment:1 Changed 6 years ago by GabeCunningham
- Summary changed from Make monster pits / nests depend on flags, not display characters to Remove hard-coded dependence on monster display characters