… | |
… | |
255 | destroy = 1; |
255 | destroy = 1; |
256 | if ((op->material & M_STONE || op->material & M_ADAMANT) && rndm (1, 10) == 1) |
256 | if ((op->material & M_STONE || op->material & M_ADAMANT) && rndm (1, 10) == 1) |
257 | destroy = 1; |
257 | destroy = 1; |
258 | if ((op->material & M_SOFT_METAL || op->material & M_BONE) && rndm (1, 3) == 1) |
258 | if ((op->material & M_SOFT_METAL || op->material & M_BONE) && rndm (1, 3) == 1) |
259 | destroy = 1; |
259 | destroy = 1; |
260 | if (op->material & M_ICE && MAP_TEMP (m) > 32) |
260 | if (op->material & M_ICE && m->temp > 32) |
261 | destroy = 1; |
261 | destroy = 1; |
262 | } |
262 | } |
263 | /* adjust overall chance below */ |
263 | /* adjust overall chance below */ |
264 | if (destroy && rndm (0, 1)) |
264 | if (destroy && rndm (0, 1)) |
265 | op->destroy (); |
265 | op->destroy (); |