Skip to content

Commit

Permalink
Add new Höllvania nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
DaPigGuy committed Dec 17, 2024
1 parent f5c6011 commit 8be0ddd
Show file tree
Hide file tree
Showing 3 changed files with 95 additions and 6 deletions.
74 changes: 74 additions & 0 deletions src/resources/nodes.json
Original file line number Diff line number Diff line change
Expand Up @@ -2465,5 +2465,79 @@
45
]
}
},
"Höllvania": {
"SolNode850": {
"name": "Köbinn West",
"type": 40,
"faction": 9,
"lvl": [
65,
70
]
},
"SolNode851": {
"name": "Mischta Ramparts",
"type": 2,
"faction": 8,
"lvl": [
65,
70
]
},
"SolNode852": {
"name": "Old Konderuk",
"type": 2,
"faction": 9,
"lvl": [
65,
70
]
},
"SolNode853": {
"name": "Mausoleum East",
"type": 1,
"faction": 8,
"lvl": [
65,
70
]
},
"SolNode854": {
"name": "Rhu Manor",
"type": 1,
"faction": 9,
"lvl": [
65,
70
]
},
"SolNode855": {
"name": "Lower Vehrvod",
"type": 42,
"faction": 8,
"lvl": [
65,
70
]
},
"SolNode857": {
"name": "Vehrvod District",
"type": 42,
"faction": 8,
"lvl": [
65,
70
]
},
"SolNode856": {
"name": "Victory Plaza",
"type": 0,
"faction": 8,
"lvl": [
65,
70
]
}
}
}
9 changes: 6 additions & 3 deletions src/utils/nodes.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,9 @@ export const missionIndexMap = [
undefined,
"Alchemy",
undefined,
undefined,
"Shrine Defense"
"Legacyte Harvest",
"Shrine Defense",
"Faceoff"
];

export const factionIndexMap = [
Expand All @@ -84,7 +85,9 @@ export const factionIndexMap = [
undefined,
"Sentient",
undefined,
"Murmur"
"Murmur",
"Scaldra",
"Techrot"
];

export const nodeShape = {
Expand Down
18 changes: 15 additions & 3 deletions updater/update_nodes.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,22 @@ const newNodes = {
"Kuva Fortress": {},
Zariman: {},
Duviri: {},
Void: {}
Void: {},
"Höllvania": {}
};

// ExportRegions has incorrect node names for Höllvania
const hollvaniaNodeNames = {
"SolNode850": "Köbinn West",
"SolNode851": "Mischta Ramparts",
"SolNode852": "Old Konderuk",
"SolNode853": "Mausoleum East",
"SolNode854": "Rhu Manor",
"SolNode855": "Lower Vehrvod",
"SolNode856": "Victory Plaza",
"SolNode857": "Vehrvod District",
}

rawNodes.forEach(rawNode => {
if (!newNodes[rawNode.systemName]) {
throw new Error("Unknown Planet: " + rawNode.systemName);
Expand All @@ -38,15 +51,14 @@ rawNodes.forEach(rawNode => {
}

newNodes[rawNode.systemName][rawNode.uniqueName] = {
name: rawNode.name,
name: hollvaniaNodeNames[rawNode.uniqueName] ?? rawNode.name,
type: rawNode.missionIndex,
faction: rawNode.factionIndex,
lvl: [rawNode.minEnemyLevel, rawNode.maxEnemyLevel],
xp: existingNodes[rawNode.systemName]?.[rawNode.uniqueName]?.xp
};
});

//console.log(newNodes);
await fs.writeFile(
"src/resources/nodes.json",
JSON.stringify(newNodes, undefined, "\t")
Expand Down

0 comments on commit 8be0ddd

Please sign in to comment.