UNPKG

borderlands2

Version:

Borderlands 2 weapon damage and DPS calculation library

13 lines 416 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); // Stat should really be a class... function getStat(statType, stats, weapon, context) { return stats.find(function (stat) { if (stat.decorator && !stat.decorator(weapon, context)) { return false; } return stat.type === statType; }); } exports.getStat = getStat; //# sourceMappingURL=stat.js.map