Revert custom palette changes to built in mods

This commit is contained in:
MysterD 2022-08-07 15:13:51 -07:00
parent dc3ca7c76d
commit 5e5ef35118
2 changed files with 6 additions and 6 deletions

View File

@ -372,11 +372,11 @@ function mario_update(m)
-- update palette -- update palette
if s.team == 2 then if s.team == 2 then
np.overridePalette = gPalettePresets[7] np.overridePaletteIndex = 7
elseif s.team == 1 then elseif s.team == 1 then
np.overridePalette = gPalettePresets[15] np.overridePaletteIndex = 15
else else
np.overridePalette = np.palette np.overridePaletteIndex = np.paletteIndex
end end
-- set metal -- set metal

View File

@ -1262,13 +1262,13 @@ function mario_update(m)
local s = gPlayerSyncTable[m.playerIndex] local s = gPlayerSyncTable[m.playerIndex]
local np = gNetworkPlayers[m.playerIndex] local np = gNetworkPlayers[m.playerIndex]
if s.team == 2 then if s.team == 2 then
np.overridePalette = gPalettePresets[7] np.overridePaletteIndex = 7
m.marioBodyState.modelState = 0 m.marioBodyState.modelState = 0
elseif s.team == 1 then elseif s.team == 1 then
np.overridePalette = gPalettePresets[15] np.overridePaletteIndex = 15
m.marioBodyState.modelState = 0 m.marioBodyState.modelState = 0
else else
np.overridePalette = np.palette np.overridePaletteIndex = np.paletteIndex
m.marioBodyState.modelState = MODEL_STATE_NOISE_ALPHA m.marioBodyState.modelState = MODEL_STATE_NOISE_ALPHA
end end
m.health = 0x880 m.health = 0x880