XCOM 2
Item Durability
RedDobe 12. nov. 2019 kl. 14:40
Possible bug
@Reality Machina - Items are going back into inventory even though the body was not recovered. I think it is related to this section of the mod in downloadablecontentinfo. The game by default puts all recovered items back into inventory. But doesn't do anything when the body is not recovered. So when an item is damaged and the body is not recovered the item is still going back into inventory, because there is not a check here to determine if the body was not recovered. I might be wrong...

if(RepairComponent.IsDamaged) { if (UnitState.RemoveItemFromInventory(ItemState, NewGameState)) // possible we'll have some items that cannot be removed, so don't remove them { ItemState.OwnerStateObject = XComHQ.GetReference(); //`log("Are we crashing here #2?"); XComHQ.PutItemInInventory(NewGameState, ItemState, false); // Recovered items from recovered units goes directly into inventory, doesn't show on loot screen ModifiedInventory = true; //BattleData.CarriedOutLootBucket.AddItem(ItemState.GetMyTemplateName()); } }
Sidst redigeret af RedDobe; 13. nov. 2019 kl. 12:39
< >
Viser 1-2 af 2 kommentarer
RedDobe 12. nov. 2019 kl. 14:50 
Second Possible Bug

I am having another issue where items are being duplicated. I have like 15 frost axes from the Children of the King mod and an extra Frost Sniper rifle. I think that this is related to the bug mentioned above.
Sidst redigeret af RedDobe; 12. nov. 2019 kl. 15:38
RedDobe 22. nov. 2019 kl. 3:59 
It turns out indeed that this is causing items to be put back in inventory that were damaged on dead soldiers and not recovered or soldiers that were captured. But the other issue that I reported with the duplicates is caused by primary secondaries.
< >
Viser 1-2 af 2 kommentarer
Per side: 1530 50