@ffxiv-teamcraft/simulator
Version:
A FINAL FANTASY XIV crafting simulator
57 lines • 2.46 kB
JavaScript
;
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.ImmaculateMend = 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 ImmaculateMend = /** @class */ (function (_super) {
__extends(ImmaculateMend, _super);
function ImmaculateMend() {
return _super !== null && _super.apply(this, arguments) || this;
}
ImmaculateMend.prototype.getLevelRequirement = function () {
return { job: crafting_job_enum_1.CraftingJob.ANY, level: 98 };
};
ImmaculateMend.prototype.getType = function () {
return action_type_1.ActionType.REPAIR;
};
ImmaculateMend.prototype._canBeUsed = function (simulationState) {
return true;
};
ImmaculateMend.prototype.execute = function (simulation) {
simulation.durability = simulation.recipe.durability;
};
ImmaculateMend.prototype.getBaseCPCost = function (simulationState) {
return 112;
};
ImmaculateMend.prototype.getDurabilityCost = function (simulationState) {
return 0;
};
ImmaculateMend.prototype.getIds = function () {
return [100467, 100468, 100469, 100470, 100471, 100472, 100473, 100474];
};
ImmaculateMend.prototype._getSuccessRate = function (simulationState) {
return 100;
};
ImmaculateMend.prototype.skipOnFail = function () {
return true;
};
return ImmaculateMend;
}(crafting_action_1.CraftingAction));
exports.ImmaculateMend = ImmaculateMend;
//# sourceMappingURL=immaculate-mend.js.map