@ffxiv-teamcraft/simulator
Version:
A FINAL FANTASY XIV crafting simulator
66 lines • 2.69 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.Manipulation = void 0;
var buff_action_1 = require("../buff-action");
var buff_enum_1 = require("../../buff.enum");
var action_type_1 = require("../action-type");
var crafting_job_enum_1 = require("../../crafting-job.enum");
var Manipulation = /** @class */ (function (_super) {
__extends(Manipulation, _super);
function Manipulation() {
return _super !== null && _super.apply(this, arguments) || this;
}
Manipulation.prototype.canBeClipped = function () {
return true;
};
Manipulation.prototype.getWaitDuration = function () {
return 2;
};
Manipulation.prototype.getLevelRequirement = function () {
return { job: crafting_job_enum_1.CraftingJob.ANY, level: 65 };
};
Manipulation.prototype.getType = function () {
return action_type_1.ActionType.REPAIR;
};
Manipulation.prototype.getBaseCPCost = function (simulationState) {
return 96;
};
Manipulation.prototype.getDuration = function (simulation) {
return 8;
};
Manipulation.prototype.getIds = function () {
return [4574, 4575, 4576, 4577, 4578, 4579, 4580, 4581];
};
Manipulation.prototype.getOverrides = function () {
return _super.prototype.getOverrides.call(this).concat(buff_enum_1.Buff.MANIPULATION);
};
Manipulation.prototype.getBuff = function () {
return buff_enum_1.Buff.MANIPULATION;
};
Manipulation.prototype.getInitialStacks = function () {
return 0;
};
Manipulation.prototype.getTick = function () {
return function (simulation) {
simulation.repair(5);
};
};
return Manipulation;
}(buff_action_1.BuffAction));
exports.Manipulation = Manipulation;
//# sourceMappingURL=manipulation.js.map