@ffxiv-teamcraft/simulator
Version:
A FINAL FANTASY XIV crafting simulator
54 lines • 2.31 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.RapidSynthesis = void 0;
var progress_action_1 = require("../progress-action");
var crafting_job_enum_1 = require("../../crafting-job.enum");
var RapidSynthesis = /** @class */ (function (_super) {
__extends(RapidSynthesis, _super);
function RapidSynthesis() {
return _super !== null && _super.apply(this, arguments) || this;
}
RapidSynthesis.prototype.getLevelRequirement = function () {
return { job: crafting_job_enum_1.CraftingJob.ANY, level: 9 };
};
RapidSynthesis.prototype._canBeUsed = function (simulationState) {
return true;
};
RapidSynthesis.prototype.getBaseCPCost = function (simulationState) {
return 0;
};
RapidSynthesis.prototype.getBaseDurabilityCost = function (simulationState) {
return 10;
};
RapidSynthesis.prototype.getBaseSuccessRate = function (simulationState) {
return 50;
};
RapidSynthesis.prototype.getIds = function () {
return [100363, 100364, 100365, 100366, 100367, 100368, 100369, 100370];
};
RapidSynthesis.prototype.getPotency = function (simulation) {
if (simulation.crafterStats.level >= 63) {
// Rapid Synthesis Mastery
return 500;
}
return 250;
};
return RapidSynthesis;
}(progress_action_1.ProgressAction));
exports.RapidSynthesis = RapidSynthesis;
//# sourceMappingURL=rapid-synthesis.js.map