Revert "Added setting"

This reverts commit 2d3bff06af.
This commit is contained in:
RedstonewolfX 2024-07-24 12:10:13 -04:00
parent 2d3bff06af
commit 334bf371cf
3 changed files with 13 additions and 25 deletions

View File

@ -130,7 +130,6 @@ export default class BattleScene extends SceneBase {
public disableDailyShinies: boolean = true; // Disables shiny luck in Daily Runs to prevent affecting RNG public disableDailyShinies: boolean = true; // Disables shiny luck in Daily Runs to prevent affecting RNG
public quickloadDisplayMode: string = "Dailies"; public quickloadDisplayMode: string = "Dailies";
public chaosmode: boolean = false; public chaosmode: boolean = false;
public simpleShop: boolean = false;
/** /**
* Determines the condition for a notification should be shown for Candy Upgrades * Determines the condition for a notification should be shown for Candy Upgrades
* - 0 = 'Off' * - 0 = 'Off'

View File

@ -2055,37 +2055,37 @@ export function getPlayerShopModifierTypeOptionsForWave(scene: BattleScene, wave
// Assemble the shop by removing items that would just be a waste of money // Assemble the shop by removing items that would just be a waste of money
// HP Restore // HP Restore
if (!scene.simpleShop || maxdmg > 0) // If any Pokemon has taken any damage, add Potion if (maxdmg > 0) // If any Pokemon has taken any damage, add Potion
options[0].push(new ModifierTypeOption(modifierTypes.POTION(), 0, baseCost * 0.2)) options[0].push(new ModifierTypeOption(modifierTypes.POTION(), 0, baseCost * 0.2))
if (!scene.simpleShop || maxdmg >= 20 || maxdmg_percent >= 0.1) // If Potion isn't enough, add Super Potion if (maxdmg >= 20 || maxdmg_percent >= 0.1) // If Potion isn't enough, add Super Potion
options[1].push(new ModifierTypeOption(modifierTypes.SUPER_POTION(), 0, baseCost * 0.45)) options[1].push(new ModifierTypeOption(modifierTypes.SUPER_POTION(), 0, baseCost * 0.45))
if (!scene.simpleShop || maxdmg >= 50 || maxdmg_percent >= 0.2) // If Super Potion isn't enough, add Hyper Potion if (maxdmg >= 50 || maxdmg_percent >= 0.2) // If Super Potion isn't enough, add Hyper Potion
options[3].push(new ModifierTypeOption(modifierTypes.HYPER_POTION(), 0, baseCost * 0.8)) options[3].push(new ModifierTypeOption(modifierTypes.HYPER_POTION(), 0, baseCost * 0.8))
if (!scene.simpleShop || maxdmg >= 200 || maxdmg_percent >= 0.5) // If Hyper Potion isn't enough, add Max Potion if (maxdmg >= 200 || maxdmg_percent >= 0.5) // If Hyper Potion isn't enough, add Max Potion
options[4].push(new ModifierTypeOption(modifierTypes.MAX_POTION(), 0, baseCost * 1.5)) options[4].push(new ModifierTypeOption(modifierTypes.MAX_POTION(), 0, baseCost * 1.5))
// Status Restore // Status Restore
if (!scene.simpleShop || (maxdmg >= 200 || maxdmg_percent >= 0.5) && hasStatus) // If Hyper Potion isn't enough, and you have a status condition, add Full Restore if ((maxdmg >= 200 || maxdmg_percent >= 0.5) && hasStatus) // If Hyper Potion isn't enough, and you have a status condition, add Full Restore
options[5].push(new ModifierTypeOption(modifierTypes.FULL_RESTORE(), 0, baseCost * 2.25)) options[5].push(new ModifierTypeOption(modifierTypes.FULL_RESTORE(), 0, baseCost * 2.25))
if (!scene.simpleShop || hasStatus) // If you have a status condition, add Full Heal if (hasStatus) // If you have a status condition, add Full Heal
options[1].push(new ModifierTypeOption(modifierTypes.FULL_HEAL(), 0, baseCost)) options[1].push(new ModifierTypeOption(modifierTypes.FULL_HEAL(), 0, baseCost))
// PP Restore // PP Restore
if (!scene.simpleShop || hasPPUsed) // If you have used any PP (you probably have), add Ether if (hasPPUsed) // If you have used any PP (you probably have), add Ether
options[0].push(new ModifierTypeOption(modifierTypes.ETHER(), 0, baseCost * 0.4)) options[0].push(new ModifierTypeOption(modifierTypes.ETHER(), 0, baseCost * 0.4))
if (!scene.simpleShop || hasPPUsedOver10) // If you used at least 10 PP, add Max Ether if (hasPPUsedOver10) // If you used at least 10 PP, add Max Ether
options[2].push(new ModifierTypeOption(modifierTypes.MAX_ETHER(), 0, baseCost)) options[2].push(new ModifierTypeOption(modifierTypes.MAX_ETHER(), 0, baseCost))
if (!scene.simpleShop || hasPPUsedMulti) // If you have used PP from multiple moves, add Elexir if (hasPPUsedMulti) // If you have used PP from multiple moves, add Elexir
options[2].push(new ModifierTypeOption(modifierTypes.ELIXIR(), 0, baseCost)) options[2].push(new ModifierTypeOption(modifierTypes.ELIXIR(), 0, baseCost))
if (!scene.simpleShop || hasPPUsedOver10 && hasPPUsedMulti) // If you have used multiple moves' PP, and have used more than 10 in at least one, add Max Elexir if (hasPPUsedOver10 && hasPPUsedMulti) // If you have used multiple moves' PP, and have used more than 10 in at least one, add Max Elexir
options[4].push(new ModifierTypeOption(modifierTypes.MAX_ELIXIR(), 0, baseCost * 2.5)) options[4].push(new ModifierTypeOption(modifierTypes.MAX_ELIXIR(), 0, baseCost * 2.5))
// Revives // Revives
if (!scene.simpleShop || hasFainted) { // If a Pokemon has fainted, add Revive and Max Revive if (hasFainted) { // If a Pokemon has fainted, add Revive and Max Revive
options[0].push(new ModifierTypeOption(modifierTypes.REVIVE(), 0, baseCost * 2)) options[0].push(new ModifierTypeOption(modifierTypes.REVIVE(), 0, baseCost * 2))
options[3].push(new ModifierTypeOption(modifierTypes.MAX_REVIVE(), 0, baseCost * 2.75)) options[3].push(new ModifierTypeOption(modifierTypes.MAX_REVIVE(), 0, baseCost * 2.75))
} }
if (!scene.simpleShop || multiFainted) // If multiple Pokemon are fainted, add Sacred Ash if (multiFainted) // If multiple Pokemon are fainted, add Sacred Ash
options[6].push(new ModifierTypeOption(modifierTypes.SACRED_ASH(), 0, baseCost * 10)) options[6].push(new ModifierTypeOption(modifierTypes.SACRED_ASH(), 0, baseCost * 10))
return options.slice(0, Math.ceil(Math.max(waveIndex + 10, 0) / 30)).flat(); return options.slice(0, Math.ceil(Math.max(waveIndex + 10, 0) / 30)).flat();
} }

View File

@ -106,8 +106,7 @@ export const SettingKeys = {
ShowAutosaves: "SHOW_AUTOSAVES", ShowAutosaves: "SHOW_AUTOSAVES",
TitleScreenContinueMode: "TITLE_SCREEN_QUICKLOAD", TitleScreenContinueMode: "TITLE_SCREEN_QUICKLOAD",
BiomePanels: "BIOME_PANELS", BiomePanels: "BIOME_PANELS",
DailyShinyLuck: "DAILY_LUCK", DailyShinyLuck: "DAILY_LUCK"
SimpleShop: "SIMPLE_SHOP"
}; };
/** /**
@ -218,13 +217,6 @@ export const Setting: Array<Setting> = [
default: 1, default: 1,
type: SettingType.GENERAL, type: SettingType.GENERAL,
}, },
{
key: SettingKeys.SimpleShop,
label: "Simple Shop",
options: OFF_ON,
default: 0,
type: SettingType.GENERAL
},
{ {
key: SettingKeys.DailyShinyLuck, key: SettingKeys.DailyShinyLuck,
label: "Daily Shiny Luck", label: "Daily Shiny Luck",
@ -752,9 +744,6 @@ export function setSetting(scene: BattleScene, setting: string, value: integer):
scene.disableDailyShinies = Setting[index].options[value].value == "Off" scene.disableDailyShinies = Setting[index].options[value].value == "Off"
case SettingKeys.TitleScreenContinueMode: case SettingKeys.TitleScreenContinueMode:
scene.quickloadDisplayMode = Setting[index].options[value].value; scene.quickloadDisplayMode = Setting[index].options[value].value;
case SettingKeys.SimpleShop:
scene.simpleShop = Setting[index].options[value].value == "On";
break;
case SettingKeys.Skip_Seen_Dialogues: case SettingKeys.Skip_Seen_Dialogues:
scene.skipSeenDialogues = Setting[index].options[value].value === "On"; scene.skipSeenDialogues = Setting[index].options[value].value === "On";
break; break;