This PR allows for abilities to be cast while carrying a thing/pawn. This is fully optional.
AbilityDef received a new field bool? keepCarryingThing
When the value is default (null) the carrying functionality will be determined by the casting JobDef (drop)
When set to either true or false, the functionality will be forced to carry/drop, despite what the JobDef defines
The value will be used when starting a job (as the keepCarryingThingOverride argument)
All the ability casting JobDefs had carryThingAfterJob set to true
This will have no effect if the pawn wasn't carrying anything once the job ended - They would have dropped whatever they were carrying at the start of the job anyway, unless the earlier mentioned value in AbilityDef was set to true
If a job was started while carrying something, this will stop the casting pawn from dropping the carried pawn/thing once the job ends
This PR allows for abilities to be cast while carrying a thing/pawn. This is fully optional.
AbilityDef
received a new fieldbool? keepCarryingThing
null
) the carrying functionality will be determined by the castingJobDef
(drop)true
orfalse
, the functionality will be forced to carry/drop, despite what theJobDef
defineskeepCarryingThingOverride
argument)JobDef
s hadcarryThingAfterJob
set to trueAbilityDef
was set totrue