Skip to content

Commit

Permalink
[Sonic Frontiers] Upgrade level codes
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperbx committed Nov 11, 2023
1 parent f36890d commit 69ce0e8
Show file tree
Hide file tree
Showing 8 changed files with 160 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Code "Always Have No Guard Level" in "Cheats/Upgrades/0%" by "Hyper" does
/*
Resets the level to 1/99 for Guard.

WARNING: this will affect your save data!
*/
//
#lib "SaveData"
//
{
var saveData = SaveData.GetCurrentSaveData();

if (saveData == null)
return;

saveData->character.guardLevel = 0;

for (int i = 0; i < 3; i++)
saveData->extraCharacters.characters[i].guardLevel = 0;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Code "Always Have No Power Level" in "Cheats/Upgrades/0%" by "Hyper" does
/*
Resets the level to 1/99 for Power.

WARNING: this will affect your save data!
*/
//
#lib "SaveData"
//
{
var saveData = SaveData.GetCurrentSaveData();

if (saveData == null)
return;

saveData->character.powerLevel = 0;

for (int i = 0; i < 3; i++)
saveData->extraCharacters.characters[i].powerLevel = 0;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Code "Always Have No Ring Level" in "Cheats/Upgrades/0%" by "Hyper" does
/*
Resets the level to 1/99 for ring capacity.

WARNING: this will affect your save data!
*/
//
#lib "SaveData"
//
{
var saveData = SaveData.GetCurrentSaveData();

if (saveData == null)
return;

saveData->character.ringLevel = 0;

for (int i = 0; i < 3; i++)
saveData->extraCharacters.characters[i].ringLevel = 0;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Code "Always Have No Speed Level" in "Cheats/Upgrades/0%" by "Hyper" does
/*
Resets the level to 1/99 for Speed.

WARNING: this will affect your save data!
*/
//
#lib "SaveData"
//
{
var saveData = SaveData.GetCurrentSaveData();

if (saveData == null)
return;

saveData->character.speedLevel = 0;

for (int i = 0; i < 3; i++)
saveData->extraCharacters.characters[i].speedLevel = 0;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Code "Always Have Max Guard Level" in "Cheats/Upgrades/100%" by "Hyper" does
/*
Gives the player the maximum level for Guard.

WARNING: this will affect your save data!
*/
//
#lib "SaveData"
//
{
var saveData = SaveData.GetCurrentSaveData();

if (saveData == null)
return;

saveData->character.guardLevel = 98;

for (int i = 0; i < 3; i++)
saveData->extraCharacters.characters[i].guardLevel = 98;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Code "Always Have Max Power Level" in "Cheats/Upgrades/100%" by "Hyper" does
/*
Gives the player the maximum level for Power.

WARNING: this will affect your save data!
*/
//
#lib "SaveData"
//
{
var saveData = SaveData.GetCurrentSaveData();

if (saveData == null)
return;

saveData->character.powerLevel = 98;

for (int i = 0; i < 3; i++)
saveData->extraCharacters.characters[i].powerLevel = 98;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Code "Always Have Max Ring Level" in "Cheats/Upgrades/100%" by "Hyper" does
/*
Gives the player the maximum level for ring capacity.

WARNING: this will affect your save data!
*/
//
#lib "SaveData"
//
{
var saveData = SaveData.GetCurrentSaveData();

if (saveData == null)
return;

saveData->character.ringLevel = 98;

for (int i = 0; i < 3; i++)
saveData->extraCharacters.characters[i].ringLevel = 98;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Code "Always Have Max Speed Level" in "Cheats/Upgrades/100%" by "Hyper" does
/*
Gives the player the maximum level for Speed.

WARNING: this will affect your save data!
*/
//
#lib "SaveData"
//
{
var saveData = SaveData.GetCurrentSaveData();

if (saveData == null)
return;

saveData->character.speedLevel = 98;

for (int i = 0; i < 3; i++)
saveData->extraCharacters.characters[i].speedLevel = 98;
}

0 comments on commit 69ce0e8

Please sign in to comment.