Skip to content

Commit

Permalink
UPD: Improve Loot Generation
Browse files Browse the repository at this point in the history
  • Loading branch information
paulov-t committed Aug 18, 2022
1 parent 811c287 commit ea7aeeb
Show file tree
Hide file tree
Showing 3 changed files with 124 additions and 176 deletions.
7 changes: 5 additions & 2 deletions src/Controllers/ItemController.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,9 @@ static getRandomPresetIdFromWeaponId(WepId) {
}

static getStandardPreset(templateId) {

let preset = { _items: [] };

if (!ItemController.hasPreset(templateId)) {
return false;
}
Expand All @@ -291,8 +294,8 @@ static getStandardPreset(templateId) {
return p;
}
}

return allPresets[0];
preset = allPresets[0];
return preset;
}

static getBaseItemTpl(presetId) {
Expand Down
Loading

0 comments on commit ea7aeeb

Please sign in to comment.