-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathweapons.js
58 lines (57 loc) · 1.04 KB
/
weapons.js
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
54
55
56
57
58
/**
* @param {{
* accuracy: number[],
* damage: number,
* overwhelming: number,
* [auto]: number}} options
* @constructor
*/
var Weapon = function (options) {
var weap = this;
weap.accuracy = options.accuracy || 0;
weap.damage = options.damage || 1;
weap.overwhelming = options.overwhelming || 1;
weap.auto = options.auto || 0;
};
module.exports = {
light_melee: new Weapon({
accuracy: [4],
damage: 7,
overwhelming: 1
}),
medium_melee: new Weapon({
accuracy: [2],
damage: 9,
overwhelming: 1
}),
heavy_melee: new Weapon({
accuracy: [0],
damage: 11,
overwhelming: 1
}),
light_archery: new Weapon({
accuracy: [-2,4,2,0,-2],
damage: 7,
overwhelming: 1
}),
medium_archery: new Weapon({
accuracy: [-2,4,2,0,-2],
damage: 9,
overwhelming: 1
}),
heavy_archery: new Weapon({
accuracy: [-2,4,2,0,-2],
damage: 11,
overwhelming: 1
}),
light_thrown: new Weapon({
accuracy: [4,3,2,-1,-3],
damage: 7,
overwhelming: 1
}),
medium_thrown: new Weapon({
accuracy: [4,3,2,-1,-3],
damage: 9,
overwhelming: 1
})
};