Skip to content

Commit

Permalink
set an object to assessed that has all its runes known
Browse files Browse the repository at this point in the history
  • Loading branch information
agoodman00 authored and NickMcConnell committed May 23, 2024
1 parent 90d32b9 commit 740fee4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/obj-knowledge.c
Original file line number Diff line number Diff line change
Expand Up @@ -1831,7 +1831,11 @@ void object_learn_unknown_rune(struct player *p, struct object *obj, bool msg)
int i = object_find_unknown_rune(p, obj);

/* No unknown runes */
if (i < 0) return;
if (i < 0) {
obj->known->notice |= OBJ_NOTICE_ASSESSED;
player_know_object(player, obj);
return;
}

/* Learn the rune */
player_learn_rune(p, i, msg);
Expand Down

0 comments on commit 740fee4

Please sign in to comment.