Brawler equipment fix
- Mar 29, 2017
-
-
Chris Davidson authored
Add a descriptor blocking weapons from being equipped from inventory on addedToLevel and give it to Brawler
-
Currently applyRandomClass only copies specific things from the copy descriptor table in its apply_resolvers functions, making it impossible to set misc flags there. Misc properties put there are copied to player characters and such so I'm assuming this is an oversight and made it copy the entire table.
Brawler NPCs like to equip weapons in their inventory since their hands are empty in onAddedToLevel, so this uses the above to add a no_npc_weapon_equip flag to the Brawler descriptors.
Add a descriptor blocking weapons from being equipped from inventory on addedToLevel and give it to Brawler