Done.
https://github.com/MeridianOXC/OpenXcom/commit/c923f301e30add05cd2cc490d9b99675e950d505Attribute `
convertToCivilian: true` on items.
Currently the only added functionality is mind-controlling a original-hostile into a temporary-neutral.(other combinations are not supported until explicitly requested... this was a rather difficult change, bordering on out of scope, with potential side-effects which I haven't found yet... please test carefully)
Sample ruleset:
items:
- type: STR_PSIAMP_NEUTRAL
targetMatrix: 2 # only target hostiles
convertToCivilian: true # duh
requires:
- STR_PSI_AMP
size: 0.1
costSell: 194700
weight: 10
bigSprite: 33
floorSprite: 32
handSprite: 88
hitSound: 36
battleType: 9
twoHanded: true
invWidth: 1
invHeight: 3
tuUse: 25
flatRate: true
When a conversion to neutral happen, the game doesn't display the classic "Mind Control Successful" message, but just a generic "Action Successful" message.
Modders should translate it to whatever makes sense for their mod.
STR_MIND_CONTROL_SUCCESSFUL_ALT: "Action Successful"