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:
parent
30d8787634
commit
4bf4c1c156
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue