Differential D4460 Diff 19545 binaries/data/mods/public/simulation/components/tests/test_Technologies.js
Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/simulation/components/tests/test_Technologies.js
Show First 20 Lines • Show All 81 Lines • ▼ Show 20 Lines | |||||
const cmpPlayer = ConstructComponent(playerEntityID, "Player", { | const cmpPlayer = ConstructComponent(playerEntityID, "Player", { | ||||
"SpyCostMultiplier": "1", | "SpyCostMultiplier": "1", | ||||
"BarterMultiplier": { | "BarterMultiplier": { | ||||
"Buy": {}, | "Buy": {}, | ||||
"Sell": {} | "Sell": {} | ||||
} | } | ||||
}); | }); | ||||
cmpPlayer.SetCiv("gaia"); | |||||
const spyPlayerResSub = new Spy(cmpPlayer, "TrySubtractResources"); | const spyPlayerResSub = new Spy(cmpPlayer, "TrySubtractResources"); | ||||
const spyPlayerResRefund = new Spy(cmpPlayer, "RefundResources"); | const spyPlayerResRefund = new Spy(cmpPlayer, "RefundResources"); | ||||
let cmpResearcher = ConstructComponent(researcherID, "Researcher", { | let cmpResearcher = ConstructComponent(researcherID, "Researcher", { | ||||
"Technologies": { | "Technologies": { | ||||
"_string": template.name | "_string": template.name | ||||
} | } | ||||
}); | }); | ||||
Show All 22 Lines |
Wildfire Games · Phabricator