|
class RockBase : Object |
|
{ |
|
override bool IsRock() |
|
{ |
|
return true; |
|
} |
|
|
|
override bool CanBeAutoDeleted() |
|
{ |
|
return false; |
|
} |
|
|
|
int GetAmountOfDrops(ItemBase item) |
|
{ |
|
return -1; |
|
} |
|
|
|
|
|
void GetMaterialAndQuantityMap(ItemBase item, out map<string,int> output_map) |
|
{ |
|
if (item == null) |
|
{ |
|
return; |
|
} |
|
|
|
switch (item.GetType()) |
|
{ |
|
case "Pickaxe": |
|
case "SledgeHammer": |
|
case "Hammer": |
|
case "Mace": |
|
output_map.Insert("Stone",1); |
|
break; |
|
case "PipeWrench": |
|
case "Wrench": |
|
case "Screwdriver": |
|
case "Crowbar": |
|
case "MeatTenderizer": |
|
output_map.Insert("SmallStone",1); |
|
break; |
|
} |
|
} |
|
|
|
|
|
float GetDamageToMiningItemEachDrop(ItemBase item) |
|
{ |
|
if (item) |
|
{ |
|
switch (item.GetType()) |
|
{ |
|
case "SledgeHammer": |
|
case "Pickaxe": |
|
return 20; |
|
case "Wrench": |
|
case "Screwdriver": |
|
case "MeatTenderizer": |
|
return 25; |
|
case "PipeWrench": |
|
case "Crowbar": |
|
return 50; |
|
case "Hammer": |
|
case "Mace": |
|
return 40; |
|
} |
|
} |
|
|
|
return 25; |
|
} |
|
}; |
|
|
|
class Static_stone1: RockBase {}; |
|
class Static_stone2: RockBase {}; |
|
class Static_stone3: RockBase {}; |
|
class Static_stone4: RockBase {}; |
|
class Static_stone5: RockBase {}; |
|
class Static_rock_apart1: RockBase {}; |
|
class Static_rock_apart2: RockBase {}; |
|
class Static_rock_bright_apart1: RockBase {}; |
|
class Static_rock_bright_apart2: RockBase {}; |
|
class Static_rock_bright_monolith1: RockBase {}; |
|
class Static_rock_bright_monolith2: RockBase {}; |
|
class Static_rock_bright_monolith3: RockBase {}; |
|
class Static_rock_bright_monolith4: RockBase {}; |
|
class Static_rock_bright_spike1: RockBase {}; |
|
class Static_rock_bright_spike2: RockBase {}; |
|
class Static_rock_bright_spike3: RockBase {}; |
|
class Static_rock_bright_wallh1: RockBase {}; |
|
class Static_rock_bright_wallh2: RockBase {}; |
|
class Static_rock_bright_wallh3: RockBase {}; |
|
class Static_rock_bright_wallv: RockBase {}; |
|
class Static_rock_monolith1: RockBase {}; |
|
class Static_rock_monolith2: RockBase {}; |
|
class Static_rock_monolith3: RockBase {}; |
|
class Static_rock_monolith4: RockBase {}; |
|
class Static_rock_spike1: RockBase {}; |
|
class Static_rock_spike2: RockBase {}; |
|
class Static_rock_spike3: RockBase {}; |
|
class Static_rock_wallh1: RockBase {}; |
|
class Static_rock_wallh2: RockBase {}; |
|
class Static_rock_wallh3: RockBase {}; |
|
class Static_rock_wallv: RockBase {}; |
|
class Static_rock_stone6: RockBase{}; |
|
class Static_rock_stone6_moss: RockBase{}; |
|
class Static_rock_stone7: RockBase{}; |
|
class Static_rock_stone7_moss: RockBase{}; |
|
class Static_rock_stone8: RockBase{}; |
|
class Static_rock_stone8_moss: RockBase{}; |
|
class Static_rock_stone9: RockBase{}; |
|
class Static_rock_stone9_moss: RockBase{}; |
|
class Static_rock_stone10: RockBase{}; |
|
class Static_rock_stone10_moss: RockBase{}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|