Add ability to change peak age per activity
This commit is contained in:
@@ -47,6 +47,9 @@
|
|||||||
defaultStandards.cfg.activity[activity]
|
defaultStandards.cfg.activity[activity]
|
||||||
.difficultyModifier,
|
.difficultyModifier,
|
||||||
),
|
),
|
||||||
|
peakAge: String(
|
||||||
|
defaultStandards.cfg.activity[activity].peakAge,
|
||||||
|
),
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
}),
|
}),
|
||||||
@@ -76,6 +79,7 @@
|
|||||||
input.cfg.activity[activity].enableGeneration,
|
input.cfg.activity[activity].enableGeneration,
|
||||||
difficultyModifier:
|
difficultyModifier:
|
||||||
+input.cfg.activity[activity].difficultyModifier,
|
+input.cfg.activity[activity].difficultyModifier,
|
||||||
|
peakAge: +input.cfg.activity[activity].peakAge,
|
||||||
},
|
},
|
||||||
]),
|
]),
|
||||||
),
|
),
|
||||||
@@ -112,6 +116,22 @@
|
|||||||
</legend>
|
</legend>
|
||||||
|
|
||||||
<div class="grid grid-cols-1 gap-4">
|
<div class="grid grid-cols-1 gap-4">
|
||||||
|
<label>
|
||||||
|
<span class="label mb-1">Activity</span>
|
||||||
|
<select
|
||||||
|
class="select w-full"
|
||||||
|
name="activities"
|
||||||
|
bind:value={input.activity}
|
||||||
|
>
|
||||||
|
{#each Object.values(Activity) as activity}
|
||||||
|
<option value={activity}>
|
||||||
|
{allStandards
|
||||||
|
.byActivity(activity)
|
||||||
|
.getMetadata().name}
|
||||||
|
</option>
|
||||||
|
{/each}
|
||||||
|
</select>
|
||||||
|
</label>
|
||||||
<label>
|
<label>
|
||||||
<span class="label mb-1">Max level</span>
|
<span class="label mb-1">Max level</span>
|
||||||
<input
|
<input
|
||||||
@@ -207,6 +227,21 @@
|
|||||||
.enableGeneration}
|
.enableGeneration}
|
||||||
/>
|
/>
|
||||||
</label>
|
</label>
|
||||||
|
<label>
|
||||||
|
<span class="label mb-1">Peak age</span>
|
||||||
|
<input
|
||||||
|
class="input w-full"
|
||||||
|
type="number"
|
||||||
|
min="1"
|
||||||
|
max="100"
|
||||||
|
step="1"
|
||||||
|
bind:value={
|
||||||
|
input.cfg.activity[selected.activity].peakAge
|
||||||
|
}
|
||||||
|
disabled={!selected.cfg.activity[selected.activity]
|
||||||
|
.enableGeneration}
|
||||||
|
/>
|
||||||
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</div>
|
</div>
|
||||||
@@ -218,22 +253,6 @@
|
|||||||
Metrics
|
Metrics
|
||||||
</legend>
|
</legend>
|
||||||
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
|
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
|
||||||
<label>
|
|
||||||
<span class="label mb-1">Activity</span>
|
|
||||||
<select
|
|
||||||
class="select w-full"
|
|
||||||
name="activities"
|
|
||||||
bind:value={input.activity}
|
|
||||||
>
|
|
||||||
{#each Object.values(Activity) as activity}
|
|
||||||
<option value={activity}>
|
|
||||||
{allStandards.byActivity(activity).getMetadata()
|
|
||||||
.name}
|
|
||||||
</option>
|
|
||||||
{/each}
|
|
||||||
</select>
|
|
||||||
</label>
|
|
||||||
|
|
||||||
<label>
|
<label>
|
||||||
<span class="label mb-1">Gender</span>
|
<span class="label mb-1">Gender</span>
|
||||||
<select
|
<select
|
||||||
|
|||||||
Reference in New Issue
Block a user