wishing fix (obj->dknown)
A change made 5 or 6 weeks ago that was meant to enhance tracking of artifact creation had an unintended side-effect of making every object obtained via wishing have its dknown flag be set. That made them behave differenly from items picked up off the floor, so revert to the old behavior.
This commit is contained in:
11
src/zap.c
11
src/zap.c
@@ -5647,14 +5647,9 @@ makewish(void)
|
||||
return;
|
||||
}
|
||||
|
||||
if (otmp != &cg.zeroobj) {
|
||||
/* treat as if seen up close even if hero is blind and hasn't
|
||||
touched it yet */
|
||||
otmp->dknown = 1;
|
||||
|
||||
if (otmp->oartifact)
|
||||
/* update artifact bookkeeping; doesn't produce a livelog event */
|
||||
artifact_origin(otmp, ONAME_WISH | ONAME_KNOW_ARTI);
|
||||
if (otmp->oartifact) {
|
||||
/* update artifact bookkeeping; doesn't produce a livelog event */
|
||||
artifact_origin(otmp, ONAME_WISH | ONAME_KNOW_ARTI);
|
||||
}
|
||||
|
||||
/* wisharti conduct handled in readobjnam() */
|
||||
|
||||
Reference in New Issue
Block a user