From 12661153e56546361be7e002af099fd95b0ac66a Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Tue, 22 Feb 2011 09:02:37 +0100 Subject: Remove unused Lua function corruption_spoiler_generate() --- lib/core/crpt_aux.lua | 61 ---------------------------------------- lib/mods/theme/core/crpt_aux.lua | 61 ---------------------------------------- 2 files changed, 122 deletions(-) (limited to 'lib') 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 diff --git a/lib/mods/theme/core/crpt_aux.lua b/lib/mods/theme/core/crpt_aux.lua index e4f16e2a..97f8d4b6 100644 --- a/lib/mods/theme/core/crpt_aux.lua +++ b/lib/mods/theme/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 -- cgit v1.2.3