DayZ 1.24
Loading...
Searching...
No Matches
RockBase Class Reference
Inheritance diagram for RockBase:
[legend]
Collaboration diagram for RockBase:
[legend]

Private Member Functions

override bool IsRock ()
 
override bool CanBeAutoDeleted ()
 
int GetAmountOfDrops (ItemBase item)
 
void GetMaterialAndQuantityMap (ItemBase item, out map< string, int > output_map)
 
float GetDamageToMiningItemEachDrop (ItemBase item)
 

Detailed Description

Definition at line 1 of file RockBase.c.

Member Function Documentation

◆ CanBeAutoDeleted()

override bool RockBase::CanBeAutoDeleted ( )
inlineprivate

Definition at line 8 of file RockBase.c.

9 {
10 return false;
11 }

◆ GetAmountOfDrops()

int RockBase::GetAmountOfDrops ( ItemBase item)
inlineprivate

Definition at line 13 of file RockBase.c.

14 {
15 return -1;
16 }

◆ GetDamageToMiningItemEachDrop()

float RockBase::GetDamageToMiningItemEachDrop ( ItemBase item)
inlineprivate

Definition at line 43 of file RockBase.c.

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 }

◆ GetMaterialAndQuantityMap()

void RockBase::GetMaterialAndQuantityMap ( ItemBase item,
out map< string, int > output_map )
inlineprivate

Definition at line 19 of file RockBase.c.

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 }

◆ IsRock()

override bool RockBase::IsRock ( )
inlineprivate

Definition at line 3 of file RockBase.c.

4 {
5 return true;
6 }

The documentation for this class was generated from the following file: