1
0
Fork 0
mirror of https://codeberg.org/noisytoot/notnotdnethack.git synced 2025-07-29 00:42:28 +01:00

fix weapons not being enchanted above +1

In addition, remove crystal swords only vibrating at +8 and above, since they can't be enchnated there safely anyway now
This commit is contained in:
EasterlyIrk 2018-05-31 08:28:33 -07:00 committed by GitHub
parent 30d8787634
commit 4bf4c1c156
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -787,7 +787,7 @@ register int amount;
return(1);
}
/* there is a (soft) upper and lower limit to uwep->spe */
safelim = uwep->otyp == 5;
safelim == 5;
if(((uwep->spe > safelim && amount >= 0) || (uwep->spe < -safelim && amount < 0))
&& rn2(3) && uwep->oartifact != ART_ROD_OF_SEVEN_PARTS
&& uwep->oartifact != ART_PEN_OF_THE_VOID
@ -836,7 +836,7 @@ register int amount;
/* an elven magic clue, cookie@keebler */
/* elven weapons vibrate warningly when enchanted beyond a limit */
if ((uwep->otyp == CRYSTAL_SWORD ? (uwep->spe > 8) : (uwep->spe > 5))
if ((uwep->spe > 5)
&& uwep->oartifact != ART_PEN_OF_THE_VOID && uwep->oartifact != ART_ANNULUS &&
(is_elven_weapon(uwep) || uwep->oartifact || !rn2(7)) &&
uwep->oartifact != ART_ROD_OF_SEVEN_PARTS