From: Pasi Kallinen Date: Tue, 22 Feb 2022 08:01:17 +0000 (+0200) Subject: Flint and hard gems break less often when thrown X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=733fc849348287bbdff364cef04257b80a5b211f;p=nethack Flint and hard gems break less often when thrown --- diff --git a/doc/fixes3-7-0.txt b/doc/fixes3-7-0.txt index 3b980b3df..9f0f2d3bb 100644 --- a/doc/fixes3-7-0.txt +++ b/doc/fixes3-7-0.txt @@ -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 diff --git a/src/dothrow.c b/src/dothrow.c index b674eae37..c61a07e08 100644 --- a/src/dothrow.c +++ b/src/dothrow.c @@ -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);