| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
|
|
|
|
|
| |
order used in mgen_data(), and allow the former to specify the base
monster, as the latter does.
|
|
|
|
| |
Also collect actor/player LOS code in actor-los.cc.
|
|
|
|
|
|
|
|
| |
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).
|
| |
|
|
|
|
| |
Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
|
|
|
|
|
|
| |
A couple of the Feawn functions were passed read-only arguments
(coordinate center, etc.) as non-const references, which leaked out
to require you.pos() to be non-const.
|
|
|
|
|
|
| |
They were the same as non-_real functions.
Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
|
|
|
|
| |
Signed-off-by: Jude Brown <bookofjude@users.sourceforge.net>
|
|
|
|
| |
Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
|
|
|
|
| |
Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
|
|
|
|
|
|
|
|
| |
Specifically, use random_in_bounds() in a few places instead of random
ranges involving X_BOUND and Y_BOUND values. The former won't return
any coordinates in the dungeon's map border (which acts as a wall), but
the latter will, and all the changed places are looking for empty
dungeon squares, so this should make these operations more efficient.
|
| |
|
| |
|
|
|
|
|
|
|
| |
Make toadstools created via decomposition friendly, exempt toadstools
from the allies dying conduct.
Increase decomposition toadstool base duration.
|
|
|
|
|
|
|
| |
A lot of monstuff.cc was moved into mon-abil.cc (monster abilities),
mon-act.cc (the main monster loop), mon-behv.cc (monster behaviour) and
mon-cast.cc (monster spells). mstuff2.cc was completely merged into
other files.
|
|
|
|
| |
convenience function.
|
|
|
|
|
|
|
|
|
|
| |
...and replace all references to mons_res_foo() with res_foo(). Where "foo"
is one of the many different things monsters can resist that happened to
have a function of that format.
TGfR! (Thank God for Regex!)
Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
|
| |
|
|
|
|
|
| |
rarely than non-mundane items. After all, there are some unrandarts
made from mundane items, so there's precedent for it.
|
|
|
|
| |
...and replace all references to mons_is_sleeping with asleep.
|
|
|
|
| |
New: colour.cc, coord.cc, coordit.cc, random.cc, rng.cc.
|
| |
|
|
|
|
| |
If a beam is not, old behavior is default.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Weapons of electrocution now discharge in water, if the target is
touching the water and not rElec, hitting all adjacent
water-touching non-rElec creatures for about half the normal
electrocution damage.
Particularly notable new code is the implementation of an
area-of-effect callback for beams, as well as a function and
structure for weapon effects that should only happen after the
target would have died, if it was going to die, and therefore
cannot safely make use of its data.
Issues that still need to be decided:
- How doe Xom feel about this? (eg. If creatures hurt themselves
this way.)
- Should it ask you if you want to attack when you know the
discharge will hit yourself?
|
|
|
|
|
|
|
|
|
| |
Change MONS_PROGRAM_BUG to MONS_NO_MONSTER when "no monster" is what was
meant. Now all instances of MONS_PROGRAM_BUG should indicated some sort
of failure or error.
Also, fixed some places which were still using -1 instead of
MONS_NO_MONSTER.
|
|
|
|
|
|
|
|
|
| |
The mutation comes in three levels and blocks 20%, 40%, or 60% (shown
to the user) of torments. Right now, you can cast Symbol of Torment
with it; I doubt this is too good. It is on the tier-1 list for
demonspawn mutations, and I expect it to be balanced appropriately.
Signed-off-by: Darshan Shaligram <dshaligram@users.sourceforge.net>
|
|
|
|
| |
acquirement [FR 2885568]
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The functions in the new ng-restr.cc are "pure": They don't
access global state; data is passed in via the new and
incomplete newgame_def.
Eventually, new_game should be split into something like
newgame_def choose_game();
that doesn't access "you", and
void setup_game(newgame_def);
that sets up the player.
Also get rid of player_size in favour of player::body_size. Rename
player_size_type to size_part_type since it's not really
player-specific (used in actor::body_size). Move parts of
player_genus, player::has_claws, body_size out into species.cc.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Signed-off-by: Brendan Hickey <brendan@bhickey.net>
Acked-by: Steven Noonan <steven@uplinklabs.net>
|
|
|
|
| |
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
|
|
|
|
|
| |
Mostly rename functions from terrain.h that accept features of typ
dgn_feature_type from grid_is_* to feat_is_*.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
The nicer interface to losight is now
void losight(env_show_grid& sh, const coord_def& center,
const opacity_func &opc = opc_default,
const bounds_func &bds = bds_default);
bounds_func provides the LOS boundary (usually just a circle with
radius the current LOS radius). opacity_func is a mapping of grid
coordinates to opacity values.
|
|
|
|
| |
the tiles accordingly.
|
|
|
|
| |
that can summon multiple wraiths and ghosts (FR 2865657).
|
|
|
|
|
|
| |
MSVC is like a chimp with Down's syndrome.
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
|
| |
|
|
|
|
|
|
|
| |
The console version still compiles on Linux; both console and
tiles version compile in OS X. I haven't been able to test the
DOS and Windows compiles -- please fix or tell me about any
errors that show up.
|
| |
|
|
|
|
|
|
|
|
|
| |
los.cc: basic raycasting algorithm; losight(), see_grid() etc.
ray.cc: ray_def implementation.
mon-los.cc: monster_los
This includes adding a bunch of #includes; there's probably some
obsolete includes of view.h now.
|
|
|
|
| |
TARG_ENEMY with TARG_HOSTILE.
|
|
|
|
|
| |
LOS actually goes to LOS_RADIUS * LOS_RADIUS + 1. None of the
occurrences are likely to have had a big effect, however.
|
| |
|
|
|
|
|
|
|
|
| |
invocation to provide corpses, provides (partial) torment resistance, provides torment when butchering while praying, and gifts Necromancy books. As the final gift, the player can choose between blessing the wielded weapon with Pain brand, or Necronomicon.
Flavour and help texts haven't been altered yet.
Signed-off-by: evktalo <evktalo@users.sourceforge.net>
|