1 /************************************************************************
3 * voxelands - 3d voxel world sandbox game
4 * Copyright (C) Lisa 'darkrose' Milne 2016 <lisa@ltmnet.com>
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14 * See the GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>
18 ************************************************************************/
21 #define _CONTENT_LOCAL
24 static void content_tool_defaults(contentfeatures_t
*f
)
27 /* TODO: set texture unknown_item.png (unknown_tool.png?) */
28 f
->data
.tool
.type
= CTT_NONE
;
29 f
->data
.tool
.drop_count
= -1;
30 f
->data
.tool
.liquids_pointable
= 0;
31 f
->data
.tool
.damaging_nodes_diggable
= 1;
32 f
->data
.tool
.has_punch_effect
= 1;
33 f
->data
.tool
.has_unlock_effect
= 0;
34 f
->data
.tool
.has_rotate_effect
= 0;
35 f
->data
.tool
.has_fire_effect
= 0;
36 f
->data
.tool
.dig_time
= 3.;
37 f
->data
.tool
.level
= 0;
38 f
->data
.tool
.thrown_item
= CONTENT_IGNORE
;
41 int content_tool_init()
45 for (i
=0; i
<CONTENT_ARRAY_SIZE
; i
++) {
46 f
= &contentfeatures
[CONTENT_INDEX_TOOL
][i
];
47 content_tool_defaults(f
);