XCOM 2
Item Durability
RedDobe 2019 年 11 月 12 日 下午 2: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()); } }
最后由 RedDobe 编辑于; 2019 年 11 月 13 日 下午 12:39
< >
正在显示第 1 - 2 条,共 2 条留言
RedDobe 2019 年 11 月 12 日 下午 2: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.
最后由 RedDobe 编辑于; 2019 年 11 月 12 日 下午 3:38
RedDobe 2019 年 11 月 22 日 上午 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.
< >
正在显示第 1 - 2 条,共 2 条留言
每页显示数: 1530 50