Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Commit

Permalink
Merge pull request #4 from dpeGit/main
Browse files Browse the repository at this point in the history
Drop Recorder no longer records locations
  • Loading branch information
dpeGit authored Apr 16, 2023
2 parents 76a2184 + fd16774 commit 7bee4fd
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# GenLite 0.2.20 - For GenFanad
# GenLite 0.2.21-1 - For GenFanad

GenLite installation instructions
1. Install [TamperMonkey(All Browsers)](https://www.tampermonkey.net/) in your browser of choice.
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "genlite",
"version": "0.2.20",
"version": "0.2.21-1",
"scripts": {
"build:prodbeta": "npm version prerelease --no-git-tag-version --force && npx webpack --mode production --env type=prerelease",
"build:prodrelease": "npm version patch --no-git-tag-version --force && npx webpack --mode production --env type=release",
Expand Down
8 changes: 7 additions & 1 deletion src/Client/plugins/genlite-drop-recorder.plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ export class GenLiteDropRecorderPlugin extends GenLitePlugin {
} else {
this.dropTable = JSON.parse(dropTableString);
}
for(let key in this.dropTable){
if(this.dropTable[key].location)
delete (this.dropTable[key].location);
}
}

async postInit() {
Expand Down Expand Up @@ -652,15 +656,17 @@ export class GenLiteDropRecorderPlugin extends GenLitePlugin {
this.dropTable[dropKey].Monster_Name = this.monsterData.Monster_Name;
this.dropTable[dropKey].Monster_Level = this.monsterData.Monster_Level;
this.dropTable[dropKey].Num_Killed = 0;
this.dropTable[dropKey].location = [];
//this.dropTable[dropKey].location = [];
this.dropTable[dropKey].drops = {};
}
this.dropTable[dropKey].Num_Killed++;
/*
this.dropTable[dropKey].location.push({
layer: this.monsterData.layer,
x: this.monsterData.x,
y: this.monsterData.y
});
*/
for (let i in this.monsterData.Drops) {
let drop = this.monsterData.Drops[i]
if (this.dropTable[dropKey].drops[drop.Item_Code] === undefined)
Expand Down

0 comments on commit 7bee4fd

Please sign in to comment.