diff options
author | Bardur Arantsson <bardur@scientician.net> | 2011-02-22 09:02:37 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2012-03-29 19:59:22 +0200 |
commit | 12661153e56546361be7e002af099fd95b0ac66a (patch) | |
tree | 414410712709b0277c6417a2d1ba1d4127d47707 /lib/core/crpt_aux.lua | |
parent | c6abace58ba0242b9f8565c185ff43d2966f8446 (diff) |
Remove unused Lua function corruption_spoiler_generate()
Diffstat (limited to 'lib/core/crpt_aux.lua')
-rw-r--r-- | lib/core/crpt_aux.lua | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/lib/core/crpt_aux.lua b/lib/core/crpt_aux.lua index e4f16e2a..97f8d4b6 100644 --- a/lib/core/crpt_aux.lua +++ b/lib/core/crpt_aux.lua @@ -180,64 +180,3 @@ function add_corruption(c) return (__corruptions_max - 1) end - - ----------- Corruption spoiler generator ----------- -function corruption_spoiler_generate() - make_temp_file() - print_hook( -[[~~~~~01|Corruptions (Spoiler) -~~~~~02|Spoilers|Corruptions -#####R=== ToME Corruptions Spoiler === - -Sometimes adventurers become exposed to the dark powers of Morgoth. If they -are unable to resist these powers, they become corrupted. Corruptions can -change their physical or mental abilities, some of which can be good, and -some bad. Most corruptions will affect you permanently, although some only -operate when they are activated (whether by player choice or as a random -event). You can check which corruptions you have in the knowledge screen 6 -(accessed through the '~' menu) or in a character dump. - -#####GGaining and (not) losing corruptions -There are several ways that you can become corrupted. - -You can become corrupted by quaffing a Potion of Corruption or by drinking -from a Fountain of Corruption. Also some strange items can be activated -for corruption. - -Corruptions are permanent. Once you have one, you have it for life. - -]]) - local i, e - for i = 0, __corruptions_max - 1 do - print_hook("[[[[[B"..__corruptions[i].name.."]\n") - print_hook(__corruptions[i].desc) - print_hook("[[[[[GGain message: "..__corruptions[i].get_text.."]\n") - if __corruptions[i].removable == TRUE then - print_hook("[[[[[RLose message: "..__corruptions[i].lose_text.."]\n") - else - print_hook("It is not removable.\n") - end - - local ok - ok = nil - for e, _ in __corruptions[i].depends do ok = not nil end - if ok then - print_hook("It depends on:\n") - for e, _ in __corruptions[i].depends do - print_hook(" "..__corruptions[e].name.."\n") - end - end - ok = nil - for e, _ in __corruptions[i].oppose do ok = not nil end - if ok then - print_hook("It is opposed to:\n") - for e, _ in __corruptions[i].oppose do - print_hook(" "..__corruptions[e].name.."\n") - end - end - print_hook("\n\n") - end - close_temp_file() - msg_print("File created as: "..get_temp_name()) -end |