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

Fix crystal swords

Get +1/3 enchantment (so +9 max)

Don't allow double enchantment
This commit is contained in:
ChrisANG 2018-03-08 23:44:00 -05:00
parent bad3d8c1ef
commit e8a9491ed9
2 changed files with 3 additions and 3 deletions

View file

@ -348,7 +348,7 @@ int spec;
else tmp += rnd(6);
break;
case CRYSTAL_SWORD: tmp += d(1,12+2*dmod)+otmp->spe; break;
case CRYSTAL_SWORD: tmp += d(1,12+2*dmod)+otmp->spe/3; break;
case AXE:
if(otmp->oartifact == ART_GIANTSLAYER) tmp += d(2,4+2*dmod);
@ -726,7 +726,7 @@ lightsaber_form_ldie:
if(otmp->oartifact == ART_TOBIUME) tmp -= 2+dmod;
break;
case CRYSTAL_SWORD: tmp += d(1,8+2*dmod)+otmp->spe; break;
case CRYSTAL_SWORD: tmp += d(1,8+2*dmod)+otmp->spe/3; break;
case AXE:
if(otmp->oartifact == ART_GIANTSLAYER) tmp += d(1,4+2*dmod);

View file

@ -778,7 +778,7 @@ register int amount;
return(1);
}
/* there is a (soft) upper and lower limit to uwep->spe */
safelim = uwep->otyp == CRYSTAL_SWORD ? 8 : 5;
safelim = uwep->otyp == 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