Skip to content

Commit

Permalink
track disabled milestones
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-vorobiov committed Sep 25, 2024
1 parent 39ce57f commit b6e5846
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion evolve_analytics.meta.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name Evolve Analytics
// @namespace http://tampermonkey.net/
// @version 0.5.1
// @version 0.5.2
// @description Track and see detailed information about your runs
// @author Sneed
// @match https://pmotschmann.github.io/Evolve/
Expand Down
1 change: 0 additions & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ export class ConfigManager extends Subscribable {
private collectMilestones() {
const uniqueMilestones = new Set(this.config.views.flatMap(v => {
return Object.entries(v.milestones)
.filter(([, enabled]) => enabled)
.filter(([milestone]) => !milestone.startsWith("reset:"))
.map(([milestone]) => milestone);
}));
Expand Down
3 changes: 2 additions & 1 deletion test/config.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ describe("Config", () => {
]);
});

it("should not collect disabled milestones", () => {
it("should collect disabled milestones", () => {
const game = new Game(makeGameState({}));
const config = new ConfigManager(game, makeConfig([
[
Expand All @@ -82,6 +82,7 @@ describe("Config", () => {
config.views[0].toggleMilestone("built:city-apartment:1");

expect(config.milestones).toEqual([
"built:city-apartment:1",
"built:space-spaceport:2"
]);
});
Expand Down

0 comments on commit b6e5846

Please sign in to comment.