RimWorld

RimWorld

Vanilla Expanded Framework
Adding abilities that use VFECore.Abilities.AbilityDef via hediff
Hello, I've been working on a little mod called Cyberware 2077. I've created some new abilities using this framework (VFECore.Abilities.AbilityDef) but I can't seem to figure out how to add them to pawns. Ideally, these abilities should be linked to implant hediffs, and I've tried using a few methods, such as:

Just adding them via the standard abilities list:

<HediffDef>
<!-- insert other hediff data here -->
<abilities>
<li>Ability_1</li>
<li>Ability_2</li>
</abilities>
</HediffDef>

Using VFECore.Abilities.HediffComp_Ability:

<HediffDef>
<!-- insert other hediff data here -->
<comps MayRequire="OskarPotocki.VanillaFactionsExpanded.Core">
<li Class="VFECore.Abilities.HediffComp_Ability">
<ability>Ability_1</ability>
</li>
</comps>
</HediffDef>

Even trying VFECore.Abilities.CompProperties_AbilitiesApparel in the ability-granting hediff:

<HediffDef>
<!-- insert other hediff data here -->
<comps MayRequire="OskarPotocki.VanillaFactionsExpanded.Core">
<li Class="VFECore.Abilities.CompProperties_AbilitiesApparel">
<abilities>
<li>Ability_1</li>
</abilities>
</li>
</comps>
</HediffDef>

But these all seem to fail, for various reasons (like, probably CompProperties_AbilitiesApparel only works for apparel)

I'm probably doing something super stupid but I can't for the life of me figure out the right way to do this. Please help.
Last edited by EveningSky; Jun 17 @ 9:13am