@ffxiv-teamcraft/simulator
Version:
A FINAL FANTASY XIV crafting simulator
68 lines • 2.96 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.PreciseTouch = void 0;
var quality_action_1 = require("../quality-action");
var crafting_job_enum_1 = require("../../crafting-job.enum");
var step_state_1 = require("../../step-state");
var buff_enum_1 = require("../../buff.enum");
var PreciseTouch = /** @class */ (function (_super) {
__extends(PreciseTouch, _super);
function PreciseTouch() {
return _super !== null && _super.apply(this, arguments) || this;
}
PreciseTouch.prototype.getLevelRequirement = function () {
return { job: crafting_job_enum_1.CraftingJob.ANY, level: 53 };
};
PreciseTouch.prototype.execute = function (simulation) {
_super.prototype.execute.call(this, simulation);
simulation.addInnerQuietStacks(1);
};
PreciseTouch.prototype.requiresGood = function () {
return true;
};
PreciseTouch.prototype._canBeUsed = function (simulationState, linear) {
if (linear === void 0) { linear = false; }
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);
};
PreciseTouch.prototype.getBaseCPCost = function (simulationState) {
return 18;
};
PreciseTouch.prototype.getBaseDurabilityCost = function (simulationState) {
return 10;
};
PreciseTouch.prototype.getBaseSuccessRate = function (simulationState) {
return 100;
};
PreciseTouch.prototype.getIds = function () {
return [100128, 100129, 100130, 100131, 100132, 100133, 100134, 100135];
};
PreciseTouch.prototype.getPotency = function (simulation) {
return 150;
};
return PreciseTouch;
}(quality_action_1.QualityAction));
exports.PreciseTouch = PreciseTouch;
//# sourceMappingURL=precise-touch.js.map