Flint and hard gems break less often when thrown

This commit is contained in:
Pasi Kallinen
2022-02-22 10:01:17 +02:00
parent d452242af4
commit 733fc84934
2 changed files with 6 additions and 0 deletions

View File

@@ -803,6 +803,7 @@ illiterate hero receiving a spellbook from their deity gets the spell shoved
adjust levels of sleep, confuse monster, and charm monster spells
replace monk starting sleep spell with confuse monster
chargeable rings have a chance of getting charged when hit with electricity
flint and hard gems break less often when thrown
Fixes to 3.7.0-x Problems that Were Exposed Via git Repository

View File

@@ -1923,6 +1923,11 @@ thitmonst(
if (obj->blessed && !rnl(4))
broken = 0;
/* Flint and hard gems don't break easily */
if (((obj->oclass == GEM_CLASS && objects[otyp].oc_tough)
|| obj->otyp == FLINT) && !rn2(2))
broken = 0;
if (broken) {
if (*u.ushops || obj->unpaid)
check_shop_obj(obj, g.bhitpos.x, g.bhitpos.y, TRUE);