summaryrefslogtreecommitdiff
path: root/glooptest/tools_module/init.lua
blob: 3c1cabc537beeda9c415f283ad6f2fdf9a711f79 (plain)
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
glooptest.tools_module = {}
glooptest.debug("MESSAGE","Loading Tools Module Now!")

dofile(minetest.get_modpath("glooptest").."/tools_module/api.lua")

glooptest.tools_module.register_tools("glooptest", "wood", "Wooden", "group:wood", {
	handsaw = {
		makes = true,
		texture = "glooptest_tool_woodhandsaw.png",
		caps = {
			full_punch_interval = 1.0,
			max_drop_level = 0,
			groupcaps = {
				snappy = {times={[2]=1.10, [3]=0.60}, uses=10, maxlevel=1},
				fleshy = {times={[3]=0.90}, uses=10, maxlevel=0}
			},
			damage_groups = {fleshy=2, snappy=3},
		},
	},
	hammer = {
		makes = true,
		texture = "glooptest_tool_woodhammer.png",
		caps = {
			full_punch_interval = 1.0,
			max_drop_level = 0,
			groupcaps = {
				bendy = {times={[2]=1.00, [3]=0.55}, uses=10, maxlevel=1},
				cracky = {times={[3]=1.10}, uses=10, maxlevel=0}
			},
			damage_groups = {fleshy=2, bendy=2, cracky=1},
		},
	},
})

glooptest.tools_module.register_tools("glooptest", "stone", "Stone", "group:stone", {
	handsaw = {
		makes = true,
		texture = "glooptest_tool_stonehandsaw.png",
		caps = {
			full_punch_interval = 1.1,
			max_drop_level = 0,
			groupcaps = {
				snappy = {times={[2]=0.80, [3]=0.40}, uses=20, maxlevel=1},
				fleshy = {times={[3]=0.70}, uses=20, maxlevel=0}
			},
			damage_groups = {fleshy=3, snappy=3},
		},
	},
	hammer = {
		makes = true,
		texture = "glooptest_tool_stonehammer.png",
		caps = {
			full_punch_interval = 1.1,
			max_drop_level = 0,
			groupcaps = {
				bendy = {times={[2]=0.90, [3]=0.60}, uses=20, maxlevel=1},
				cracky = {times={[3]=1.00}, uses=20, maxlevel=0}
			},
			damage_groups = {fleshy=2, bendy=2, cracky=1},
		},
	},
})

glooptest.tools_module.register_tools("glooptest", "steel", "Steel", "default:steel_ingot", {
	handsaw = {
		makes = true,
		texture = "glooptest_tool_steelhandsaw.png",
		caps = {
			full_punch_interval = 0.9,
			max_drop_level = 0,
			groupcaps = {
				snappy = {times={[1]=1.00, [2]=0.65, [3]=0.25}, uses=30, maxlevel=2},
				fleshy = {times={[2]=1.10, [3]=0.60}, uses=30, maxlevel=1}
			},
			damage_groups = {fleshy=4, snappy=5},
		},
	},
	hammer = {
		makes = true,
		texture = "glooptest_tool_steelhammer.png",
		caps = {
			full_punch_interval = 1.0,
			max_drop_level = 0,
			groupcaps = {
				bendy = {times={[1]=1.30, [2]=0.80, [3]=0.50}, uses=30, maxlevel=2},
				cracky = {times={[2]=1.80, [3]=0.90}, uses=30, maxlevel=0}
			},
			damage_groups = {fleshy=3, bendy=3, cracky=2},
		},
	},
})

glooptest.tools_module.register_tools("glooptest", "bronze", "Bronze", "default:bronze_ingot", {
	handsaw = {
		makes = true,
		texture = "glooptest_tool_bronzehandsaw.png",
		caps = {
			full_punch_interval = 0.9,
			max_drop_level = 0,
			groupcaps = {
				snappy = {times={[1]=1.00, [2]=0.65, [3]=0.25}, uses=40, maxlevel=2},
				fleshy = {times={[2]=1.10, [3]=0.60}, uses=40, maxlevel=1}
			},
			damage_groups = {fleshy=4, snappy=5},
		},
	},
	hammer = {
		makes = true,
		texture = "glooptest_tool_bronzehammer.png",
		caps = {
			full_punch_interval = 1.0,
			max_drop_level = 0,
			groupcaps = {
				bendy = {times={[1]=1.30, [2]=0.80, [3]=0.50}, uses=40, maxlevel=2},
				cracky = {times={[2]=1.80, [3]=0.90}, uses=40, maxlevel=0}
			},
			damage_groups = {fleshy=3, bendy=3, cracky=2},
		},
	},
})

glooptest.tools_module.register_tools("glooptest", "mese", "Mese", "default:mese_crystal", {
	handsaw = {
		makes = true,
		texture = "glooptest_tool_mesehandsaw.png",
		caps = {
			full_punch_interval = 0.9,
			max_drop_level = 0,
			groupcaps = {
				snappy = {times={[1]=0.70, [2]=0.40, [3]=0.20}, uses=30, maxlevel=3},
				fleshy = {times={[2]=1.00, [3]=0.55}, uses=30, maxlevel=1}
			},
			damage_groups = {fleshy=5, snappy=6},
		},
	},
	hammer = {
		makes = true,
		texture = "glooptest_tool_mesehammer.png",
		caps = {
			full_punch_interval = 1.0,
			max_drop_level = 0,
			groupcaps = {
				bendy = {times={[1]=1.00, [2]=0.60, [3]=0.40}, uses=30, maxlevel=3},
				cracky = {times={[2]=1.70, [3]=0.85}, uses=30, maxlevel=0}
			},
			damage_groups = {fleshy=4, bendy=4, cracky=2},
		},
	},
})

glooptest.tools_module.register_tools("glooptest", "diamond", "Diamond", "default:diamond", {
	handsaw = {
		makes = true,
		texture = "glooptest_tool_diamondhandsaw.png",
		caps = {
			full_punch_interval = 0.9,
			max_drop_level = 0,
			groupcaps = {
				snappy = {times={[1]=0.60, [2]=0.30, [3]=0.20}, uses=30, maxlevel=3},
				fleshy = {times={[2]=0.90, [3]=0.55}, uses=30, maxlevel=1}
			},
			damage_groups = {fleshy=5, snappy=7},
		},
	},
	hammer = {
		makes = true,
		texture = "glooptest_tool_diamondhammer.png",
		caps = {
			full_punch_interval = 1.0,
			max_drop_level = 0,
			groupcaps = {
				bendy = {times={[1]=0.90, [2]=0.50, [3]=0.40}, uses=30, maxlevel=3},
				cracky = {times={[2]=1.70, [3]=0.85}, uses=30, maxlevel=0}
			},
			damage_groups = {fleshy=4, bendy=5, cracky=2},
		},
	},
})

if LOAD_ORE_MODULE == true then
	glooptest.tools_module.register_tools("glooptest", "alatro", "Alatro", "glooptest:alatro_ingot", {
		handsaw = {
			makes = true,
			texture = "glooptest_tool_alatrohandsaw.png",
			caps = {
				full_punch_interval = 1.0,
				max_drop_level = 0,
				groupcaps = {
					snappy = {times={[2]=0.70, [3]=0.30}, uses=40, maxlevel=1},
					fleshy = {times={[3]=0.65}, uses=40, maxlevel=0}
				},
				damage_groups = {fleshy=3, snappy=3},
			},
		},
		hammer = {
			makes = true,
			texture = "glooptest_tool_alatrohammer.png",
			caps = {
				full_punch_interval = 1.0,
				max_drop_level = 0,
				groupcaps = {
					bendy = {times={[2]=0.85, [3]=0.55}, uses=40, maxlevel=1},
					cracky = {times={[3]=0.95}, uses=40, maxlevel=0}
				},
				damage_groups = {fleshy=2, bendy=2, cracky=1},
			},
		},
	})
	glooptest.tools_module.register_tools("glooptest", "arol", "Arol", "glooptest:arol_ingot", {
		handsaw = {
			makes = true,
			texture = "glooptest_tool_arolhandsaw.png",
			caps = {
				full_punch_interval = 0.5,
				max_drop_level = 0,
				groupcaps = {
					snappy = {times={[2]=1.00, [3]=0.80}, uses=300, maxlevel=1},
					fleshy = {times={[3]=1.20}, uses=300, maxlevel=0}
				},
				damage_groups = {fleshy=3, snappy=3},
			},
		},
		hammer = {
			makes = true,
			texture = "glooptest_tool_arolhammer.png",
			caps = {
				full_punch_interval = 0.5,
				max_drop_level = 0,
				groupcaps = {
					bendy = {times={[2]=1.65, [3]=1.00}, uses=300, maxlevel=1},
					cracky = {times={[3]=1.65}, uses=300, maxlevel=0}
				},
				damage_groups = {fleshy=2, bendy=2, cracky=1},
			},
		},
	})
end