@ffxiv-teamcraft/simulator
Version:
A FINAL FANTASY XIV crafting simulator
63 lines • 2.83 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.IntensiveSynthesis = void 0;
var crafting_job_enum_1 = require("../../crafting-job.enum");
var progress_action_1 = require("../progress-action");
var step_state_1 = require("../../step-state");
var buff_enum_1 = require("../../buff.enum");
var IntensiveSynthesis = /** @class */ (function (_super) {
__extends(IntensiveSynthesis, _super);
function IntensiveSynthesis() {
return _super !== null && _super.apply(this, arguments) || this;
}
IntensiveSynthesis.prototype.getLevelRequirement = function () {
return { job: crafting_job_enum_1.CraftingJob.ANY, level: 78 };
};
IntensiveSynthesis.prototype.requiresGood = function () {
return true;
};
IntensiveSynthesis.prototype._canBeUsed = function (simulationState, linear) {
if (linear) {
return true;
}
if (simulationState.safe && !simulationState.hasBuff(buff_enum_1.Buff.HEART_AND_SOUL)) {
return false;
}
return (simulationState.hasBuff(buff_enum_1.Buff.HEART_AND_SOUL) ||
simulationState.state === step_state_1.StepState.GOOD ||
simulationState.state === step_state_1.StepState.EXCELLENT);
};
IntensiveSynthesis.prototype.getBaseCPCost = function (simulationState) {
return 6;
};
IntensiveSynthesis.prototype.getBaseDurabilityCost = function (simulationState) {
return 10;
};
IntensiveSynthesis.prototype.getBaseSuccessRate = function (simulationState) {
return 100;
};
IntensiveSynthesis.prototype.getIds = function () {
return [100315, 100316, 100317, 100318, 100319, 100320, 100321, 100322];
};
IntensiveSynthesis.prototype.getPotency = function (simulation) {
return 400;
};
return IntensiveSynthesis;
}(progress_action_1.ProgressAction));
exports.IntensiveSynthesis = IntensiveSynthesis;
//# sourceMappingURL=intensive-synthesis.js.map