summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/lua/stash.lua
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-04 20:27:42 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-04 20:27:42 +0000
commit2028bc1e0de04991eed99445defc7cf09782572f (patch)
tree047d7a4b35e493e0d9f9a2e04bac932eb4c6e90e /crawl-ref/source/lua/stash.lua
parent848429d68c5c4fd77461a0e44aec8b28d302cc39 (diff)
downloadcrawl-ref-2028bc1e0de04991eed99445defc7cf09782572f.tar.gz
crawl-ref-2028bc1e0de04991eed99445defc7cf09782572f.zip
For consistency, move source/lua/ to source/dat/lua/.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4867 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/lua/stash.lua')
-rw-r--r--crawl-ref/source/lua/stash.lua54
1 files changed, 0 insertions, 54 deletions
diff --git a/crawl-ref/source/lua/stash.lua b/crawl-ref/source/lua/stash.lua
deleted file mode 100644
index 3274b41c5b..0000000000
--- a/crawl-ref/source/lua/stash.lua
+++ /dev/null
@@ -1,54 +0,0 @@
----------------------------------------------------------------------------
--- stash.lua
--- Annotates items for the stash-tracker's search, and for autopickup
--- exception matches.
---
--- To use this, add this line to your init.txt:
--- lua_file = lua/stash.lua
---
--- Available annotations:
--- {artefact} for identified artefacs.
--- {ego} for identified branded items.
--- { <skill> } - the relevant weapon skill for weapons.
--- { <class> } - item class: gold, weapon, missile, armour, wand, carrion,
--- food, scroll, jewellery, potion, book, staff, orb, misc
---
--- You can optionally disable annotate items with the item class name
--- (such as "weapon" for weapons) by setting
--- annotate_item_class = false
--- in your init.txt.
---
--- Item annotations are always prefixed to the item name. For instance:
--- {artefact} the Staff of Wucad Mu
----------------------------------------------------------------------------
-
-local ch_annotate_item_class = nil
--- Annotate items for searches
-function ch_stash_search_annotate_item(it)
- local annot = ""
-
- if item.artefact(it) then
- annot = annot .. "{artefact} "
- elseif item.branded(it) then
- annot = annot .. "{ego} "
- end
-
- local skill = item.weap_skill(it)
- if skill then
- annot = annot .. "{" .. skill .. "} "
- end
-
- if ch_annotate_item_class == nil then
- ch_annotate_item_class = opt_boolean("annotate_item_class", true)
- end
-
- if ch_annotate_item_class then
- annot = annot .. "{" .. item.class(it, true) .. "}"
- end
-
- return annot
-end
-
---- If you want dumps (.lst files) to be annotated, uncomment this line:
--- ch_stash_dump_annotate_item = ch_stash_search_annotate_item
-