1
OXCE Suggestions Abandoned / [ABANDONED] Inventory slots per armor
« on: November 11, 2018, 08:55:16 am »
Abandon reason: a solution was implemented, but it was too difficult to use
Hi, Solarius
Just posted a PR into OXC (https://github.com/SupSuper/OpenXcom/pull/1210) which allows to link specific inventory rules to armors.
So no more hidden builtin weapons and so on => you just define as many overlapped inventory rules as you want, and then in the armor.rul you say for your armors (I think self-explanatory):
You can even define inventories with no slots and empty (" ") text ...
Hi, Solarius
Just posted a PR into OXC (https://github.com/SupSuper/OpenXcom/pull/1210) which allows to link specific inventory rules to armors.
So no more hidden builtin weapons and so on => you just define as many overlapped inventory rules as you want, and then in the armor.rul you say for your armors (I think self-explanatory):
Code: [Select]
inventorySlots:
- STR_GROUND
- STR_RIGHT_HAND
- STR_LEFT_HAND
- STR_SMALL_BELT
- STR_SMALL_RIGHT_LEG
- STR_SMALL_LEFT_LEG
- STR_RIGHT_SHOULDER
- STR_LEFT_SHOULDER
- STR_SMALL_BACK_PACK
defaultInventoriesMap:
STR_BELT: STR_SMALL_BELT
STR_RIGHT_LEG: STR_SMALL_RIGHT_LEG
STR_LEFT_LEG: STR_SMALL_LEFT_LEG
STR_BACK_PACK: STR_SMALL_BACK_PACK
And (well, along with the corresponding language strings) done - you have a small belt and so on... You can even define inventories with no slots and empty (" ") text ...