}
};
+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();
</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>;
};
preset: PropTypes.string,
race: PropTypes.bool,
seed: PropTypes.string,
+ settings: PropTypes.shape({
+ }),
status: PropTypes.string,
updated_at: PropTypes.string,
}),
},
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',
},
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',