mirror of https://github.com/dirtbags/moth.git
Scores, not Score
This commit is contained in:
parent
5350cf73a0
commit
3282ad22b0
|
@ -4,7 +4,7 @@ stages:
|
||||||
|
|
||||||
Run unit tests:
|
Run unit tests:
|
||||||
stage: test
|
stage: test
|
||||||
image: &goimage golang:1.18
|
image: &goimage golang:1.21
|
||||||
only:
|
only:
|
||||||
refs:
|
refs:
|
||||||
- main
|
- main
|
||||||
|
|
|
@ -480,7 +480,7 @@ class State {
|
||||||
*
|
*
|
||||||
* @yields {Scores} Snapshot at a point in time
|
* @yields {Scores} Snapshot at a point in time
|
||||||
*/
|
*/
|
||||||
* ScoreHistory() {
|
* ScoresHistory() {
|
||||||
let scores = new Scores()
|
let scores = new Scores()
|
||||||
for (let award of this.PointsLog) {
|
for (let award of this.PointsLog) {
|
||||||
scores.Add(award)
|
scores.Add(award)
|
||||||
|
@ -493,7 +493,7 @@ class State {
|
||||||
*
|
*
|
||||||
* @returns {Scores}
|
* @returns {Scores}
|
||||||
*/
|
*/
|
||||||
CurrentScore() {
|
CurrentScores() {
|
||||||
let scores
|
let scores
|
||||||
for (scores of this.ScoreHistory());
|
for (scores of this.ScoreHistory());
|
||||||
return scores
|
return scores
|
||||||
|
|
|
@ -43,7 +43,7 @@ async function update() {
|
||||||
}
|
}
|
||||||
|
|
||||||
let frame = 0
|
let frame = 0
|
||||||
for (let scores of state.ScoreHistory()) {
|
for (let scores of state.ScoresHistory()) {
|
||||||
frame += 1
|
frame += 1
|
||||||
if ((frame < state.PointsLog.length) && (frame % frameModulo)) {
|
if ((frame < state.PointsLog.length) && (frame % frameModulo)) {
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in New Issue