@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.BasicSynthesis = void 0;
var progress_action_1 = require("../progress-action");
var crafting_job_enum_1 = require("../../crafting-job.enum");
var BasicSynthesis = /** @class */ (function (_super) {
__extends(BasicSynthesis, _super);
function BasicSynthesis() {
return _super !== null && _super.apply(this, arguments) || this;
}
BasicSynthesis.prototype.getLevelRequirement = function () {
return { job: crafting_job_enum_1.CraftingJob.ANY, level: 1 };
};
BasicSynthesis.prototype._canBeUsed = function (simulationState) {
return true;
};
BasicSynthesis.prototype.getBaseDurabilityCost = function (simulationState) {
return 10;
};
BasicSynthesis.prototype.getBaseSuccessRate = function (simulationState) {
return 100;
};
BasicSynthesis.prototype.getBaseCPCost = function (simulationState) {
return 0;
};
BasicSynthesis.prototype.getIds = function () {
return [100001, 100015, 100030, 100075, 100045, 100060, 100090, 100105];
};
BasicSynthesis.prototype.getPotency = function (simulation) {
if (simulation.crafterStats.level >= 31) {
// Basic Synthesis Mastery
return 120;
}
return 100;
};
return BasicSynthesis;
}(progress_action_1.ProgressAction));
exports.BasicSynthesis = BasicSynthesis;
//# sourceMappingURL=basic-synthesis.js.map