summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dat/clua
Commit message (Collapse)AuthorAgeFilesLines
...
* s/helper/listener/ for function machines that act as listeners.Darshan Shaligram2009-10-311-3/+3
|
* lmark.synchronized_markers(): apply one marker's effects to multiple points ↵Darshan Shaligram2009-10-317-87/+292
| | | | | | | | | | | | | | | 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.
* Initialize __echo in lua interpreter.Robert Vollmert2009-10-301-0/+14
|
* Add Volcanoes, early-midgame portal vaults by Jude, with dpeg and Zaba.Eino Keskitalo2009-10-291-1/+1
| | | | Signed-off-by: Eino Keskitalo <evktalo@users.sourceforge.net>
* "Helper" FunctionMachines, messages for FogMachines.Jude Brown2009-10-292-7/+157
| | | | | | | | 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>
* Regroup .des files in loadmaps.lua.Eino Keskitalo2009-10-291-7/+11
| | | | Signed-off-by: Eino Keskitalo <evktalo@users.sourceforge.net>
* Persistent table for FunctionMachines. A single table can be passed to ↵Jude Brown2009-10-261-3/+16
| | | | | | | | 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>
* FR 1837856: note vaults generated in dumpMatthew Cline2009-10-261-0/+1
| | | | | | | | | | 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.
* FunctionMachines: call a specified Lua function when certain conditions are ↵Jude Brown2009-10-252-0/+159
| | | | | | | | 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>
* Let markers change the description of any featureMatthew Cline2009-10-252-8/+10
| | | | | | | | | 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.
* Observerable/observer-ish pattern for Lua markersMatthew Cline2009-10-225-276/+500
| | | | | | | | | | 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.
* Shrines, by TGW.Adam Borowski2009-10-221-1/+2
|
* Complete rename to mapgrd.Robert Vollmert2009-10-211-2/+2
| | | | | | Previously, I had renamed only the C++-side of things. Also update documentation.
* Lua map improvements.Enne Walker2009-10-181-9/+15
| | | | | | | | | | | | | | | | | | | | 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.
* Globally replace see_grid by see_cell.Robert Vollmert2009-10-173-5/+5
|
* Lua marker to create monsters on triggeringMatthew Cline2009-10-162-0/+119
| | | | | | | | | 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.
* Merge branch 'trees'.Adam Borowski2009-10-131-1/+1
|\ | | | | | | | | There's still the issue of glyph choice, and cutting them down with an axe is not coded yet.
| * A vault: yaktaur_hedge, test for monsters shooting through bushes.Adam Borowski2009-10-121-1/+1
| |
* | Fixed Lua compile of super_loot item spec in ziggurat_create_loot_at().Matthew Cline2009-10-121-3/+5
|/
* Patch 2873911 by Jude: add rain cloudsCharles Otto2009-10-101-1/+1
|
* Scrolls and cure mutation can come up in ziggurats.David Ploog2009-10-092-3/+34
| | | | | | | 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).
* Mutagenic fog. Comes from Evaporate and fog generators. (due)Adam Borowski2009-10-071-2/+2
|
* Mention entry price in 'xv' description of toll portals (ziggurat).Robert Vollmert2009-10-061-0/+10
|
* New portal vault: Trove by Jude.dploog2009-09-221-4/+5
| | | | | | | | 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
* Added new portal vault, the bailey. (Together with Zaba.)dploog2009-09-201-4/+4
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10751 c06c8d41-db1a-0410-9941-cceddc491573
* [2857812] Fix crash on entering portal vaults (my bad).dshaligram2009-09-151-1/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10680 c06c8d41-db1a-0410-9941-cceddc491573
* Allow adding amount=X property to timed markers to make them timed toll ↵dshaligram2009-08-301-0/+17
| | | | | | markers (due). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10610 c06c8d41-db1a-0410-9941-cceddc491573
* Change Ziggurat milestones to be more convenient for tourney parsing.dshaligram2009-07-251-4/+5
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10405 c06c8d41-db1a-0410-9941-cceddc491573
* Milestones for entering Ice Cave, Sewer and Ossuary. Document making these ↵evktalo2009-07-201-2/+2
| | | | | | 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
* Add milestones for progress in ziggurats (##crawl, dpeg).dshaligram2009-07-132-0/+20
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10210 c06c8d41-db1a-0410-9941-cceddc491573
* Rename Minitomb (a portal vault made by Zaba) to Ossuary.dploog2009-06-241-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10026 c06c8d41-db1a-0410-9941-cceddc491573
* Fix lua errors for Ziggurats in Tiles.j-p-e-g2009-06-101-4/+16
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9941 c06c8d41-db1a-0410-9941-cceddc491573
* Deeper ziggurat levels may block controlled teleports and/or have alldploog2009-05-051-2/+9
| | | | | | | monsters generated awake. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9734 c06c8d41-db1a-0410-9941-cceddc491573
* Allow ziggurat levels to generate all monsters awakedshaligram2009-05-021-24/+52
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9720 c06c8d41-db1a-0410-9941-cceddc491573
* First approach towards more relentless ziggurats at deeper levels.dploog2009-04-051-12/+30
| | | | | | | 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
* Make it easier for ziggurat monster specs to weight monsters by zigguratdshaligram2009-03-272-4/+23
| | | | | | | | 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
* Make table_to_string() more robust, so it won't raise an error if it encounterszelgadis2009-01-291-6/+21
| | | | | | | anything weird. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8844 c06c8d41-db1a-0410-9941-cceddc491573
* Add the field CLASS to the metatable of each class, containing the name of thezelgadis2009-01-289-8/+17
| | | | | | | 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
* On a crash, do consistency checking on the level's markers, dump the level'szelgadis2009-01-282-2/+31
| | | | | | | 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
* Reinstate old formula for difficulty per ziggurat depth.dploog2009-01-241-1/+1
| | | | | | | Needs tweaking. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8717 c06c8d41-db1a-0410-9941-cceddc491573
* Fixed (and higher) chances for portals to Ziggurats. dploog2009-01-221-2/+3
| | | | | | | | 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
* [2468791] Reduce distinction between minivaults and floating vaults. All ↵dshaligram2009-01-031-5/+4
| | | | | | 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
* Add arena mode, activated on the command-line by 'crawl -arena "monster v ↵dshaligram2008-12-311-0/+2
| | | | | | 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 entry gates to portal vaults can now set their long feature description viazelgadis2008-12-281-0/+4
| | | | | | | | | | | | | | | | | | 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
* Breaks savefile compatibility.zelgadis2008-12-131-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Make ziggurat outerwalls permarock. New entry vault.dploog2008-12-051-4/+4
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7749 c06c8d41-db1a-0410-9941-cceddc491573
* Fix broken ziggurat (David).dshaligram2008-12-052-1/+4
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7748 c06c8d41-db1a-0410-9941-cceddc491573
* Expand portal entity prop in disappearance messages.dshaligram2008-12-032-1/+5
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7732 c06c8d41-db1a-0410-9941-cceddc491573
* Fix broken sewer messaging (dpeg).dshaligram2008-12-021-2/+3
| | | | | | 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
* Include distance hints for timed portals (dpeg).dshaligram2008-12-012-12/+58
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7710 c06c8d41-db1a-0410-9941-cceddc491573