UNPKG

@ffxiv-teamcraft/simulator

Version:
60 lines 2.51 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.Reflect = void 0; var quality_action_1 = require("../quality-action"); var crafting_job_enum_1 = require("../../crafting-job.enum"); var Reflect = /** @class */ (function (_super) { __extends(Reflect, _super); function Reflect() { return _super !== null && _super.apply(this, arguments) || this; } Reflect.prototype.getLevelRequirement = function () { return { job: crafting_job_enum_1.CraftingJob.ANY, level: 69 }; }; Reflect.prototype._canBeUsed = function (simulation) { return simulation.steps.filter(function (step) { return !step.action.skipsBuffTicks(); }).length === 0; }; Reflect.prototype.skipOnFail = function () { return true; }; Reflect.prototype.canBeMoved = function (currentIndex) { return currentIndex > 0; }; Reflect.prototype.execute = function (simulation) { _super.prototype.execute.call(this, simulation); simulation.addInnerQuietStacks(1); }; Reflect.prototype.getBaseCPCost = function (simulationState) { return 6; }; Reflect.prototype.getBaseDurabilityCost = function (simulationState) { return 10; }; Reflect.prototype.getBaseSuccessRate = function (simulationState) { return 100; }; Reflect.prototype.getIds = function () { return [100387, 100388, 100389, 100390, 100391, 100392, 100393, 100394]; }; Reflect.prototype.getPotency = function (simulation) { return 300; }; return Reflect; }(quality_action_1.QualityAction)); exports.Reflect = Reflect; //# sourceMappingURL=reflect.js.map