Skip to content

Commit

Permalink
Fix: New civs not being imported properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Coow committed Nov 8, 2023
1 parent 016291f commit 103218d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/extension/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ let civMap = new Map<string, ValueLabelPair>([
"value": "/assets/aoe-4-civ-draft/civs/Order_Of_The_Dragon.png",
"label": "Order of The Dragon"
}],
['ZhuXisLegacy', {
['ZhuXiLegacy', {
"value": "/assets/aoe-4-civ-draft/civs/Zhu_Xi_Legacy.png",
"label": "Zhu Xi's Legacy"
}],
Expand Down Expand Up @@ -315,8 +315,8 @@ module.exports = function (nodecg: NodeCG.ServerAPI) {


//#region Set bans and banned count
let _leftBans: (ValueLabelPair | undefined)[] = []
let _rightBans: (ValueLabelPair | undefined)[] = []
let _leftBans: (DropdownOption | undefined)[] = []
let _rightBans: (DropdownOption | undefined)[] = []

//Set left side Bans Count & add them to the array
let _leftBansCount = 0
Expand Down Expand Up @@ -413,6 +413,10 @@ module.exports = function (nodecg: NodeCG.ServerAPI) {
_rightPicks.push(_civMap.get(element))
})

console.log(`LeftPicks: ${JSON.stringify(_leftPicks)}`)
console.log(`RightPicks: ${JSON.stringify(_rightPicks)}`)


leftPicks.value = _leftPicks;
rightPicks.value = _rightPicks;

Expand Down

0 comments on commit 103218d

Please sign in to comment.