Skip to content

Commit

Permalink
Fixing GirlDictionaryCollector for the EpP draft two-step process
Browse files Browse the repository at this point in the history
  • Loading branch information
Numbers committed Feb 9, 2023
1 parent bc57755 commit 24019da
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 8 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
1.32.2: Fixing GirlDictionaryCollector for the EpP draft two-step process
1.32.1: Fixing hiding "Claim All" button on CxH.
1.32.0: Adding style tweak to hide the new "Claim All" button in seasons. Off by default.
1.31.2: Updating patrons list for February
Expand Down
4 changes: 2 additions & 2 deletions dist/hh-plus-plus.dev.user.js

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

2 changes: 1 addition & 1 deletion dist/hh-plus-plus.meta.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name Hentai Heroes++ BDSM version
// @description Adding things here and there in the Hentai Heroes game. Also supports HHCore-based games such as GH and CxH.
// @version 1.32.1
// @version 1.32.2
// @match https://*.hentaiheroes.com/*
// @match https://nutaku.haremheroes.com/*
// @match https://*.gayharem.com/*
Expand Down
4 changes: 2 additions & 2 deletions dist/hh-plus-plus.user.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion 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": "hh-plus-plus",
"version": "1.32.1",
"version": "1.32.2",
"description": "Adding things here and there in the Hentai Heroes game. Also supports HHCore-based games such as GH and CxH.",
"private": "true",
"scripts": {
Expand Down
3 changes: 2 additions & 1 deletion src/collectors/GirlDictionaryCollector.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const upsert = (id, data) => {
}

const collectFromRewards = (rewards) => {
if (rewards && rewards.data && rewards.data.shards) {
if (rewards && rewards.data && !rewards.data.draft && rewards.data.shards) {
girlDictionary = Helpers.getGirlDictionary()
rewards.data.shards.forEach(({ id_girl, value }) => {
const girlId = `${id_girl}`
Expand Down Expand Up @@ -141,6 +141,7 @@ class GirlDictionaryCollector {

static collectFromPachinkoRewards() {
Helpers.onAjaxResponse(/action=play/i, collectFromAjaxResponseSingular)
Helpers.onAjaxResponse(/action=claim/i, collectFromAjaxResponseSingular)
}

static collectFromContestRewards() {
Expand Down

0 comments on commit 24019da

Please sign in to comment.