X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;ds=sidebyside;f=resources%2Fjs%2Fcomponents%2Faos%2FSeed.js;h=513bdd380bddcd3a3588aaddc2494f275f3fd0f8;hb=1811c6021240a95f505cc2d49f592dc1bf56ac89;hp=289e00e7bca78a9763f39e67291c1425bba669c6;hpb=75b3b5826c781e47b3db693fa6d3d17f67c79e56;p=alttp.git
diff --git a/resources/js/components/aos/Seed.js b/resources/js/components/aos/Seed.js
index 289e00e..513bdd3 100644
--- a/resources/js/components/aos/Seed.js
+++ b/resources/js/components/aos/Seed.js
@@ -22,7 +22,54 @@ const applyPatch = (rom, patch, filename) => {
}
};
-const Seed = ({ patch, seed }) => {
+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 'noww':
+ return value === 'false';
+ case 'palette':
+ return value === 'Vanilla';
+ case 'panther':
+ return value === 'Rand70Dup';
+ case 'reqallsouls':
+ return value === 'false';
+ 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 = ({ onRetry, patch, seed }) => {
const { rom } = useAosBaseRom();
return
{i18n.t(seed.race ? 'aosSeeds.race' : 'aosSeeds.noRace')}
-{i18n.t(seed.mystery ? 'aosSeeds.mystery' : 'aosSeeds.noMystery')}
+ {seed.seed ? ++ {i18n.t('aosSeeds.seed')}: + {' '} + {seed.seed} +
+ : null} + {seed.race ? +{i18n.t('aosSeeds.race')}
+ : null} + {seed.mystery ? +{i18n.t('aosSeeds.mystery')}
+ : null} + {seed.status === 'generated' ? ++ {i18n.t('aosSeeds.generated')}: + {' '} + + {i18n.t('aosSeeds.date', { date: new Date(seed.updated_at) })} + +
+ : ++ {i18n.t('aosSeeds.status')}: + {' '} + {i18n.t(`aosSeeds.statuses.${seed.status}`)} +
+ } + {seed.status === 'error' ? ++ +
+ : null}{i18n.t(`aosSeeds.generators.${seed.generator}`)}
+ {seed.settings ? <> +