UNPKG

@ffxiv-teamcraft/simulator

Version:
54 lines 2.46 kB
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.StandardTouch = void 0; var quality_action_1 = require("../quality-action"); var crafting_job_enum_1 = require("../../crafting-job.enum"); var basic_touch_1 = require("./basic-touch"); var StandardTouch = /** @class */ (function (_super) { __extends(StandardTouch, _super); function StandardTouch() { return _super !== null && _super.apply(this, arguments) || this; } StandardTouch.prototype.getLevelRequirement = function () { return { job: crafting_job_enum_1.CraftingJob.ANY, level: 18 }; }; StandardTouch.prototype._canBeUsed = function (simulationState) { return true; }; StandardTouch.prototype.hasCombo = function (simulation) { return simulation.hasComboAvailable(new basic_touch_1.BasicTouch().getIds()[0]); }; StandardTouch.prototype.getBaseCPCost = function (simulationState) { return simulationState.hasComboAvailable(new basic_touch_1.BasicTouch().getIds()[0]) ? 18 : 32; }; StandardTouch.prototype.getBaseDurabilityCost = function (simulationState) { return 10; }; StandardTouch.prototype.getBaseSuccessRate = function (simulationState) { return 100; }; StandardTouch.prototype.getIds = function () { return [100004, 100018, 100034, 100078, 100048, 100064, 100093, 100109]; }; StandardTouch.prototype.getPotency = function (simulation) { return 125; }; return StandardTouch; }(quality_action_1.QualityAction)); exports.StandardTouch = StandardTouch; //# sourceMappingURL=standard-touch.js.map