summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dat/lua
Commit message (Collapse)AuthorAgeFilesLines
* Add one-key-fighting.Robert Vollmert2009-11-171-0/+81
| | | | | | Adds dat/lua/autofight.lua, which provides the macro-able hit_closest. It's quite primitive but could easily be improved.
* * Move eating logic from lua to C again, so as to handle more than j-p-e-g2009-01-251-39/+0
| | | | | | | | boolean responses (eat, skip, cancel). * Remove the now deprecated eat.lua. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8746 c06c8d41-db1a-0410-9941-cceddc491573
* Greatly improve eating interface, as suggested in FRs 1923273 and 2018733.j-p-e-g2009-01-063-160/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When you now press 'e' the following takes place: 1) If you can eat chunks, the game builds a list out of all chunks on the floor and in your inventory, sorted by age [1], and prompts you to eat them [2]. 2) If none are found, or you decline all of them you get prompted for non-chunk food items on the floor. 3) Prompt for non-chunk food in your inventory. 4) Open up the food menu of your inventory. Because of the way lua works, there's currently a problem that in the early stages (1-3) "q" (now also accepts Escape) will cause to skip ahead to the next stage rather than leaving the process entirely, which is of course less than optimal. I also added two new options [1] prefer_safe_chunks (defaults to true) which will offer clean chunks before contaminated ones, even if the latter happens to be older [2] easy_eat_chunks (defaults to false) which causes the prompting to be skipped for safe (i.e. clean) chunks, so you will automatically eat the oldest chunk that applies. This is ignored for undead characters. I also got rid of the outdated safechnk.lua and chnkdata.lua seeing how chunk effects are no longer spoily information. Added a new wizmode command: Ctrl-H, which allows you to set your character's hunger state. (Hopefully this will make Vampire testing easier.) Also fix 2488374: "Controlled Flight being named upon levitation even if its type is already known. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8282 c06c8d41-db1a-0410-9941-cceddc491573
* Fix the ASSERT when undetected traps run out of ammo and display "Youj-p-e-g2008-11-091-1/+1
| | | | | | | | hear a click" instead of "The trap is out of ammo". Also, fix the miscolouring of the lua eating prompt. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7428 c06c8d41-db1a-0410-9941-cceddc491573
* Fix 2063470: =f inscription preventing wielding of stonesj-p-e-g2008-10-041-2/+4
| | | | | | | | | | | | | | | | Improve exclusion los behaviour. * now takes into account what the player knows of the map * don't autoremove exclusions if you don't know the monster died * the los gets updated as the player explores the area For some reason this doesn't work when you dig into an excluded area. FR 2006559: Sort monsters in description menu (?\) using the same measure as the monster list does. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7132 c06c8d41-db1a-0410-9941-cceddc491573
* FR 2017262: add chunk colour to eat prompt. Impleveted via the two newzelgadis2008-07-231-2/+2
| | | | | | | | | | | C lua functions item.name_coloured() (which gives strings like "<lightgreen>a chunk of golden dragon flesh</lightgreen>") and crawl.formatted_mpr(). Could someone commit this to branch for me? Thanks. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6653 c06c8d41-db1a-0410-9941-cceddc491573
* Fix randart jewellery always named "of Bugginess".j-p-e-g2008-06-161-0/+5
| | | | | | | | Fix pickup.lua trying to find a butcher tool if the wielded edged weapon happens to be cursed. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5889 c06c8d41-db1a-0410-9941-cceddc491573
* Integrate recent changes to the butchering function, and add commenting. j-p-e-g2008-06-101-45/+33
| | | | | | | Sorry about that, guys! git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5699 c06c8d41-db1a-0410-9941-cceddc491573
* Move pickup_butcher_tool.txt into (the recently freed) pickup.lua, j-p-e-g2008-06-101-0/+65
| | | | | | | re-enable it (whoops) and clean up its code. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5698 c06c8d41-db1a-0410-9941-cceddc491573
* Remove pickup.lua.j-p-e-g2008-06-091-125/+0
| | | | | | | | | Make menu_colour_item_prefix also apply for autopickup_exceptions, so you can exclude, for example, all evil_eating at once. Fix Vampires "continuing draining" after having "stopped". git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5666 c06c8d41-db1a-0410-9941-cceddc491573
* For stash searching, annotate dropped items with {dropped} ifzelgadis2008-06-041-1/+11
| | | | | | | annotate_item_dropped is set to true. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5466 c06c8d41-db1a-0410-9941-cceddc491573
* Added several include files to the init.txt. These add colours to items indploog2008-05-281-1/+2
| | | | | | | | | | | | | | | | the inventory (or other menus) and to messages. Most controversial will be food_colouring which colour codes chunks andcorpses based on their quality. Note that these files are included by default. Thanks go to a great many ##crawl activists, among them b0rsuk, doy, ekiM, stabwound. To do: Examining corpses and chunks should show their edible state as well. Several of the colours should be globally defined; see FR 1977121 for this. Also copy the highlighting of marked items. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5319 c06c8d41-db1a-0410-9941-cceddc491573
* Allow Troggies to autopickup manuals, and change the message whenj-p-e-g2008-05-251-2/+3
| | | | | | | | | gaining the "Book Burn" ability (only when you first join Trog) to explicitly refer to spellbooks. I like the alliteration in the ability name, so kept that as is. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5232 c06c8d41-db1a-0410-9941-cceddc491573
* For consistency, move source/lua/ to source/dat/lua/.dolorous2008-05-0410-0/+1096
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4867 c06c8d41-db1a-0410-9941-cceddc491573