| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
As part of a wider scheme to make draining temporary.
|
|
|
|
|
|
|
|
|
| |
A good deal of functions move to the two new files, mon-poly and
mon-message. Of the others, some go to where they are used, some to
mon-util, and a few are made member methods of monster.
This probably breaks Xcode compilation, and I'm not able to test
the changes I made to MSVC that will (hopefully) keep it working.
|
|
|
|
| |
This fixes all the instances caught by unbrace.
|
| |
|
|
|
|
|
|
|
| |
The chance should be rolled just for the leader, i.e. you get all of a
band or none of it. This wasn't the case previously; instead everything
got a chance roll, and members of bands were therefore unnaturally
unlikely to get bribed (relevant for draconians).
|
|
|
|
|
|
|
|
| |
* Properly unmark off-level shops (#8498).
* Don't deduct bribes for vetoed levels (if, say, Elf:3 vetoed a lot
you'd notice your bribe running out immediately on entering the
level).
|
|
|
|
|
|
| |
They become un-bribed, and other bribed creatures that can see them also
become un-bribed; a permabribe increment for the creature is deducted
against the branch bribe score for this action.
|
|
|
|
|
| |
Prevents abuses like clearing out the Orc:$ end entirely offscreen; also
gives the opportunity for some nice dialogue.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
It's almost never relevant (with Mennas being possibly the only edge
case), and has a number of negative effects: dungeon generation depending
on the player's god in Pan, strange interactions with getting additional
chances to convert on piety breakpoints, and generally a lot of code for
a pretty questionable gain. Flavour-wise it seems perfectly reasonable
that the holies in the dungeon just all see you as insufficiently pious,
or some kind of a heretic (as is the case for non-holy religious
monsters).
Kept some of the holy speech for the case where an Elyvilon worshipper
pacifies a holy.
|
|
|
|
|
|
|
| |
Touches a lot of files since their #includes have to be edited.
(Pushing now since it shouldn't break anything and keeping it updated
is nasty.)
|
|
|
|
|
|
|
|
|
| |
Also simplify quite a few cases.
It turns out in >90% cases of non-literals the argument had .c_str(),
which meant it was pointlessly malloc()ed and converted from and to
std::string. I believe a sprintf is faster, so even the argument of
miniscule speed-up doesn't apply.
|
|
|
|
|
|
|
|
|
|
| |
It was really weird: working on a square, but in almost all cases
restricting it to your view (a circle). Note this is _your_ view rather
than from the iterator's center -- which hasn't been used once in the
obvious interesting way.
As usual, this commit fixes a load of "act through glass" bugs, ando/or
using los modes that don't make sense in the context.
|
|
|
|
|
| |
Can't test Android, MSVC or Mac, but a very brief glance at the diff suggests
it's unlikely they're affected.
|
|
|
|
|
| |
It degenerated to a simple loop over menv, hardly worth any syntactic sugar.
I kept it for now, though.
|
|
|
|
| |
Waking them up if necessary.
|
|
|
|
| |
Also, add some assertions, just in case.
|
|
|
|
|
| |
Pull 'you.religion [!=]= FOO' checks into a function: you_worship(FOO).
This change is part of a large plan to clean up religion.
|
|
|
|
|
| |
It only ever generates on artefacts and is very unlikely to be relevant
even when it does.
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Since killing shifters in slime form doesn't give penance.
A couple related changes:
* Let Jiyvaites convert summoned slimes (they are still slimes, after all,
just slimes from elsewhere). This means that shapeshifters are really
the only exception (which makes sense since they are not really slimes).
* Don't let Jiyva prayer paralyse shapeshifters in slime form.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Allow the god-given recall abilities for Yred and Beogh to recall
all god-associated permenant allies, regardless of where in the dungeon
they reside. (Note that this only includes Yred gifts and not zombies;
ie: things that could already follow you between levels)
This is done by actively tracking all of these allies in a seperate list
which is updated whenever a tracked ally is gained, dies, changes level,
or the player changes level.
The fact that permanent allies from these gods make interlevel travel
unusable is one of the largest sources of tedium associated with those gods,
and a major reason for their lack of popularity. Being able to recall from
previous levels means you no longer have to manually herd and count allies
at the top and bottom of every stair, sometimes having to make multiple
trips if the terrain surrounding the stair is too confined. This should
make these gods much more playable (and if their power level is now more
obvious and considered too high, it can be adjusted in other ways than via
tedium)
|
| | |
|
|/ |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
I had to rename distance() (in coord.h) to distance2() because it conflicts
with the STL function to compare 2 iterators. Not a bad change given how it
returns the square of the distance anyway.
I also had to rename the message global variable (in message.cc) to buffer.
I tried to fix and improve the coding style has much as I could, but I
probably missed a few given how huge and tedious it is.
I also didn't touch crawl-gdb.py, and the stuff in prebuilt, rltiles/tool
and util/levcomp.*, because I have no clue about those.
|
| |
|
|
|
|
|
| |
It's a big header, hardly ever needed, yet it was pulled even for low-level
files that don't deal with the game itself like lib${UI}.cc
|
|
|
|
|
| |
This also reveals how bad the beam blaming code is, need to rewrite that soon
-- mostly because of problems with reflection.
|
|
|
|
|
| |
Looks like get_XXX_path and the like in files.cc could use some drastic
simplification, or perhaps even a nuking and rewrite.
|
| |
|
|\
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Conflicts:
crawl-ref/source/Makefile.obj
crawl-ref/source/dbg-scan.cc
crawl-ref/source/decks.cc
crawl-ref/source/describe.cc
crawl-ref/source/directn.cc
crawl-ref/source/evoke.cc
crawl-ref/source/fight.cc
crawl-ref/source/fight.h
crawl-ref/source/ghost.cc
crawl-ref/source/ghost.h
crawl-ref/source/item_use.cc
crawl-ref/source/items.cc
crawl-ref/source/map_knowledge.cc
crawl-ref/source/melee_attack.h
crawl-ref/source/mon-abil.cc
crawl-ref/source/mon-act.cc
crawl-ref/source/mon-stuff.cc
crawl-ref/source/monster.cc
crawl-ref/source/monster.h
crawl-ref/source/player.cc
crawl-ref/source/player.h
crawl-ref/source/shopping.cc
crawl-ref/source/spl-damage.cc
crawl-ref/source/spl-summoning.cc
crawl-ref/source/spl-transloc.cc
crawl-ref/source/stairs.cc
crawl-ref/source/stuff.cc
crawl-ref/source/tags.cc
crawl-ref/source/traps.cc
crawl-ref/source/xom.cc
|
| | |
|
| |
| |
| |
| | |
Also, use this for Zin's Recite instead of hardcoding an LOS of 8.
|
| | |
|
|\|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Conflicts:
crawl-ref/source/actor.cc
crawl-ref/source/delay.cc
crawl-ref/source/directn.cc
crawl-ref/source/directn.h
crawl-ref/source/fight.cc
crawl-ref/source/files.cc
crawl-ref/source/mon-act.cc
crawl-ref/source/monster.cc
crawl-ref/source/mpr.h
crawl-ref/source/player.cc
crawl-ref/source/shopping.cc
|
| | |
|
| |
| |
| |
| |
| |
| | |
This fixes monsters such as Pearl Dragons, Apises, Shedu etc speaking
to you when they turn neutral, but unfortunately doesn't fix Mennas yet
as he has M_SPEAKS for his visual speech.
|
| |
| |
| |
| |
| |
| |
| | |
"File:" is shown in your editor's status bar.
"Written by:" was used only for the first person who changed a file. We got
git for that now, and pre-DCSS history is so woefully inaccurate it doesn't
really matter.
|
| | |
|
|/
|
|
|
| |
Also makes some replacements for DESC_CAP_YOUR, DESC_NOCAP_YOUR, DESC_CAP_A,
DESC_NOCAP_A as was convenient...so don't expect this to compile...at all.
|
|
|
|
|
|
|
|
|
|
|
|
| |
After several attempts to balance it, it was always either overpowered or
useless. No wonders, we have such diverse races as kobolds, orcs, merfolk,
mummies and draconians -- it's hard to come up with a formula that matches
monsters of that races well.
There's a minor save breakage: brooch of Shielding, robe of Clouds and hat
of Pondering have their descriptions shifted by one, the hat of Pondering
causes rain clouds. We don't have any ifdefs for art-data.txt, the breakage
is small enough I didn't bother with shims.
|
|
|
|
| |
It was never used.
|
|
|
|
|
|
| |
Renamed all the transform_can_foo functions into form_can_foo.
Give default argument to each function to check the player's form.
Some simplifying and consistency.
|
|
|
|
|
|
| |
They both consistently check for the genus now, as the species check
does, since the two are currently equivalent. If there are any
subspecies added, they should be covered by this.
|
|
|
|
|
| |
It no longer asserts, so e.g. the monster's god no longer needs to be
manually unset before calling it.
|
|
|
|
|
|
|
|
|
|
| |
The former would allow charming spiders while in spider form, liches
while necromutated, and so on.
The latter in turn made the ring useless for any monster with
non-negligible HD. Even an xl 27 merfolk had minimal changes with
base 9 HD merfolk. This formula is perhaps way too generous, but
it includes a hard cap. Improvements welcome.
|
| |
|
| |
|
| |
|
| |
|