Closed DigitalLibrarian closed 8 years ago
I created an Outfit that has a weapon layer and zero or more armor layers. Each layer gets a full slot set based on the body's part slotology. The outfit can be told to wear or wield any item and it will contextually handle model checks, like preventing you from wearing a baseball bat.
Will add the ability to wear at specific layers when I make the advanced clothing management screen. For now it just tries the inner most layers first for armor. There is only one weapon layer, so no real problem there.
I have also made it so that each armor or weapon can have a list of slots that it requires. This list can have duplicates (such 2 legs for pants or 2 feet for boots).
Probably need to make some slot only available to some layers, but not that important right now. Probably best to give each armor class a set of layer constraints.
Currently each body part gets an optional weapon and armor slot and that works, but some changes are in order:
The set of wielded weapons and armor can be used to dictate possible attack moves and resistances.
Experiment with the armor layering dictating which items take damage based on penetrating the layers one by one.