Here's the ruleset documentation for the modders out there, it's also contained as a text file in the mod attached to the post above:
soldierTransformation:
- name: STR_PROJECT_NAME # (REQUIRED) The name of this project listed in the Soldier Transformations screen
listOrder: 100 # The list order of this project, defaults to increasing by 100 for each project in the mod when not defined
requires: # A list of research projects required before this project appears in the list of available transformations, the default empty list means this project is available from the beginning of the game
#- STR_SOME_RESEARCH
requiresBaseFunc: # A list of base functions required at a base in order to do this project, the default empty list means no special facilities are required
#- SOME_BASE_FUNC
producedSoldierType: STR_SOLDIER # The type of soldier produced by this project - any soldier undergoing this transformation will be switched to this type. If left empty, the soldier type does not change.
producedSoldierArmor: STR_NONE_UC # The armor the soldier produced will have when the project finishes, only used when keepSoldierArmor is false. Leaving it empty will give the soldier the armor defined by the type in the soldiers: ruleset.
keepSoldierArmor: false # Default false, this parameter determines whether or not the soldier will keep the armor they're wearing through this transformation
createsClone: false # Default false, this parameter determines whether the selected soldier has the transformation done to them or a new soldier is created that is a copy of the original and the transformation is done to the new soldier.
needsCorpseRecovered: true # Default true, if your project allows dead soldiers, this determines whether or not you needed to have a corpse item available at the end of the battle in which the soldier died. This does not mean you need the corpse item in your stores, just that it would have been recovered if recover: true was set on the item
allowsDeadSoldiers: false # Default false - can dead soldiers undergo this transformation? If so, they are brought back to life at the base you started this project in
allowsLiveSoldiers: false # Default false - can live, non-wounded soldiers undergo this transformation?
allowsWoundedSoldiers: false # Default false - can wounded soldiers undergo this transformation?
allowedSoldierTypes: # (REQUIRED) This list determines which soldier types can undergo this transformation, the default empty list means nobody can have this project done to them.
#- STR_SOLDIER
requiredPreviousTransformations: # A list of transformation projects that must be done to a soldier before they're eligible for this project, the default empty list means no previous projects are required.
#- STR_SOME_TRANSFORMATION
forbiddenPreviousTransformations: # A list of transformation projects that a soldier cannot have undergone in order to be eligible for this project, the default empty list means no previous projects are forbidden
#- STR_SOME_OTHER_TRANSFORMATION
requiredMinStats: # The minimum stats a soldier must have in order to be eligible for this project, defaults to all 0 so any soldier is eligible
tu: 0
stamina: 0
health: 0
bravery: 0
reactions: 0
firing: 0
throwing: 0
strength: 0
psiStrength: 0
psiSkill: 0
melee: 0
requiredItems: # A list of items that must be consumed from the base's stores in which you start this project, the default empty list means no items are used
#STR_SOME_ITEM: 1
cost: 50000 # The cost of the project in dollars
transferTime: 0 # Soldiers can be put in a transfer back to the base where they started if this parameter is greater than the default of 0 hours. New clones or resurrected soldiers are automatically given a transfer to the base with a default of 24 hours.
recoveryTime: 0 # The amount of wound recovery time a soldier is given after this project completes and the transfer, if any, is completed. The default value is 0 days.
flatOverallStatChange: # A direct change to the soldier's overall stats when undergoing this project, can be positive or negative - tu: 5 means the soldier will gain 5 max time units, while tu: -5 means the soldier will lose 5 max time units. The default of 0 means no change.
tu: 0
stamina: 0
health: 0
bravery: 0
reactions: 0
firing: 0
throwing: 0
strength: 0
psiStrength: 0
psiSkill: 0
melee: 0
percentOverallStatChange: # A percent change to the soldier's overall stats when undergoing this project, can be positive or negative - tu: 5 means the soldier will gain an extra 5% of their max time units, while tu: -5 means the soldier will lose 5% of their max time units. The default of 0 means no change.
tu: 0
stamina: 0
health: 0
bravery: 0
reactions: 0
firing: 0
throwing: 0
strength: 0
psiStrength: 0
psiSkill: 0
melee: 0
percentGainedStatChange: # A percent change to the soldier's stats, but instead of taking a portion of the overall stats, this only applies to the stats they've trained up from their initial values, can be positive or negative - firing: -100 means the soldier will lose all of the firing accuracy they trained since joining, while firing: 10 means they gain 10% of the amount they trained over their initial values. The default of 0 means no change.
tu: 0
stamina: 0
health: 0
bravery: 0
reactions: 0
firing: 0
throwing: 0
strength: 0
psiStrength: 0
psiSkill: 0
melee: 0
useRandomStats: false # Default false, when true, this parameter overrides the stat changes above and has the produced soldier roll random stats according to their new soldier type from this transformation project.
lowerBoundAtMinStats: true # Default true, this parameter determines whether or not any changes in stats from this project should go below the minStats defined on the new soldier type.
upperBoundAtMaxStats: false # Default false, this parameter determines whether or not any changes in stats from this project should go above the maxStats defined on the new soldier type.
upperBoundAtStatCaps: false # Default false, this parameter determines whether or not any changes in stats from this project should go above the statCaps defined on the new soldier type.
The associated strings are:
extraStrings:
- type: en-US
strings:
#SoldierTransformationAssignState.cpp
STR_TRANSFER_TIME: "Transfer Time>{ALT}{0}"
STR_RECOVERY_TIME: "Recovery Time>{ALT}{0}"
STR_CURRENT_STATS: "Current stats"
STR_CHANGES: "Changes"