[SUGOI] Remove skin->availability, add SECRET_SKIN
Loading
Locked skins now are a unlockable type, instead of being tied to the skin's properties.
This has plagued custom gamedata mods since 2.2 launch. It's extremely obnoxious having to set aside random numbers as dummy unlockables just to ensure that Amy Fang & Metal are unlocked from the start in a custom map pack. Additionally, this now lets you lock Sonic Tails & Knuckles for mods. ADDITIONALLY, it lets you lock custom characters without fear of destroying things for other gamedata.
Other changes made to accommodate this:
R_GetSkinAvailabilities
is now created from the list of unlockables set to skin type. (1st skin unlockable defined is (1)
, 2nd skin unlockable defined is (1 << 1)
, etc...)Sonic&Tails
would give you Sonic&Sonic
out if Tails was locked. I fixed that by making both skins required to show the character select option.What this means for compatibility: