| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
As crawl.unavailable_god("Jiyva")
|
|
|
|
|
|
|
| |
.cc, moving its contents into the new stepdown.cc and strings.cc.
(The latter also got many donations from libutil.h.)
Down with stuff! Up the new flesh!
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
The -objstat command-line option will generate iterations of the given
levels, compiling stats on every item and monster generated, and
average the results over the iterations. It's only available in debug
builds and uses the same map specification format as -mapstat. The
default number of iterations is 100.
|
| |
|
|
|
|
|
| |
Sometimes, they're there to emphasize a break between two sections of code,
which is good. In a majority of cases, though, they're just inconsistent.
|
|
|
|
| |
(cherry picked from commit 90afa1c4158637a5295dd5acd33c680158db0885)
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
|
| |
Looks like, unlike "target[t]ing" where a single t is used by many brits and
even some aussies, "cancel[l]ing" has double l even for a good deal of
americans.
|
|
|
|
| |
It can now be used to quickly test hint messages from the database.
|
|
|
|
|
| |
Some layouts and vaults are lazy buggers who skip work during initial
validation.
|
|
|
|
|
|
|
| |
We have been warning of the impending change since 0.11.
Also remove the warn_list_append list and associated lua function,
since it was used only to implement the aforementioned warning.
|
|
|
|
|
|
|
| |
Also, drop handling of an impossible error. A local variable on the stack
is quite likely to be within the process' address space. And even for some
reason (?!?) it'd be not, the very next line will give us a nice SIGSEGV
anyway :)
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
It's non-obvious that dims will never be more than 4. Even if at higher
optimization numbers the compiler notices this, I as a human still failed
to do so after first two readings.
|
|
|
|
|
|
|
| |
Lua API:
- crawl.random_real()
- crawl.worley(x,y,z) -> distance[0],distance[1],id[0],id[1],pos[0].x,pos[0].y,pos[0].z,pos[1].x,pos[1].y,pos[1].z
- crawl.simplex(x,y,z,k) - z and k are optional if you only want 2D or 3D noise
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
No documentation yet, and needs serious testing.
For a few options*, this is slow: O((n+k)*k) where n is the length of the
original list and k the number of new items. This could be fixed with
some code code restructuring.
[*] enemy_hp_colour, fire_order, message_colour, and the Lua-defined
options runrest_ignore_message, runrest_stop_message, and
runrest_ignore_monster.
|
| |
|
| |
|
|
|
|
| |
Can be useful to share a config file between desktop and android version.
|
|
|
|
|
| |
In particular, handle runrest_{ignore,stop}_message and
runrest_ignore_monster{,_moving}.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
Only applies to branches with more than one level, so it shouldn't be too many
milestones. In order to get oplace to work correctly, the report_origin_level
argument to mark_milestone() was made slightly more flexible.
|
|
|
|
|
| |
This is incomplete, partially because of me getting bored, partially because
of doubts about the point of leaving simple addition/etc in parentheses.
|
| |
|
|
|
|
| |
For way too paranoid and underinclusive values of "simple".
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In webtiles, the same binary can run both, so this function returns whether
this particular game is controlled from console or tiles (there may be
spectators using either, possibly at the same time).
Declared constexpr in other build modes, so if we ever turn on C++11ยน mode,
they'll be as effective as #ifdefs. Without it, optimized builds may or may
not eliminate code that depends on it, debug builds won't.
[1]. While there are niceties like sane initialization of arrays, etc,
FreeBSD and MacOS use truly ancient compilers, so C++11 is currently not an
option.
|
| |
|
| |
|
|
|
|
| |
At that point, it's probably time to merge these with non-tutorial calls.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
In webtile-enabled builds, tile viewers can watch console games, console
games can watch tiles, etc. Yet it's only the main player who counts.
|
|
|
|
|
|
| |
crawl.messages(n) returns the last n messages in your history.
you.see_invisible() tells you whether you know that you can see invisible.
|
| |
|
|\
| |
| |
| |
| | |
Conflicts:
crawl-ref/source/Makefile
|
| | |
|
| | |
|
|/
|
|
|
|
|
|
|
| |
The (preliminary) skill training caused the title to be redrawn, which
in turn made tiles switch to the normal layer (away from the
menu). Redrawing of the title is now deferred to print_stats.
This might fix #4755, but I couldn't reproduce the bug even
before the fix.
|