public void TryRemoveMindFlayer() { CompMindFlayer checkIfMindFlayer = AbilityUser.TryGetComp <CompMindFlayer>(); if (checkIfMindFlayer != null) { Tools.Warn(AbilityUser.LabelShort + " removing MindFlayer ability", myDebug); RemovePawnAbility(MindFlayerDefOf.LTF_Slug_MindFlayer); } }
public override void PostInitialize() { base.PostInitialize(); if (MindFondler == true) { Tools.Warn(AbilityUser.LabelShort + " adding MindFondler ability", myDebug); AddPawnAbility(MindFondlerDefOf.LTF_Slug_MindFondler); } else { CompMindFondler checkIfMindFondler = AbilityUser.TryGetComp <CompMindFondler>(); if (checkIfMindFondler != null) { Tools.Warn(AbilityUser.LabelShort + " removing MindFondler ability", myDebug); RemovePawnAbility(MindFondlerDefOf.LTF_Slug_MindFondler); } } }