@gaia-project/engine
Advanced tools
Comparing version 4.8.43 to 4.8.44
{ | ||
"name": "@gaia-project/engine", | ||
"version": "4.8.43", | ||
"version": "4.8.44", | ||
"description": "Javascript engine for project gaia", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -26,3 +26,3 @@ "use strict"; | ||
player, | ||
data: s.descriptions, | ||
data: s.descriptions.map((d) => d.toString()), | ||
}); | ||
@@ -29,0 +29,0 @@ } |
@@ -35,4 +35,4 @@ "use strict"; | ||
for (const incR of incomeRewards) { | ||
const eventIdx = incomes.findIndex((rw) => reward_1.default.match(reward_1.default.parse(incR), [rw])); | ||
assert_1.default(eventIdx > -1, `${incR} is not in the available income`); | ||
const eventIdx = incomes.findIndex((rw) => reward_1.default.match(reward_1.default.parse(incR), reward_1.default.parse(rw))); | ||
assert_1.default(eventIdx > -1, `${incR} is not in the available income: ${incomes.join(",")}`); | ||
incomes.splice(eventIdx, 1); | ||
@@ -39,0 +39,0 @@ } |
{ | ||
"name": "@gaia-project/engine", | ||
"version": "4.8.43", | ||
"version": "4.8.44", | ||
"description": "Javascript engine for project gaia", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -29,3 +29,3 @@ import Engine from "../engine"; | ||
player, | ||
data: s.descriptions, | ||
data: s.descriptions.map((d) => d.toString()), | ||
}); | ||
@@ -32,0 +32,0 @@ } |
@@ -17,3 +17,2 @@ import { | ||
import { BrainstoneDest } from "../player-data"; | ||
import Reward from "../reward"; | ||
import { AvailableSetupOption } from "../setup"; | ||
@@ -111,3 +110,3 @@ | ||
[Command.ChooseFederationTile]: { tiles: Federation[]; rescore: boolean }; | ||
[Command.ChooseIncome]: Reward[]; | ||
[Command.ChooseIncome]: string[]; | ||
[Command.ChooseRoundBooster]: { boosters: Booster[] }; | ||
@@ -114,0 +113,0 @@ [Command.ChooseTechTile]: { tiles: ChooseTechTile[] }; |
@@ -42,3 +42,3 @@ import assert from "assert"; | ||
function descriptions(gainTokens: Event[], chargePowers: Event[]) { | ||
function descriptions(gainTokens: Event[], chargePowers: Event[]): Reward[] { | ||
return [ | ||
@@ -45,0 +45,0 @@ ...gainTokens.map((ev) => ev.rewards.find((rw) => rw.type === Resource.GainToken)), |
@@ -53,4 +53,4 @@ import assert from "assert"; | ||
for (const incR of incomeRewards) { | ||
const eventIdx = incomes.findIndex((rw) => Reward.match(Reward.parse(incR), [rw])); | ||
assert(eventIdx > -1, `${incR} is not in the available income`); | ||
const eventIdx = incomes.findIndex((rw) => Reward.match(Reward.parse(incR), Reward.parse(rw))); | ||
assert(eventIdx > -1, `${incR} is not in the available income: ${incomes.join(",")}`); | ||
incomes.splice(eventIdx, 1); | ||
@@ -57,0 +57,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1163286
23979