From: Daniel Karbach Date: Wed, 11 May 2022 12:30:06 +0000 (+0200) Subject: add AoS settings descriptions X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=145eeff8f5111c716cc3c7e8be324967c68de5af;p=alttp.git add AoS settings descriptions --- diff --git a/resources/js/components/aos/Seed.js b/resources/js/components/aos/Seed.js index efc1130..3e6ac4a 100644 --- a/resources/js/components/aos/Seed.js +++ b/resources/js/components/aos/Seed.js @@ -22,6 +22,49 @@ const applyPatch = (rom, patch, filename) => { } }; +const isDefaultSetting = (name, value) => { + switch (name) { + case 'area': + return value === 'Vanilla'; + case 'boss': + return value === 'Vanilla'; + case 'doublechaos': + return value === 'false'; + case 'enemy': + return value === 'Vanilla'; + case 'grahm': + return value === 'BookSouls'; + case 'itempool': + return value === 'Standard'; + case 'kicker': + return value === 'false'; + case 'levelexp': + return value === 'Vanilla'; + case 'logic': + return value === 'AreaTechTiers'; + case 'mapassist': + return value === 'false'; + case 'nodupes': + return value === 'false'; + case 'palette': + return value === 'Vanilla'; + case 'panther': + return value === 'Rand70Dup'; + case 'shopprice': + return value === 'Vanilla'; + case 'shopSouls': + return value === 'Vanilla'; + case 'startshop': + return value === 'Vanilla'; + case 'telestart': + return value === 'false'; + case 'weight': + return value === '2.5'; + default: + return false; + } +}; + const Seed = ({ patch, seed }) => { const { rom } = useAosBaseRom(); @@ -86,6 +129,24 @@ const Seed = ({ patch, seed }) => {

{i18n.t('aosSeeds.generator')}

{i18n.t(`aosSeeds.generators.${seed.generator}`)}

+ {seed.settings ? <> +

{i18n.t('aosSeeds.settings')}

+ + {Object.entries(seed.settings).map(([key, value]) => + + + {i18n.t(`aosSeeds.settingName.${key}`)} + +
+ {isDefaultSetting(key, value) ? + i18n.t(`aosSeeds.settingValue.${key}.${value}`) + : + {i18n.t(`aosSeeds.settingValue.${key}.${value}`)} + } + + )} +
+ : null} ; }; @@ -98,6 +159,8 @@ Seed.propTypes = { preset: PropTypes.string, race: PropTypes.bool, seed: PropTypes.string, + settings: PropTypes.shape({ + }), status: PropTypes.string, updated_at: PropTypes.string, }), diff --git a/resources/js/i18n/de.js b/resources/js/i18n/de.js index 89303ab..2236df2 100644 --- a/resources/js/i18n/de.js +++ b/resources/js/i18n/de.js @@ -43,6 +43,129 @@ export default { }, race: 'Race ROM, Seed versteckt', seed: 'Seed', + settingName: { + area: 'Karte', + boss: 'Bosse', + doublechaos: 'Doppel-Chaos', + enemy: 'Gegner', + grahm: 'Graham', + itempool: 'Item Pool', + kicker: 'Kicker ohne Malphas', + levelexp: 'Level EXP', + logic: 'Logik', + mapassist: 'Karten-Assistent', + nodupes: 'Keine dupes', + palette: 'Palette', + panther: 'Panther', + shopprice: 'Shop Preise', + shopSouls: 'Shop Seelen', + startshop: 'Start mit Shop', + telestart: 'Teleport zum Start', + weight: 'Item Gewichtung', + }, + settings: 'Settings', + settingValue: { + area: { + AreaRandom: 'Area Randomizer', + DoorRandom: 'Door Randomizer', + Vanilla: 'Vanilla', + }, + boss: { + 'Dead-endShuffle': 'Dead End Shuffle', + Vanilla: 'Vanilla', + }, + doublechaos: { + 'false': 'Nein', + 'true': 'Ja', + }, + enemy: { + RandomNoLimit: 'Kein Limit', + RandomP20M5: '+20 -5', + RandomP30M10: '+30 -10', + RandomPM10: '±10', + RandomPM20: '±20', + RandomPMaxM5: '+Max -5', + Vanilla: 'Vanilla', + }, + grahm: { + AllBosses: 'Alle Bosse', + BookSouls: 'Bücher-Seelen', + NoCheck: 'Kein Check', + }, + itempool: { + AllSouls: 'Alle Seelen', + Standard: 'Standard', + }, + kicker: { + 'false': 'Nein', + 'true': 'Ja', + }, + levelexp: { + Casual: 'Casual', + Hard: 'Schwer', + Lvl1: 'Level 1', + Vanilla: 'Vanilla', + }, + logic: { + AreaTechTiers: 'Area Tech Tiers', + AreaTechTiersHard: 'Area Tech Tiers schwer', + ForwardFeed: 'Forward feed', + ForwardFeedHard: 'Forward feed schwer', + HybridProgression: 'Hybride Progression', + VeryRandom: 'Sehr zufällig', + VeryRandomHard: 'Sehr zufällig und schwer', + VeryRandomHardOnly: 'Sehr zufällig, nur schwer', + }, + mapassist: { + 'false': 'Aus', + 'true': 'An', + }, + nodupes: { + 'false': 'Nein', + 'true': 'Ja', + }, + palette: { + Mode1: 'Mode 1', + 'Mode1.5': 'Mode 1.5', + Mode2: 'Mode 2', + Vanilla: 'Vanilla', + }, + panther: { + AlwaysRand: 'Immer zufällig', + ExtraFairRand: 'Extra Fair zufällig', + FirstAlways: 'Immer zuerst', + NeverExists: 'Existiert nicht', + Rand70Dup: 'Zufällig 70% Dupe', + }, + shopprice: { + RandHV: 'Zufällig HV', + Vanilla: 'Vanilla', + }, + shopSouls: { + '2PerGroup': '2 pro Gruppe', + Half: 'Hälfte', + OnlySouls: 'Nur Seelen', + Vanilla: 'Vanilla', + }, + startshop: { + Unlocked: 'Verfügbar', + Unlocked30k: 'Verfügbar 30k', + Vanilla: 'Vanilla', + }, + telestart: { + 'false': 'Nein', + 'true': 'Ja', + }, + weight: { + '0': '0', + '1.0': '1,0', + '1.5': '1,5', + '2.0': '2,0', + '2.5': '2,5', + '3.0': '3,0', + '3.5': '3,5', + }, + }, status: 'Status', statuses: { error: 'Fehler', diff --git a/resources/js/i18n/en.js b/resources/js/i18n/en.js index 4140fdd..cbdb523 100644 --- a/resources/js/i18n/en.js +++ b/resources/js/i18n/en.js @@ -43,6 +43,129 @@ export default { }, race: 'Race ROM, seed hidden', seed: 'Seed', + settingName: { + area: 'Map', + boss: 'Bosses', + doublechaos: 'Double chaos', + enemy: 'Enemy', + grahm: 'Graham', + itempool: 'Item pool', + kicker: 'Kicker without Malphas', + levelexp: 'Level EXP', + logic: 'Logic', + mapassist: 'Map assist', + nodupes: 'No dupes', + palette: 'Palette', + panther: 'Panther', + shopprice: 'Shop price', + shopSouls: 'Shop souls', + startshop: 'Start with shop', + telestart: 'Teleport to start', + weight: 'Item weight', + }, + settings: 'Settings', + settingValue: { + area: { + AreaRandom: 'Area random', + DoorRandom: 'Door random', + Vanilla: 'Vanilla', + }, + boss: { + 'Dead-endShuffle': 'Dead end shuffle', + Vanilla: 'Vanilla', + }, + doublechaos: { + 'false': 'No', + 'true': 'Yes', + }, + enemy: { + RandomNoLimit: 'No limit', + RandomP20M5: '+20 -5', + RandomP30M10: '+30 -10', + RandomPM10: '±10', + RandomPM20: '±20', + RandomPMaxM5: '+max -5', + Vanilla: 'Vanilla', + }, + grahm: { + AllBosses: 'All bosses', + BookSouls: 'Book souls', + NoCheck: 'No check', + }, + itempool: { + AllSouls: 'All souls', + Standard: 'Standard', + }, + kicker: { + 'false': 'No', + 'true': 'Yes', + }, + levelexp: { + Casual: 'Casual', + Hard: 'Hard', + Lvl1: 'Level 1', + Vanilla: 'Vanilla', + }, + logic: { + AreaTechTiers: 'Area tech tiers', + AreaTechTiersHard: 'Area tech tiers hard', + ForwardFeed: 'Forward feed', + ForwardFeedHard: 'Forward feed hard', + HybridProgression: 'Hybrid progression', + VeryRandom: 'Very random', + VeryRandomHard: 'Very random hard', + VeryRandomHardOnly: 'Very random hard only', + }, + mapassist: { + 'false': 'Off', + 'true': 'On', + }, + nodupes: { + 'false': 'No', + 'true': 'Yes', + }, + palette: { + Mode1: 'Mode 1', + 'Mode1.5': 'Mode 1.5', + Mode2: 'Mode 2', + Vanilla: 'Vanilla', + }, + panther: { + AlwaysRand: 'Always random', + ExtraFairRand: 'Extra fair random', + FirstAlways: 'Always first', + NeverExists: 'Never exists', + Rand70Dup: 'Random 70% dupe', + }, + shopprice: { + RandHV: 'Random HV', + Vanilla: 'Vanilla', + }, + shopSouls: { + '2PerGroup': '2 per group', + Half: 'Half', + OnlySouls: 'Only souls', + Vanilla: 'Vanilla', + }, + startshop: { + Unlocked: 'Unlocked', + Unlocked30k: 'Unlocked 30k', + Vanilla: 'Vanilla', + }, + telestart: { + 'false': 'Disabled', + 'true': 'Enabled', + }, + weight: { + '0': '0', + '1.0': '1.0', + '1.5': '1.5', + '2.0': '2.0', + '2.5': '2.5', + '3.0': '3.0', + '3.5': '3.5', + }, + }, status: 'Status', statuses: { error: 'error',