1
0
Fork 0
mirror of https://codeberg.org/noisytoot/notnotdnethack.git synced 2025-05-10 17:25:12 +01:00

Hellfire blows up its ammo

This commit is contained in:
Chris-plus-alphanumericgibberish 2014-10-21 04:29:42 -04:00
parent 3a9a1ff27f
commit 42ab9fe5f3

View file

@ -1401,14 +1401,19 @@ register struct obj *obj;
* but we need ammo to stay around longer on average.
*/
int broken, chance;
chance = 3 + greatest_erosion(obj) - obj->spe;
if (chance > 1)
broken = rn2(chance);
else
broken = !rn2(4);
if (obj->blessed && !rnl(4))
broken = 0;
if(uwep && ammo_and_launcher(obj, uwep) &&
(uwep->oartifact==ART_HELLFIRE)
){
broken = 1;
} else {
chance = 3 + greatest_erosion(obj) - obj->spe;
if (chance > 1)
broken = rn2(chance);
else
broken = !rn2(4);
if (obj->blessed && !rnl(4))
broken = 0;
}
if (broken) {
if (*u.ushops)
check_shop_obj(obj, bhitpos.x,bhitpos.y, TRUE);