X2AbilityCost_Charges¶
Editor: X2AbilityCostEditor_Charges · extends X2AbilityCostEditor.
Own fields¶
| Config field | Type | Requires | Game field | Description |
|---|---|---|---|---|
NumCharges |
int |
SetNumCharges=true |
NumCharges |
Charges consumed per use. |
OnlyOnHit |
bool |
SetOnlyOnHit=true |
bOnlyOnHit |
Only spends the charge when the ability hits, so a miss costs nothing. |
AlsoExpendChargesOnSharedBondmateAbility |
bool |
SetAlsoExpendChargesOnSharedBondmateAbility=true |
bAlsoExpendChargesOnSharedBondmateAbility |
Also spends the bondmate's charges of the shared ability. |
SharedAbilityCharges |
array<name> |
SharedAbilityChargesMode (ENameArrayEditMode) |
SharedAbilityCharges |
Other abilities whose charges are spent alongside this one, as Skulljack and Skullmine share a pool. Applied when paying, never when checking affordability. |
Inherited fields¶
From X2AbilityCostEditor (1)
FreeCost
Every one of these is documented under Shared fields or on the page for the class that introduces it.