| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
simultaneously.
synchronized_markers() takes a marker, and a list of method names to override,
and returns a set of markers that fire simultaneously, to allow, say, fog
machines that fire at random intervals, but always fire in unison. lm_mslav.lua
has details. volcano.des has an example volcano entry vault that uses this.
Allow fetching a list of Lua markers/marker positions by property value.
Renamed dgn.find_marker_prop -> dgn.find_marker_position_by_prop.
s/helper/listener/ for fog machine listeners.
|
| |
|
|
|
|
| |
Signed-off-by: Eino Keskitalo <evktalo@users.sourceforge.net>
|
|
|
|
|
|
|
|
| |
Allow FunctionMachines to act as a "helper" for another marker and implement use of these in FogMachines. Helper FunctionMachines can provide on-trigger messages for FogMachines, and pre-trigger warning messages.
Also includes three FogMachine-specific helpers: warning_machine, trigger_machine and tw_machine, providing simple and easy access to warning/trigger messages.
Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
|
|
|
|
| |
Signed-off-by: Eino Keskitalo <evktalo@users.sourceforge.net>
|
|
|
|
|
|
|
|
| |
multiple markers, allowing for shared access, using the marker_params option (which defaults to a blank table). The table is passed as a second parameter each time the function is called.
Add a message_machine wrapper around function_machine, providing simplified message functionality; change ossuary.des to use this.
Signed-off-by: Darshan Shaligram <dshaligram@users.sourceforge.net>
|
|
|
|
|
|
|
|
|
|
| |
Include new dump section "vaults", which for game-end dumps (or any
wizard-mode dumps) will include a list (by place) of all the vaults
generated in the game.
The savefile now includes a player-associated CrawlHashTable
(you.props), which can be used for storing player information which
doesn't need to be accessed efficiently.
|
|
|
|
|
|
|
|
| |
met. Conditions currently are "random" (every random(min, max) turns), "turns" (every turns turns), "in_los" (when you.see_cell(marker:pos())), "player_at" (when you're standing on the marker).
Needs merge with lm_trig.lua.
Signed-off-by: Darshan Shaligram <dshaligram@users.sourceforge.net>
|
|
|
|
|
|
|
|
|
| |
Allow markers to change the short and/or long description of any
feature, not just portal vault entrances. The feature_description() and
feature_description_long() functions have been removed from the mapmark
classes and turned into ordinary properties. Also added the marker
property "door_description_suffix", which can be used to alter the short
description of (known) doors by appending a string to them.
|
|
|
|
|
|
|
|
|
|
| |
A new framework for Lua markers, similar to the observable/observer
design pattern, which decouples the thing being activated from the thing
watching for the activating condition. This makes it easier to create
new types of Lua markers which are triggered by dungeon events, and
easier to add new triggering conditions to already existing marker
types. Currently only ChangeFlags (clua/lm_flags.lua) and
MonsterOnTrigger (clua/lm_monst.lua) use it.
|
| |
|
|
|
|
|
|
| |
Previously, I had renamed only the C++-side of things.
Also update documentation.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The previous dungeon layout.des functions all apply directly to the grid
and so are unsuitable for use in vaults. This aims to correct that by
providing lua functions that can manipulate maps (of glyphs).
grd[x][y] in a .des file can now be used to get and set glyphs in the
current map. This should allow for less cumbersome map variations
than what you can do with just SUBST and SHUFFLE.
To support that, map_def no longer batches up transforms--it applies
them all immediately. This resulted in a good bit of refactoring.
FTILE/RTILE map commands now support setting the tile for multiple
features at once.
There are also a small number of new lua functions that apply to maps
(map_octa_room, map_smear, and map_extend). Ideally, these will
eventually replace the existing builder funcs that work on grd.
|
| |
|
|
|
|
|
|
|
|
|
| |
New lua marker MonsterOnTrigger, which creates a monster when the
triggering condition is met (which currently only includes a monster
dying).
Use it in the dis_mu Dis:7 vault to turn all of the iron statues into
iron golems when Dispater dies.
|
|\
| |
| |
| |
| | |
There's still the issue of glyph choice, and cutting them down with an
axe is not coded yet.
|
| | |
|
|/ |
|
| |
|
|
|
|
|
|
|
| |
Added a long, weighted list of useful scrolls to dungeon.lua which may
be of use elsewhere. This list is used for the ziggurat loot, together
with some potions (cure mutation, experience, porridge) and two wands
(hasting and healing, both very rare).
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
There is one issue: gold should never be part of the loot but I don't know
how to get rid of it.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10770 c06c8d41-db1a-0410-9941-cceddc491573
|
|
|
|
| |
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10751 c06c8d41-db1a-0410-9941-cceddc491573
|
|
|
|
| |
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10680 c06c8d41-db1a-0410-9941-cceddc491573
|
|
|
|
|
|
| |
markers (due).
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10610 c06c8d41-db1a-0410-9941-cceddc491573
|
|
|
|
| |
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10405 c06c8d41-db1a-0410-9941-cceddc491573
|
|
|
|
|
|
| |
for portal vaults in level_design.txt.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10348 c06c8d41-db1a-0410-9941-cceddc491573
|
|
|
|
| |
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10210 c06c8d41-db1a-0410-9941-cceddc491573
|
|
|
|
| |
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10026 c06c8d41-db1a-0410-9941-cceddc491573
|
|
|
|
| |
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9941 c06c8d41-db1a-0410-9941-cceddc491573
|
|
|
|
|
|
|
| |
monsters generated awake.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9734 c06c8d41-db1a-0410-9941-cceddc491573
|
|
|
|
| |
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9720 c06c8d41-db1a-0410-9941-cceddc491573
|
|
|
|
|
|
|
| |
Also fixed on ziggurat pillar vault.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9580 c06c8d41-db1a-0410-9941-cceddc491573
|
|
|
|
|
|
|
|
| |
depth.
Fix ziggurat spec weights being ignored.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9559 c06c8d41-db1a-0410-9941-cceddc491573
|
|
|
|
|
|
|
| |
anything weird.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8844 c06c8d41-db1a-0410-9941-cceddc491573
|
|
|
|
|
|
|
| |
class, so that table_to_string() can describe the class of each object.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8840 c06c8d41-db1a-0410-9941-cceddc491573
|
|
|
|
|
|
|
| |
markers, and dump the persistant Lua data.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8839 c06c8d41-db1a-0410-9941-cceddc491573
|
|
|
|
|
|
|
| |
Needs tweaking.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8717 c06c8d41-db1a-0410-9941-cceddc491573
|
|
|
|
|
|
|
|
| |
No more Ziggurats in Zot, but much better chances in Pan.
Faster monster generation per depth in Ziggurats.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8679 c06c8d41-db1a-0410-9941-cceddc491573
|
|
|
|
|
|
| |
vaults are now handled by _build_vaults.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8169 c06c8d41-db1a-0410-9941-cceddc491573
|
|
|
|
|
|
| |
monster"' (eg: crawl -arena "Sigmund v Jessica") to let monsters fight each other undisturbed by the player. Good to examine monster AI and monster behaviour when the player is AWOL.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8059 c06c8d41-db1a-0410-9941-cceddc491573
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
the desc_long property of the Lua marker. The lets the portal vault code be
enitrely self contained, rather than having to have a portion of the
description in dat/descript/features.txt. Also, in theory each different entry
vault could have its own version of the description, or it could even
programatically vary after the entry vault had been generated (since it can be
a function in addition to a string). Also, since the gate's short feature
description is no longer needed as a key into the features database, the short
description doesn't need to be the same for each entry vault.
The way I put the descriptions into the .des files is a bit clunky, but when I
tried to use the Lua multi-line string quote ([[string]]) each line displayed
by Crawl was indented one space.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8001 c06c8d41-db1a-0410-9941-cceddc491573
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Allow Shadow Creatures spell (along with anything that uses create_monster(),
mons_place(), place_monster() or pick_random_monster()) to work in portal
vaults; only fixed ziggurats to use it. Must be done by manually calling
dgn.set_random_mon_list(); can't automatically set it from MONS since the
actual frequency of the monster specified that way is controlled by the number
of 1/2/3/etc symbols that are in the map combined with symbol shufflings and
substitutions. Can add an RMONS keyword to handle it if needed.
Limitations: can only use level id or monster type + base type. Monster number
(specific number of hydra heads), colour, items, band, and patrolling are all
discarded/ignored. This can be improved if it's too limiting.
New per-level env.properties CrawlHashTable stores the information.
env.properties can be used to store new per-level data without breaking
savefile compatibility (though changing the handling of old data in
env.properties can still break compatibility).
Random monster spawn rate is now controlled by the per-level
env.spawn_random_rate (though the default rates are all the same as before), in
case any weird portal vaults want to turn on random monster spawning. Could
also be used to alter the random spawn rate for places like Vault:8
Prevented Shadow Creatues from working in the Temple.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7816 c06c8d41-db1a-0410-9941-cceddc491573
|
|
|
|
| |
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7749 c06c8d41-db1a-0410-9941-cceddc491573
|
|
|
|
| |
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7748 c06c8d41-db1a-0410-9941-cceddc491573
|
|
|
|
| |
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7732 c06c8d41-db1a-0410-9941-cceddc491573
|
|
|
|
|
|
| |
Fixed bad bounds checks for minivaults placed by dgn_place_map.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7716 c06c8d41-db1a-0410-9941-cceddc491573
|
|
|
|
| |
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7710 c06c8d41-db1a-0410-9941-cceddc491573
|