This commit is contained in:
Skyfuzzball8312 2025-09-21 17:04:33 +02:00 committed by GitHub
commit 26eca8c00e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 51 additions and 0 deletions

View File

@ -0,0 +1,26 @@
export const DIFFICULTY_EXP_RATE_OPTIONS = [
{ value: "0.5", label: "0.5x" },
{ value: "0.75", label: "0.75x" },
{ value: "1", label: "1x (Normal)" },
{ value: "1.25", label: "1.25x" },
{ value: "1.5", label: "1.5x" },
{ value: "2", label: "2x" },
];
export const DIFFICULTY_ENEMY_LEVEL_OPTIONS = [
{ value: "0.5", label: "0.5x" },
{ value: "0.75", label: "0.75x" },
{ value: "1", label: "1x (Normal)" },
{ value: "1.25", label: "1.25x" },
{ value: "1.5", label: "1.5x" },
{ value: "2", label: "2x" },
];
export const DIFFICULTY_LUCK_RATE_OPTIONS = [
{ value: "0.5", label: "0.5x" },
{ value: "0.75", label: "0.75x" },
{ value: "1", label: "1x (Normal)" },
{ value: "1.25", label: "1.25x" },
{ value: "1.5", label: "1.5x" },
{ value: "2", label: "2x" },
];

View File

@ -182,6 +182,9 @@ export const SettingKeys = {
Hide_Username: "HIDE_USERNAME", Hide_Username: "HIDE_USERNAME",
Move_Touch_Controls: "MOVE_TOUCH_CONTROLS", Move_Touch_Controls: "MOVE_TOUCH_CONTROLS",
Shop_Overlay_Opacity: "SHOP_OVERLAY_OPACITY", Shop_Overlay_Opacity: "SHOP_OVERLAY_OPACITY",
Difficulty_Exp_Rate: "DIFFICULTY_EXP_RATE",
Difficulty_Enemy_Level: "DIFFICULTY_ENEMY_LEVEL",
Difficulty_Luck_Rate: "DIFFICULTY_LUCK_RATE",
}; };
export enum MusicPreference { export enum MusicPreference {
@ -714,6 +717,28 @@ export const Setting: Array<Setting> = [
type: SettingType.DISPLAY, type: SettingType.DISPLAY,
requireReload: false, requireReload: false,
}, },
// --- Difficulty Section ---
{
key: SettingKeys.Difficulty_Exp_Rate,
label: "EXP Earning Rate",
options: require("./difficulty-options").DIFFICULTY_EXP_RATE_OPTIONS,
default: 2, // 1x (Normal)
type: SettingType.GENERAL,
},
{
key: SettingKeys.Difficulty_Enemy_Level,
label: "Enemy's Pokemon Level Multiplier",
options: require("./difficulty-options").DIFFICULTY_ENEMY_LEVEL_OPTIONS,
default: 2, // 1x (Normal)
type: SettingType.GENERAL,
},
{
key: SettingKeys.Difficulty_Luck_Rate,
label: "Luck Rate Multiplier",
options: require("./difficulty-options").DIFFICULTY_LUCK_RATE_OPTIONS,
default: 2, // 1x (Normal)
type: SettingType.GENERAL,
},
]; ];
if (isLocal) { if (isLocal) {