Updated comment
This commit is contained in:
parent
e3b6ea10ad
commit
df0c418980
@ -133,6 +133,15 @@ export class ForceComponent implements OnInit {
|
|||||||
localStorage.setItem('forceAddedListStored', JSON.stringify(this.forceList));
|
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 {
|
saveList(): void {
|
||||||
for (const fu of this.forceList) {
|
for (const fu of this.forceList) {
|
||||||
let newExperience: number
|
let newExperience: number
|
||||||
|
Loading…
Reference in New Issue
Block a user