1
0
Fork 0
mirror of https://codeberg.org/noisytoot/notnotdnethack.git synced 2025-05-17 13:05:06 +01:00

Message bugfix: Don't yammer about spell knowledge already being keen when reading an archive

This commit is contained in:
ChrisANG 2024-10-08 15:08:18 -04:00
parent 99964d5f88
commit da4b7bb598

View file

@ -4007,12 +4007,12 @@ int spellnum;
Sprintf(splname, objects[spellnum].oc_name_known ? "\"%s\"" : "the \"%s\" spell", OBJ_NAME(objects[spellnum]));
for (i = 0; i < MAXSPELL; i++) {
if (spellid(i) == spellnum) {
if (spellknow(i) <= KEEN) {
if (spellknow(i) < KEEN) {
Your("knowledge of %s is keener.", splname);
incrnknow(i);
exercise(A_WIS,TRUE); /* extra study */
} else { /* 1000 < spellknow(i) <= KEEN */
You("know %s quite well already.", splname);
// } else { /* 1000 < spellknow(i) <= KEEN */
// You("know %s quite well already.", splname);
}
break;
} else if (spellid(i) == NO_SPELL) {