Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added starting items to /matches endpoint #2254

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
added starting items to processExpand
  • Loading branch information
27bslash committed Oct 14, 2020
commit 65638c19c5f69d2a1e449ed88ad4008f64c1e5b0
14 changes: 14 additions & 0 deletions processors/processExpand.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,20 @@ function processExpand(entries, meta) {
type: 'xp_reasons',
});
},
STARTING_ITEM(e) {
// starting items
const unit = e.targetname;
const key = translate(e.valuename);
expand({
time: e.time,
value: 1,
unit,
key,
charges: e.charges,
itemslot: e.itemslot,
type: 'starting_items',
});
},
DOTA_COMBATLOG_PURCHASE(e) {
// purchase
const unit = e.targetname;
Expand Down