Stinking clouds block line of sight

... you will also get a message when a seen stinking cloud
or the one surrounding the hero dissipates.

Original feature comes from Fourk, but this version (with some
minor changes) comes from xnethack by copperwater <aosdict@gmail.com>
This commit is contained in:
Pasi Kallinen
2022-01-31 19:00:15 +02:00
parent 260e015067
commit 218c0d4a3b
6 changed files with 50 additions and 5 deletions

View File

@@ -1113,6 +1113,8 @@ struct instance_globals {
NhRegion **regions;
int n_regions;
int max_regions;
boolean gas_cloud_diss_within;
int gas_cloud_diss_seen;
/* restore.c */
int n_ids_mapped;

View File

@@ -2220,6 +2220,7 @@ extern void split_rects(NhRect *, NhRect *);
/* ## region.c ### */
extern boolean inside_region(NhRegion *, int, int);
extern void clear_regions(void);
extern void run_regions(void);
extern boolean in_out_region(xchar, xchar);