Tourists gain experience by using camera flash on monsters

This counts as seeing the monster up close, so the tourist
doesn't need to get next to the monster
This commit is contained in:
Pasi Kallinen
2024-12-07 11:18:13 +02:00
parent 12228cac49
commit 863d455e1d
4 changed files with 39 additions and 24 deletions

View File

@@ -63,8 +63,11 @@ do_blinding_ray(struct obj *obj)
(int (*) (OBJ_P, OBJ_P)) 0, &obj);
obj->ox = u.ux, obj->oy = u.uy; /* flash_hits_mon() wants this */
if (mtmp)
if (mtmp) {
(void) flash_hits_mon(mtmp, obj);
if (obj->otyp == EXPENSIVE_CAMERA)
see_monster_closeup(mtmp);
}
/* normally bhit() would do this but for FLASHED_LIGHT we want it
to be deferred until after flash_hits_mon() */
transient_light_cleanup();