WIP report. Added stats, sagas for calculation, formatting.

This commit is contained in:
Patrick Fic
2020-10-20 16:37:39 -07:00
parent 045346ce48
commit 329c975019
10 changed files with 335 additions and 20 deletions

View File

@@ -4,9 +4,9 @@ export default function GetJobTarget(group, v_age, targets) {
const targetPc = targetsForGroup.filter(
(t) => t.ageGte <= v_age && (t.ageLt ? t.ageLt > v_age : true)
);
if (targetPc.length === 0) return 100;
if (targetPc.length === 0) return 1;
else if (targetPc.length === 1) return targetPc[0].target;
else {
return 100;
return 1;
}
}