Skip to content

Commit 7bee4fd

Browse files
authored
Merge pull request GenLite-Org#4 from dpeGit/main
Drop Recorder no longer records locations
2 parents 76a2184 + fd16774 commit 7bee4fd

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# GenLite 0.2.20 - For GenFanad
1+
# GenLite 0.2.21-1 - For GenFanad
22

33
GenLite installation instructions
44
1. Install [TamperMonkey(All Browsers)](https://www.tampermonkey.net/) in your browser of choice.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "genlite",
3-
"version": "0.2.20",
3+
"version": "0.2.21-1",
44
"scripts": {
55
"build:prodbeta": "npm version prerelease --no-git-tag-version --force && npx webpack --mode production --env type=prerelease",
66
"build:prodrelease": "npm version patch --no-git-tag-version --force && npx webpack --mode production --env type=release",

src/Client/plugins/genlite-drop-recorder.plugin.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ export class GenLiteDropRecorderPlugin extends GenLitePlugin {
7474
} else {
7575
this.dropTable = JSON.parse(dropTableString);
7676
}
77+
for(let key in this.dropTable){
78+
if(this.dropTable[key].location)
79+
delete (this.dropTable[key].location);
80+
}
7781
}
7882

7983
async postInit() {
@@ -652,15 +656,17 @@ export class GenLiteDropRecorderPlugin extends GenLitePlugin {
652656
this.dropTable[dropKey].Monster_Name = this.monsterData.Monster_Name;
653657
this.dropTable[dropKey].Monster_Level = this.monsterData.Monster_Level;
654658
this.dropTable[dropKey].Num_Killed = 0;
655-
this.dropTable[dropKey].location = [];
659+
//this.dropTable[dropKey].location = [];
656660
this.dropTable[dropKey].drops = {};
657661
}
658662
this.dropTable[dropKey].Num_Killed++;
663+
/*
659664
this.dropTable[dropKey].location.push({
660665
layer: this.monsterData.layer,
661666
x: this.monsterData.x,
662667
y: this.monsterData.y
663668
});
669+
*/
664670
for (let i in this.monsterData.Drops) {
665671
let drop = this.monsterData.Drops[i]
666672
if (this.dropTable[dropKey].drops[drop.Item_Code] === undefined)

0 commit comments

Comments
 (0)