Skip to content

Commit cfbb902

Browse files
remove default skin from custom spine selector
1 parent a78d399 commit cfbb902

1 file changed

Lines changed: 10 additions & 7 deletions

File tree

COTL_API/CustomSkins/CustomSkinPatches.cs

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -229,17 +229,20 @@ private static bool PlayerFarming_BleatRoutine(PlayerFarming __instance)
229229
return false;
230230
}
231231

232+
// [HarmonyPatch(typeof(PlayerFarming), nameof(PlayerFarming.Awake))]
233+
// [HarmonyPrefix]
234+
// private static bool PlayerFarming_Awake(PlayerFarming __instance)
235+
// {
236+
// // add default spine when player enters the game
237+
// if (!CustomPlayerSpines.ContainsKey("Default"))
238+
// AddPlayerSpine("Default", __instance.Spine.skeletonDataAsset, ["Lamb", "Goat", "Owl", "Snake"]);
239+
// return true;
240+
// }
241+
232242
[HarmonyPatch(typeof(PlayerFarming), nameof(PlayerFarming.Start))]
233243
[HarmonyPrefix]
234244
private static bool PlayerFarming_Start(PlayerFarming __instance)
235245
{
236-
// swap the placeholder with the default spine when player enters the game
237-
if (!CustomPlayerSpines.ContainsKey("Default"))
238-
AddPlayerSpine("Default", PlayerFarming.Instance.Spine.skeletonDataAsset, ["Lamb", "Goat", "Owl", "Snake"]);
239-
240-
if (CustomPlayerSpines.ContainsKey("Placeholder"))
241-
CustomPlayerSpines.Remove("Placeholder");
242-
243246
var spineOverride = (CoopManager.CoopActive && __instance.playerID == 1) ? SelectedSpine2 : SelectedSpine;
244247
if (spineOverride == "") return true;
245248
if (!CustomPlayerSpines.ContainsKey(spineOverride)) return true;

0 commit comments

Comments
 (0)