diff --git a/src/main/webapp/app/entities/force/force.component.ts b/src/main/webapp/app/entities/force/force.component.ts index e46a7fbf..a07aec27 100644 --- a/src/main/webapp/app/entities/force/force.component.ts +++ b/src/main/webapp/app/entities/force/force.component.ts @@ -133,6 +133,15 @@ export class ForceComponent implements OnInit { localStorage.setItem('forceAddedListStored', JSON.stringify(this.forceList)); } + + /** + * saveList() iterates through units in forceList + * Adds units destroyed to units destroyed tally, and determines if unitsDestroyed / 3 is greater than it used to be + * Then adds 1 experience for each amount over the previous divisor of 3 + * + * Tallys experience, battles played, battles survived to units + * Adds requisition, battles, and battles won/lost to army + */ saveList(): void { for (const fu of this.forceList) { let newExperience: number