Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
monsters: allow pets to wear armor #28646
Purpose of change
Describe the solution
Move pet_menu into monexamine.cpp and refactor it.
Create a new bodytype field for monsters that describes the general layout of the monster's body and assign suitable values for most mammals, zombies, fish, insects, and spiders.
Create a new islot_pet_armor which is similar to islot_armor but describes something that can be worn by a pet.
Add a new menu option that allows you to put armor on pets or remove armor from pets wearing armor.
I considered using item properties, but an islot is more robust.
zlaves have bodytype human, and should wear non-pet armor, but that's an issue to pursue at a later date.
Someone else should probably go through and add a bunch of recipes and items for various pet armors.
This pull request has been mentioned on Cataclysm: Dark Days Ahead. There might be relevant details there: