@ffxiv-teamcraft/simulator
Version:
A FINAL FANTASY XIV crafting simulator
59 lines • 2.56 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.TrainedEye = void 0;
var crafting_action_1 = require("../crafting-action");
var crafting_job_enum_1 = require("../../crafting-job.enum");
var action_type_1 = require("../action-type");
var TrainedEye = /** @class */ (function (_super) {
__extends(TrainedEye, _super);
function TrainedEye() {
return _super !== null && _super.apply(this, arguments) || this;
}
TrainedEye.prototype._canBeUsed = function (simulationState, linear) {
return (!simulationState.recipe.expert &&
simulationState.crafterStats.level - simulationState.recipe.lvl >= 10 &&
simulationState.steps.length === 0);
};
TrainedEye.prototype.skipOnFail = function () {
return true;
};
TrainedEye.prototype.execute = function (simulation) {
simulation.quality = simulation.recipe.quality;
};
TrainedEye.prototype.getBaseCPCost = function (simulationState) {
return 250;
};
TrainedEye.prototype.getDurabilityCost = function (simulationState) {
return 0;
};
TrainedEye.prototype.getIds = function () {
return [100283, 100284, 100285, 100286, 100287, 100288, 100289, 100290];
};
TrainedEye.prototype.getLevelRequirement = function () {
return { job: crafting_job_enum_1.CraftingJob.ANY, level: 80 };
};
TrainedEye.prototype._getSuccessRate = function (simulationState) {
return 100;
};
TrainedEye.prototype.getType = function () {
return action_type_1.ActionType.QUALITY;
};
return TrainedEye;
}(crafting_action_1.CraftingAction));
exports.TrainedEye = TrainedEye;
//# sourceMappingURL=trained-eye.js.map