]> git.localhorst.tv Git - alttp.git/commitdiff
add AoS settings descriptions
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Wed, 11 May 2022 12:30:06 +0000 (14:30 +0200)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Wed, 11 May 2022 12:30:06 +0000 (14:30 +0200)
resources/js/components/aos/Seed.js
resources/js/i18n/de.js
resources/js/i18n/en.js

index efc113015eb2990217126043d395191305162e82..3e6ac4af4e11bce9575ac8221fa0610016beb9af 100644 (file)
@@ -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();
 
 const Seed = ({ patch, seed }) => {
        const { rom } = useAosBaseRom();
 
@@ -86,6 +129,24 @@ const Seed = ({ patch, seed }) => {
                </Row>
                <h2 className="mt-5">{i18n.t('aosSeeds.generator')}</h2>
                <p>{i18n.t(`aosSeeds.generators.${seed.generator}`)}</p>
                </Row>
                <h2 className="mt-5">{i18n.t('aosSeeds.generator')}</h2>
                <p>{i18n.t(`aosSeeds.generators.${seed.generator}`)}</p>
+               {seed.settings ? <>
+                       <h2 className="mt-5">{i18n.t('aosSeeds.settings')}</h2>
+                       <Row>
+                               {Object.entries(seed.settings).map(([key, value]) =>
+                                       <Col key={key} sm={4} md={3} lg={2} className="mb-2">
+                                               <small className="text-muted">
+                                                       {i18n.t(`aosSeeds.settingName.${key}`)}
+                                               </small>
+                                               <br />
+                                               {isDefaultSetting(key, value) ?
+                                                       i18n.t(`aosSeeds.settingValue.${key}.${value}`)
+                                               :
+                                                       <strong>{i18n.t(`aosSeeds.settingValue.${key}.${value}`)}</strong>
+                                               }
+                                       </Col>
+                               )}
+                       </Row>
+               </> : null}
        </Container>;
 };
 
        </Container>;
 };
 
@@ -98,6 +159,8 @@ Seed.propTypes = {
                preset: PropTypes.string,
                race: PropTypes.bool,
                seed: PropTypes.string,
                preset: PropTypes.string,
                race: PropTypes.bool,
                seed: PropTypes.string,
+               settings: PropTypes.shape({
+               }),
                status: PropTypes.string,
                updated_at: PropTypes.string,
        }),
                status: PropTypes.string,
                updated_at: PropTypes.string,
        }),
index 89303abc35a4bb3edea9496267e45f6260b8d8b1..2236df2235ee8904945b733aa42134f6502b99ea 100644 (file)
@@ -43,6 +43,129 @@ export default {
                        },
                        race: 'Race ROM, Seed versteckt',
                        seed: 'Seed',
                        },
                        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',
                        status: 'Status',
                        statuses: {
                                error: 'Fehler',
index 4140fdd17ca5e9114a8068872d14e24fda0fb87b..cbdb523fb99ac29e1454bd99a2da1fa073f225a6 100644 (file)
@@ -43,6 +43,129 @@ export default {
                        },
                        race: 'Race ROM, seed hidden',
                        seed: 'Seed',
                        },
                        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',
                        status: 'Status',
                        statuses: {
                                error: 'error',