DayZ 1.24
Loading...
Searching...
No Matches
RockBase.c
Go to the documentation of this file.
2{
3 override bool IsRock()
4 {
5 return true;
6 }
7
8 override bool CanBeAutoDeleted()
9 {
10 return false;
11 }
12
14 {
15 return -1;
16 }
17
18 /* Defines the yield of the action*/
20 {
21 if (item == null)
22 return;
23
24 switch (item.GetType())
25 {
26 case "Pickaxe":
27 case "SledgeHammer":
28 case "Hammer":
29 case "Mace":
30 output_map.Insert("Stone", 1);
31 break;
32 case "PipeWrench":
33 case "Wrench":
34 case "Screwdriver":
35 case "Crowbar":
36 case "MeatTenderizer":
37 output_map.Insert("SmallStone", 1);
38 break;
39 }
40 }
41
42 /*Return value defines how much damage the item will take*/
44 {
45 if (item)
46 {
47 switch (item.GetType())
48 {
49 case "SledgeHammer":
50 case "Pickaxe":
51 return 20;
52 case "Wrench":
53 case "Screwdriver":
54 case "MeatTenderizer":
55 return 25;
56 case "PipeWrench":
57 case "Crowbar":
58 return 50;
59 case "Hammer":
60 case "Mace":
61 return 40;
62 }
63 }
64
65 return 25;
66 }
67};
68
110// currently unused rocks
111/*
112
113 class Static_stone5_Trail_B: RockBase {};
114 class Static_stone5_Trail_G: RockBase {};
115 class Static_stone5_Trail_R: RockBase {};
116 class Static_stone5_Trail_Y: RockBase {};
117 class Static_stones_erosion: RockBase {};
118*/
119
120
121//jtomasik - it would be blast being able just to inherit it from RockBase, but the way static objects are handled most likely don't allow it? ask p cimo
122// obsolete
123/*class Static_r2_boulder1: RockBase
124 {
125 };
126 class Static_r2_boulder2: RockBase
127 {
128 };
129 class Static_small_stone_01_f: RockBase
130 {
131 };
132 class Static_small_stone_02_f: RockBase
133 {
134 };
135 class Static_stone_small_f: RockBase
136 {
137 };
138 class Static_stone_small_w: RockBase
139 {
140 };
141 class Static_bluntstone_01: RockBase
142 {
143 };
144 class Static_bluntstone_01_lc: RockBase
145 {
146 };
147 class Static_bluntstone_02: RockBase
148 {
149 };
150 class Static_bluntstone_02_lc: RockBase
151 {
152 };
153 class Static_bluntstone_03: RockBase
154 {
155 };
156 class Static_SharpStone_01: RockBase
157 {
158 };
159 class Static_sharpstone_01_lc: RockBase
160 {
161 };
162 class Static_sharpstone_02: RockBase
163 {
164 };
165 class Static_sharpstone_02_lc: RockBase
166 {
167 };
168 class Static_sharpstone_03: RockBase
169 {
170 };
171 class Static_sharpstone_03_lc: RockBase
172 {
173 };*/
float GetDamageToMiningItemEachDrop(ItemBase item)
Definition RockBase.c:43
override bool CanBeAutoDeleted()
Definition RockBase.c:8
int GetAmountOfDrops(ItemBase item)
Definition RockBase.c:13
void GetMaterialAndQuantityMap(ItemBase item, out map< string, int > output_map)
Definition RockBase.c:19
override bool IsRock()
Definition RockBase.c:3