Wand of probing reveals map locations in ray path
This commit is contained in:
16
src/zap.c
16
src/zap.c
@@ -3639,6 +3639,22 @@ bhit(
|
||||
}
|
||||
if (learn_it)
|
||||
learnwand(obj);
|
||||
} else if (weapon == ZAPPED_WAND) {
|
||||
boolean learn_it = FALSE;
|
||||
|
||||
if (obj->otyp == WAN_PROBING) {
|
||||
if (!cansee(x, y)) {
|
||||
int oldglyph = glyph_at(x, y);
|
||||
|
||||
show_map_spot(x, y, FALSE);
|
||||
if (oldglyph != glyph_at(x, y)) {
|
||||
/* TODO: need to give some message */
|
||||
learn_it = TRUE;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (learn_it)
|
||||
learnwand(obj);
|
||||
}
|
||||
|
||||
/* [shouldn't this trap handling be in zap_over_floor()?] */
|
||||
|
||||
Reference in New Issue
Block a user