/
manipulation.ts
53 lines (42 loc) · 1.14 KB
/
manipulation.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import { BuffAction } from '../buff-action';
import { Simulation } from '../../../simulation/simulation';
import { Buff } from '../../buff.enum';
import { ActionType } from '../action-type';
import { CraftingJob } from '../../crafting-job.enum';
export class Manipulation extends BuffAction {
canBeClipped(): boolean {
return true;
}
getWaitDuration(): number {
return 2;
}
getLevelRequirement(): { job: CraftingJob; level: number } {
return { job: CraftingJob.ANY, level: 65 };
}
public getType(): ActionType {
return ActionType.REPAIR;
}
getBaseCPCost(simulationState: Simulation): number {
return 96;
}
getDuration(simulation: Simulation): number {
return 8;
}
getIds(): number[] {
return [4574, 4575, 4576, 4577, 4578, 4579, 4580, 4581];
}
public getOverrides(): Buff[] {
return super.getOverrides().concat(Buff.MANIPULATION);
}
getBuff(): Buff {
return Buff.MANIPULATION;
}
getInitialStacks(): number {
return 0;
}
protected getTick(): ((simulation: Simulation) => void) | undefined {
return (simulation: Simulation) => {
simulation.repair(5);
};
}
}