Difference between revisions of "Module:Table of spellbooks/doc"

From CrawlWiki
Jump to: navigation, search
m (Move the note about the value field here. Otherwise it's just gonna drown in History)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Module:Table of spellbooks]] is a Lua module which contains information used by [[Module:Spellbook]]. If you want to add new lua functions to process this page, write them in [[Module:Spellbook]].
+
[[Module:Table of spellbooks]] is a Lua module which contains information used by [[Module:Spellbook]]. If you want to add new Lua functions to process this page, write them in [[Module:Spellbook]].
  
[[Module:Table of spellbooks]] was generated automatically with the help of [[List of spells/parse-spl-data]].
+
To generate this script, see https://github.com/jkornelsen/crawl-wiki-modules. Or, update it by hand.
 +
 
 +
Note: the value of a book is simply <code>20 * (sum of spell levels of spells in book + number of spells in book)</code>. See item_value() in shopping.cc for more info.

Latest revision as of 21:24, 21 February 2024

Module:Table of spellbooks is a Lua module which contains information used by Module:Spellbook. If you want to add new Lua functions to process this page, write them in Module:Spellbook.

To generate this script, see https://github.com/jkornelsen/crawl-wiki-modules. Or, update it by hand.

Note: the value of a book is simply 20 * (sum of spell levels of spells in book + number of spells in book). See item_value() in shopping.cc for more info.