@ffxiv-teamcraft/simulator
Version:
A FINAL FANTASY XIV crafting simulator
64 lines • 2.74 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.HastyTouch = void 0;
var quality_action_1 = require("../quality-action");
var crafting_job_enum_1 = require("../../crafting-job.enum");
var buff_enum_1 = require("../../buff.enum");
var HastyTouch = /** @class */ (function (_super) {
__extends(HastyTouch, _super);
function HastyTouch() {
return _super !== null && _super.apply(this, arguments) || this;
}
HastyTouch.prototype.execute = function (simulation, safe, skipStackAddition) {
if (safe === void 0) { safe = false; }
if (skipStackAddition === void 0) { skipStackAddition = false; }
_super.prototype.execute.call(this, simulation, safe, skipStackAddition);
if (simulation.crafterStats.level >= 96) {
simulation.buffs.push({
duration: 1,
buff: buff_enum_1.Buff.EXPEDIENCE,
stacks: 1,
appliedStep: simulation.steps.length,
});
}
};
HastyTouch.prototype.getLevelRequirement = function () {
return { job: crafting_job_enum_1.CraftingJob.ANY, level: 9 };
};
HastyTouch.prototype._canBeUsed = function (simulationState) {
return true;
};
HastyTouch.prototype.getBaseCPCost = function (simulationState) {
return 0;
};
HastyTouch.prototype.getBaseDurabilityCost = function (simulationState) {
return 10;
};
HastyTouch.prototype.getBaseSuccessRate = function (simulationState) {
return 60;
};
HastyTouch.prototype.getIds = function () {
return [100355, 100356, 100357, 100358, 100359, 100360, 100361, 100362];
};
HastyTouch.prototype.getPotency = function (simulation) {
return 100;
};
return HastyTouch;
}(quality_action_1.QualityAction));
exports.HastyTouch = HastyTouch;
//# sourceMappingURL=hasty-touch.js.map