-
Notifications
You must be signed in to change notification settings - Fork 0
/
actions.js
125 lines (124 loc) · 2.55 KB
/
actions.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
import { BLOCK_INTS } from './blocks.js';
export default [
{
name: 'Shotgun',
reload: 25,
count: 4,
speed: 7,
hp: 180,
modY: 0.01,
explode: 0,
spread: 0.7,
damage: 1,
requiredKills: 0,
destroy: [BLOCK_INTS.dirt],
},
{
name: 'Sniper Rifle',
reload: 50,
count: 1,
speed: 75,
hp: 90,
modY: 0,
explode: 0,
spread: 0,
damage: 10,
requiredKills: 150,
destroy: [],
},
{
name: 'Grenade',
reload: 45,
count: 1,
speed: 5,
requiredKills: 150,
hp: 360,
modY: 0.1,
explode: 1,
spread: 0.5,
damage: 2,
requiredKills: 0,
destroy: [BLOCK_INTS.dirt, BLOCK_INTS.wood],
},
{
name: 'Flamethrower',
reload: 1,
flammable: true,
count: 1,
speed: 7,
hp: 45,
requiredKills: 400,
modY: -0.1,
explode: 0,
spread: 1.5,
damage: 0.15,
destroy: [],
conditions: function condition(player) {
return !player.inWater;
},
},
{
name: 'Highyeild Bomb',
reload: 150,
count: 1,
speed: 4.5,
hp: 900,
modY: 1,
requiredKills: 300,
explode: 3,
spread: 1,
damage: 20,
destroy: [BLOCK_INTS.wood, BLOCK_INTS.dirt, BLOCK_INTS.stone],
},
{
name: 'Rocket Launcher',
reload: 87,
count: 4,
speed: 8,
hp: 240,
modY: 0.01,
explode: 2,
requiredKills: 200,
spread: 2,
damage: 2,
conditions: function condition(player) {
return !player.underWater;
},
destroy: [BLOCK_INTS.wood, BLOCK_INTS.dirt, BLOCK_INTS.stone],
},
{
name: 'Build Dirt',
build: true,
reload: 4,
requiredKills: 0,
type: BLOCK_INTS.dirt,
},
{
name: 'Build Leaf',
build: true,
reload: 10,
requiredKills: 50,
type: BLOCK_INTS.leaves,
},
{
name: 'Build Stone',
build: true,
reload: 10,
requiredKills: 200,
type: BLOCK_INTS.stone,
},
{
name: 'Build Wood',
build: true,
reload: 6,
requiredKills: 100,
type: BLOCK_INTS.wood,
},
{
name: 'Build Iron',
build: true,
reload: 30,
requiredKills: 500,
type: BLOCK_INTS.iron,
},
];