| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
You passively detect gold on entering a level.
|
|
|
|
|
| |
SHOW_ITEM_NONE was uninitialized, will reuse whatever glyph comes at the
previous enum (currently "invis exposed"), probably should assert.
|
|
|
|
|
| |
These weren't caught by util/unbrace because they weren't at the
beginning of the line.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
For most header files, this only saves on having to recompile a
small number of source files, but there are also a few headers
where small changes would now take significantly less time.
This is most obvious for the Tiles build for which the dependencies
have been greatly reduced, so that the only additional includes
when compared to console are strictly library or tile related.
|
|
|
|
|
|
| |
This fixes more stair highlighting misbehaviour. In particular, the
stair you came down wasn't updated on the previous level until you
saw it again.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Currently env.show stores information about the LOS rectangle, while
env.map_knowledge stores the rest of the map.
This unnecessarily complicates the code, makes serialization harder,
and makes it hard to change the LOS model.
This code uses map_knowledge for both kinds of data.
Regressions are quite possible.
Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
|
| |
|
| |
|
|
|
|
|
|
| |
erase map monster memory (Napkin).
^C (clear map) no longer erases immobile monsters from memory (dpeg).
|
|
|
|
|
| |
This fixes emphasised stair colours being out of date until they
come into LOS again.
|
|
|
|
|
|
|
|
|
| |
Colour is now always precomputed, and only possibly overridden
by travel information on display.
It's quite unclear that storing the colour in env.show and
env.map_knowledge is the right thing to do, but at least it's
handled consistently now.
|
|
|
|
|
|
|
|
|
| |
show_type can now separately store feature type, item type
and monster class. env.show and env.map_knowledge are
guaranteed to have filled object.feat, so player terrain
knowledge is available now.
This is a bit of a hack.
|
|
|
|
|
|
|
|
|
|
| |
Also fix tiles giving more information than console version.
There's now mons_detected_base, which assigns a base monster
type to every monster type based on the default displayed
glyph. It just takes the first entry for a given glyph
based on the mon-data.h order, so this may need tweaking
in some cases.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
env.show is now a class show_def that stores tagged
unions of type show_type. For the moment, there's also
env.show_los for use in LOS determination, but that
should become an array of boolean at some point.
This breaks save compatibility.
Tiles and console version build and appear to work
fine, but this kind of change is likely to have
some side-effects.
|