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_clothes_defaults(contentfeatures_t
*f
)
27 /* TODO: set texture unknown_item.png (unknown_clothes.png?) */
28 /* the type of this clothing */
29 f
->data
.clothes
.type
= CCT_NONE
;
30 /* the strength as armour */
31 f
->data
.clothes
.armour
= 0.0;
32 /* the effectiveness against the cold zone */
33 f
->data
.clothes
.warmth
= 0.0;
34 /* the effectiveness against vacuum / space */
35 f
->data
.clothes
.vacuum
= 0.0;
36 /* the effectiveness against suffocation */
37 f
->data
.clothes
.suffocate
= 0.0;
38 /* this determines how fast the item wears out from use */
39 f
->data
.clothes
.durability
= 5;
40 /* for medallions, how much the affect durability of other items */
41 f
->data
.clothes
.effect
= 1.0;
44 int content_clothes_init()
48 for (i
=0; i
<CONTENT_ARRAY_SIZE
; i
++) {
49 f
= &contentfeatures
[CONTENT_INDEX_CLOTHES
][i
];
50 content_clothes_defaults(f
);