Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fd5d732851 | ||
|
|
9259609efe | ||
|
|
a5b9f85eda |
@@ -37,7 +37,7 @@
|
||||
for (const stat of actualScope.stats) {
|
||||
const found = value.find(v => v.statId == stat.id);
|
||||
|
||||
enabledMap[stat.id] = found != null && (!!found?.required || !!found?.acquired);
|
||||
enabledMap[stat.id] = found != null && (found?.required > (zeroDeletes ? 0 : -1));
|
||||
requiredMap[stat.id] = found?.required || 0;
|
||||
acquiredMap[stat.id] = found?.acquired || 0;
|
||||
}
|
||||
|
||||
@@ -96,7 +96,7 @@
|
||||
<label for="description">Description</label>
|
||||
<textarea name="description" bind:value={item.description} />
|
||||
<label for="stats">Stats</label>
|
||||
<StatInput showAcquired hideUnseen noToggle bind:value={item.stats} />
|
||||
<StatInput overrideScopeId={scopeId} showAcquired hideUnseen noToggle bind:value={item.stats} />
|
||||
</ModalBody>
|
||||
</Modal>
|
||||
</form>
|
||||
@@ -195,12 +195,12 @@ func generateRequirementResult(req entities.Requirement, scope scopes.Result, re
|
||||
continue
|
||||
}
|
||||
|
||||
if item.AcquiredTime != nil {
|
||||
for _, stat := range item.Stats {
|
||||
if resStats[stat.ID] != nil {
|
||||
for _, stat := range item.Stats {
|
||||
if resStats[stat.ID] != nil {
|
||||
if item.AcquiredTime != nil {
|
||||
resStats[stat.ID].Acquired += stat.Acquired
|
||||
resStats[stat.ID].Planned += stat.Required
|
||||
}
|
||||
resStats[stat.ID].Planned += stat.Required
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user