UNPKG

@ffxiv-teamcraft/simulator

Version:
57 lines 2.44 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.MaterialMiracle = void 0; var crafting_action_1 = require("../crafting-action"); var action_type_1 = require("../action-type"); var crafting_job_enum_1 = require("../../crafting-job.enum"); var MaterialMiracle = /** @class */ (function (_super) { __extends(MaterialMiracle, _super); function MaterialMiracle() { return _super !== null && _super.apply(this, arguments) || this; } MaterialMiracle.prototype.getLevelRequirement = function () { return { job: crafting_job_enum_1.CraftingJob.ANY, level: 1 }; }; MaterialMiracle.prototype.getType = function () { return action_type_1.ActionType.OTHER; }; MaterialMiracle.prototype._canBeUsed = function (simulationState) { return !simulationState.safe; }; MaterialMiracle.prototype.execute = function (simulation, safe) { // DO NOTHING, THIS IS PURELY FOR REPLAY PURPOSE }; MaterialMiracle.prototype.getBaseCPCost = function (simulationState) { return 0; }; MaterialMiracle.prototype.getIds = function () { return [41269]; }; MaterialMiracle.prototype._getSuccessRate = function (simulationState) { return 100; }; MaterialMiracle.prototype.getDurabilityCost = function (simulationState) { return 0; }; MaterialMiracle.prototype.skipOnFail = function () { return true; }; return MaterialMiracle; }(crafting_action_1.CraftingAction)); exports.MaterialMiracle = MaterialMiracle; //# sourceMappingURL=material-miracle.js.map