File size: 3,993 Bytes
24b81cb |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 |
class RockBase : Object
{
override bool IsRock()
{
return true;
}
override bool CanBeAutoDeleted()
{
return false;
}
int GetAmountOfDrops(ItemBase item)
{
return -1;
}
/* Defines the yield of the action*/
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;
}
}
/*Return value defines how much damage the item will take*/
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{};
// currently unused rocks
/*
class Static_stone5_Trail_B: RockBase {};
class Static_stone5_Trail_G: RockBase {};
class Static_stone5_Trail_R: RockBase {};
class Static_stone5_Trail_Y: RockBase {};
class Static_stones_erosion: RockBase {};
*/
//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
// obsolete
/*class Static_r2_boulder1: RockBase
{
};
class Static_r2_boulder2: RockBase
{
};
class Static_small_stone_01_f: RockBase
{
};
class Static_small_stone_02_f: RockBase
{
};
class Static_stone_small_f: RockBase
{
};
class Static_stone_small_w: RockBase
{
};
class Static_bluntstone_01: RockBase
{
};
class Static_bluntstone_01_lc: RockBase
{
};
class Static_bluntstone_02: RockBase
{
};
class Static_bluntstone_02_lc: RockBase
{
};
class Static_bluntstone_03: RockBase
{
};
class Static_SharpStone_01: RockBase
{
};
class Static_sharpstone_01_lc: RockBase
{
};
class Static_sharpstone_02: RockBase
{
};
class Static_sharpstone_02_lc: RockBase
{
};
class Static_sharpstone_03: RockBase
{
};
class Static_sharpstone_03_lc: RockBase
{
};*/ |