XCOM 2
Item Durability
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()); } }
Editat ultima dată de RedDobe; 13 nov. 2019 la 12:39
< >
Se afișează 1-2 din 2 comentarii
RedDobe 12 nov. 2019 la 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.
Editat ultima dată de RedDobe; 12 nov. 2019 la 15:38
RedDobe 22 nov. 2019 la 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.
< >
Se afișează 1-2 din 2 comentarii
Per pagină: 1530 50