diff --git a/old-ui/package.json b/old-ui/package.json index 68979591..7a7a1f82 100644 --- a/old-ui/package.json +++ b/old-ui/package.json @@ -1,6 +1,6 @@ { "name": "@gaia-project/old-ui", - "version": "1.2.23", + "version": "1.2.24", "scripts": { "serve": "vite --port 5193", "build": "vite build", diff --git a/old-ui/src/components/PlayerBoard/BuildingGroup.spec.ts b/old-ui/src/components/PlayerBoard/BuildingGroup.spec.ts new file mode 100644 index 00000000..36605dee --- /dev/null +++ b/old-ui/src/components/PlayerBoard/BuildingGroup.spec.ts @@ -0,0 +1,4 @@ +import { sharedMineBuildingGroupTests } from "../../../../viewer/src/testing/shared-mine-building-group"; +import BuildingGroup from "./BuildingGroup.vue"; + +sharedMineBuildingGroupTests(BuildingGroup, "g.old-building.old-building-in-group"); diff --git a/old-ui/src/components/PlayerBoard/BuildingGroup.vue b/old-ui/src/components/PlayerBoard/BuildingGroup.vue index ba9ffcd6..003db116 100644 --- a/old-ui/src/components/PlayerBoard/BuildingGroup.vue +++ b/old-ui/src/components/PlayerBoard/BuildingGroup.vue @@ -50,6 +50,10 @@ :count="resource.count" :transform="`translate(${index * 1.5 + isPI * 0.5}, 0) scale(0.08)`" /> + + Shared mine (cannot be upgraded) + + diff --git a/viewer/package.json b/viewer/package.json index 59819039..0a78e350 100644 --- a/viewer/package.json +++ b/viewer/package.json @@ -1,6 +1,6 @@ { "name": "@gaia-project/viewer", - "version": "5.22.23", + "version": "5.22.24", "description": "Functions to visualize the map and boards for gaia project inside html canvas", "contributors": [ "coyotte508", diff --git a/viewer/src/components/PlayerBoard/BuildingGroup.spec.ts b/viewer/src/components/PlayerBoard/BuildingGroup.spec.ts index 96d2151c..8bc52c6d 100644 --- a/viewer/src/components/PlayerBoard/BuildingGroup.spec.ts +++ b/viewer/src/components/PlayerBoard/BuildingGroup.spec.ts @@ -2,8 +2,11 @@ import Engine from "@gaia-project/engine"; import { render } from "@testing-library/vue"; import { expect } from "chai"; import { makeStore } from "../../store"; +import { sharedMineBuildingGroupTests } from "../../testing/shared-mine-building-group"; import BuildingGroup from "./BuildingGroup.vue"; +sharedMineBuildingGroupTests(BuildingGroup, "g.building.building-in-group"); + describe("BuildingGroup", () => { it("does not render an available Gaiaformer token for one permanently consumed to colonize an Asteroid (Lost Fleet §E2)", () => { const engine = new Engine(["init 2 building-group-gf-asteroid", "p1 faction terrans", "p2 faction hadsch-hallas"], { diff --git a/viewer/src/components/PlayerBoard/BuildingGroup.vue b/viewer/src/components/PlayerBoard/BuildingGroup.vue index 053b674f..54d0a4af 100644 --- a/viewer/src/components/PlayerBoard/BuildingGroup.vue +++ b/viewer/src/components/PlayerBoard/BuildingGroup.vue @@ -66,6 +66,11 @@ gone for good), unlike one placed on Gaia/a transdim/Protoplanet - so mark its board slot with the same "used" X as a power/special action, scaled down to fit this circle. --> + + + Shared mine (cannot be upgraded) + + @@ -73,6 +78,7 @@