private static bool Prefix(Pawn __instance, Vector3 drawLoc, bool flip = false) { CompSpectralShield comp = __instance?.GetComp <CompSpectralShield>(); comp?.DrawShield(drawLoc); return(true); }
private void AddPawnComp() { if (pawn != null && pawn.GetComp <CompSpectralShield>() == null) { CompSpectralShield comp = new CompSpectralShield(); comp.parent = pawn; pawn.AllComps.Add(comp); } }