Skip to content

Commit

Permalink
Fix some bug
Browse files Browse the repository at this point in the history
  • Loading branch information
antihax committed Oct 27, 2024
1 parent 3d9ed13 commit 0ca47a3
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion DumpResources/DumpResources/DumpResources.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ void dumpAnimals() {
json["Animals"][name.ToString()]["requiredAffinity"] = n->RequiredTameAffinityField();
json["Animals"][name.ToString()]["requiredAffinityPerBaseLevel"] = n->RequiredTameAffinityPerBaseLevelField();

//Log::GetLog()->info("animal {} stats {}", name.ToString(), n->GetCharacterStatusComponent()->BaseLevelMaxStatusValuesField().GetSize());
Log::GetLog()->info("animal {} stats {}", name.ToString(), n->GetCharacterStatusComponent()->BaseLevelMaxStatusValuesField().GetSize());

if (n->GetCharacterStatusComponent() && n->GetCharacterStatusComponent()->BaseLevelMaxStatusValuesField().GetSize() > 0)
for (int i = 0; i < n->GetCharacterStatusComponent()->BaseLevelMaxStatusValuesField().GetSize(); i++) {
Expand Down
Binary file modified DumpResources/x64/Release/DumpResources.dll
Binary file not shown.
9 changes: 4 additions & 5 deletions build_json.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ async function runServer(grid, pool, x, y) {
}

async function buildData() {
// os.cpus().length / 3
const pool = new WorkerPool(os.cpus().length / 3, "./build_worker.js");

process.chdir("DumpResources");
Expand Down Expand Up @@ -199,12 +200,10 @@ async function main() {
region: s.hiddenAtlasId,
islandWidth: cp.islandWidth,
islandHeight: cp.islandHeight,
isControlPoint: cp.isControlPoint,
isControlPoint: cp.isControlPoint
};
if (islandInfo && islandInfo[cp.id])
i.islandPoints = islandInfo[cp.id].islandPoints || 0
else
i.islandPoints = 0;
if (islandInfo && islandInfo[cp.id]) i.islandPoints = islandInfo[cp.id].islandPoints || 0;
else i.islandPoints = 0;

i.sublevels = [];
for (let sl in s.sublevels) {
Expand Down
Binary file modified dist/DumpResources/DumpResources.dll
Binary file not shown.
2 changes: 0 additions & 2 deletions resourceTypes.json
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,4 @@
"Yarrow": "Herb",
"Bone Chips": "Transient",
"Brimstone": "Transient"


}

0 comments on commit 0ca47a3

Please sign in to comment.