| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
instead of flipping between Swamp and Shoals only (rob, dpeg).
|
| |
|
|
|
|
| |
I probably missed a few spots.
|
|
|
|
|
|
|
|
|
| |
Use wielded_weapon_check, though in this instance do not print a prompt.
This means that if you have previously been asked about your weapon and
say yes, it will kill toadstools while autoexploring.
This means no more "Really attack while wielding your bow?" prompts, and
it also should obey no-attack/etc inscriptions.
|
|
|
|
| |
saving RNG state.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Set use_fake_player_cursor = true to use this. This allows
defaulting the cursor to off, which means less cursor blinking
say when travelling.
This patch also moves the cursor control closer to where it's
used, so that the cursor is only turned on for actual input
prompts. I've definitely missed some prompts here: almost
anything that prompts for a single character and reads it
using getch() will not have a cursor with use_fake_player_cursor
set at the moment.
|
| |
|
|
|
|
|
| |
This involves only updating stair distances if the target position
is more than just a level id.
|
|
|
|
| |
This hopefully fixes recent disconnected level problems.
|
|
|
|
|
|
|
|
|
|
| |
All translevel travel now goes through start_translevel_travel(pos),
which in particular makes sure destination stair distances are
determined, fixing travel failure to waypoints.
This was not failing earlier because prompt_translevel_target used
to call start_translevel_travel(pos) through the now-unused
TravelCache::travel_to_waypoint.
|
|
|
|
| |
This mostly puts && and || on the proper lines, per the style guide.
|
| |
|
|
|
|
| |
This fixes travel colour revealing changed terrain.
|
|
|
|
| |
They are no longer passed a "remembered feature" as parameter.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Added the explore_stop option "greedy_pickup_smart", which is like
greedy_pickup, but only stops for thrown items and items different than
any in your inventory (and for fruit if you worship Fedhas).
* Added the option explore_stop_pickup_ignore. Any items matching any
of the regexes in the list will *not* cause
"explore_stop = greedy_pickup" (or greedy_pickup_smart) to stop
auto-explore.
* "explore_stop = greedy_pickup" no longer stops when picking up gold.
* "explore_stop = greedy_pickup" (or greedy_pickup_smart) now stops
auto-explore after auto-pickup has happened, rather than right before
it happens.
* Removed obsolete ES_PICKUP.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Speed up is_excluded() by making the class exclude_set, which caches the
set of excluded points, calculating the set only when exclusions are
added or removed (or when an old level is loaded).
NOTE: This recomputes the set of excluded points once upon entering
level-map mode and once upon exiting it. If this takes to long on slow
machines, this can be improved.
|
| |
|
| |
|
|
|
|
|
| |
I'm pretty sure I've managed to replace every instance of a reference to
these files, so I hopefully haven't missed anything.
|
|
|
|
| |
Also add a few previously indirect includes.
|
|
|
|
|
| |
This was a weird mix of in_bounds and map_bounds (exclusive
top-left, inclusive top-right). Replaced with in_bounds.
|
| |
|
|
|
|
|
|
| |
The only use was just removed.
Also move the draw check closer to where it's used.
|
|
|
|
|
| |
In most places Feawn is now referred to as "Fedhas," its long name
(used in the religion screen) is "Fedhas Madash"
|
|
|
|
|
|
|
|
| |
map_cell no longer has the field "properties", which has been
replaced by the unsigned long array env.pgrid.
env.map has been renamed to env.map_knowledge. It should really
be moved into player.
|
|
|
|
|
|
|
| |
Calls to plain see_cell(pos) were replaced with either observe_cell(pos)
or you.see_cell(pos). observe_cell where related to drawing the
interface and messaging, you.see_cell for game mechanics, and
one or the other in less clear cases (targetting, say).
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
|
|
| |
There are three new commands described on the X? screen. Interlevel
travel works. Other levels are not currently highlighted by reachability;
let me know if you want this. Interface stolen from TAEB :). dpeg's
stair view is not yet in.
|
|
|
|
| |
New: colour.cc, coord.cc, coordit.cc, random.cc, rng.cc.
|
|
|
|
|
|
| |
Added to level_pos the static method current(), similar to
level_id::current(), and is_on(level_id lev), which returns true if the
level_pos is on the given level_id.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
There's a whole lot of places that pass monster_type as int, often
with varying meanings for the value -1. This moves some of these
to monster_type, introducing MONS_NO_MONSTER and MONS_PLAYER as
new invalid special values.
Also improve on the autoexclude descriptions.
|
|
|
|
|
|
| |
The previous fix was right in spirit, but incomplete. Fixed to
compile for now, though the autoexclusion descriptions are
broken until I figure out how to get a monster_type's name.
|
|
|
|
|
| |
Should fix the segmentation fault reported by steve in
monsters.push_back(get_monster_data(curr_excludes[i].mon)->name);
|
| |
|