Dayz Explorer 1.28.160049
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
13 int GetAmountOfDrops(ItemBase item)
14 {
15 return -1;
16 }
17
18 /* Defines the yield of the action*/
19 void GetMaterialAndQuantityMap(ItemBase item, out map<string,int> output_map)
20 {
21 if (item == null)
22 {
23 return;
24 }
25
26 switch (item.GetType())
27 {
28 case "Pickaxe":
29 case "SledgeHammer":
30 case "Hammer":
31 case "Mace":
32 output_map.Insert("Stone",1);
33 break;
34 case "PipeWrench":
35 case "Wrench":
36 case "Screwdriver":
37 case "Crowbar":
38 case "MeatTenderizer":
39 case "Iceaxe":
40 output_map.Insert("SmallStone",1);
41 break;
42 }
43 }
44
45 /*Return value defines how much damage the item will take*/
46 float GetDamageToMiningItemEachDrop(ItemBase item)
47 {
48 if (item)
49 {
50 switch (item.GetType())
51 {
52 case "SledgeHammer":
53 case "Pickaxe":
54 case "Iceaxe":
55 return 20;
56 case "Wrench":
57 case "Screwdriver":
58 case "MeatTenderizer":
59 return 25;
60 case "PipeWrench":
61 case "Crowbar":
62 return 50;
63 case "Hammer":
64 case "Mace":
65 return 40;
66 }
67 }
68
69 return 25;
70 }
71};
72
118
119 //Moved from Bliss folder
137// currently unused rocks
138/*
139 class Static_stones_erosion: RockBase {};
140*/
141
142
143//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
144// obsolete
145/*class Static_r2_boulder1: RockBase
146{
147};
148class Static_r2_boulder2: RockBase
149{
150};
151class Static_small_stone_01_f: RockBase
152{
153};
154class Static_small_stone_02_f: RockBase
155{
156};
157class Static_stone_small_f: RockBase
158{
159};
160class Static_stone_small_w: RockBase
161{
162};
163class Static_bluntstone_01: RockBase
164{
165};
166class Static_bluntstone_01_lc: RockBase
167{
168};
169class Static_bluntstone_02: RockBase
170{
171};
172class Static_bluntstone_02_lc: RockBase
173{
174};
175class Static_bluntstone_03: RockBase
176{
177};
178class Static_SharpStone_01: RockBase
179{
180};
181class Static_sharpstone_01_lc: RockBase
182{
183};
184class Static_sharpstone_02: RockBase
185{
186};
187class Static_sharpstone_02_lc: RockBase
188{
189};
190class Static_sharpstone_03: RockBase
191{
192};
193class Static_sharpstone_03_lc: RockBase
194{
195};*/