So i am trying to convert this mod to TFTD
https://openxcom.old.mod.io/vanilla-armor-repair-for-ufoI have taken the code that works perfectly for UFO and swapped the values and strings for the TFTD equivalent and it does not work properly, with the item being recovered the actual corpsebattle item and not the corpsegeo item.
i tested using the BATTLE mod on both mods, and only the UFO version seemed to work.
Please let me know if I am missing somthing, or if it has to be setup differently for TFTD
armors:
- type: STR_PLASTIC_AQUA_ARMOR_UC
corpseBattle:
- STR_CORPSE_ARMOR
corpseGeo: STR_WRECKED_PLASTIC_ARMOR
- type: STR_ION_ARMOR_UC
corpseBattle:
- STR_CORPSE_ION
corpseGeo: STR_WRECKED_ION_ARMOR
- type: STR_MAGNETIC_ION_ARMOR_UC
corpseBattle:
- STR_CORPSE_ION
corpseGeo: STR_WRECKED_MAG_ARMOR
manufacture:
- name: STR_PLASTIC_AQUA_ARMOR_REPAIR
listOrder: 2705
category: STR_PERSONAL_ARMOR
requires:
- STR_PLASTIC_AQUA_ARMOR
space: 12
time: 500
cost: 12000
requiredItems:
STR_WRECKED_PLASTIC_ARMOR: 1
STR_AQUA_PLASTICS: 2
producedItems:
STR_PLASTIC_AQUA_ARMOR: 1
- name: STR_ION_ARMOR_REPAIR
listOrder: 2805
category: STR_PERSONAL_ARMOR
requires:
- STR_ION_ARMOR
space: 10
time: 600
cost: 27000
requiredItems:
STR_WRECKED_ION_ARMOR: 1
STR_AQUA_PLASTICS: 3
STR_ZRBITE: 2
producedItems:
STR_ION_ARMOR: 1
- name: STR_MAGNETIC_ION_ARMOR_REPAIR
listOrder: 2905
category: STR_PERSONAL_ARMOR
requires:
- STR_MAGNETIC_ION_ARMOR
space: 16
time: 750
cost: 38000
requiredItems:
STR_WRECKED_MAG_ARMOR: 1
STR_AQUA_PLASTICS: 3
STR_ZRBITE: 10
producedItems:
STR_MAGNETIC_ION_ARMOR: 1
items:
- type: STR_WRECKED_PLASTIC_ARMOR
listOrder: 10605
size: 0.8
costSell: 12000
recoveryPoints: 0
battleType: 11
recover: true
- type: STR_WRECKED_ION_ARMOR
listOrder: 10705
size: 0.8
costSell: 51500
recoveryPoints: 0
battleType: 11
recover: true
- type: STR_WRECKED_MAG_ARMOR
listOrder: 10805
size: 0.8
costSell: 60125
recoveryPoints: 0
battleType: 11
recover: true
- type: STR_CORPSE_ARMOR
battleType: 11
recover: true
- type: STR_CORPSE_ION
battleType: 11
recover: true
extraStrings:
- type: en-US
strings:
STR_WRECKED_PLASTIC_ARMOR: "Aqua Plastic Armor (Damaged)"
STR_WRECKED_ION_ARMOR: "Ion Armor (Damaged)"
STR_WRECKED_MAG_ARMOR: "Magnetic Ion Armor (Damaged)"
STR_PLASTIC_AQUA_ARMOR_REPAIR: "Aqua Plastic Armor (Repair)"
STR_ION_ARMOR_REPAIR: "Ion Armor (Repair)"
STR_MAGNETIC_ION_ARMOR_REPAIR: "Magnetic Ion Armor (Repair)"