From cd328f56d295a6e8c17cd12110368a489cf82b58 Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Mon, 11 Jun 2012 19:50:10 +0200 Subject: Lua: Move activation of Theme's Maia "aggravation" to C --- lib/mods/theme/scpt/init.lua | 3 --- lib/mods/theme/scpt/monsters.lua | 15 --------------- 2 files changed, 18 deletions(-) delete mode 100644 lib/mods/theme/scpt/monsters.lua (limited to 'lib/mods/theme') diff --git a/lib/mods/theme/scpt/init.lua b/lib/mods/theme/scpt/init.lua index af299f2c..edc82fe1 100644 --- a/lib/mods/theme/scpt/init.lua +++ b/lib/mods/theme/scpt/init.lua @@ -12,6 +12,3 @@ initialize_bookable_spells() -- Some tests, if the file is not present, this is fine tome_dofile_anywhere(ANGBAND_DIR_SCPT, "dg_test.lua", FALSE) - --- Add monster interaction -tome_dofile("monsters.lua") diff --git a/lib/mods/theme/scpt/monsters.lua b/lib/mods/theme/scpt/monsters.lua deleted file mode 100644 index 0f4c8cda..00000000 --- a/lib/mods/theme/scpt/monsters.lua +++ /dev/null @@ -1,15 +0,0 @@ --- This file holds various things that govern monster behaviour with respect to the player - -add_hooks{ -[HOOK_GAME_START] = function() - - if ((get_race_name() == "Maia") and - (player_has_corruption(CORRUPT_BALROG_AURA) ~= TRUE) and - (player_has_corruption(CORRUPT_BALROG_WINGS) ~= TRUE) and - (player_has_corruption(CORRUPT_BALROG_STRENGTH) ~= TRUE) and - (player_has_corruption(CORRUPT_BALROG_FORM) ~= TRUE)) then - -- "Proper" Maiar aggravate evil beings - timer_aggravate_evil_enable() - end -end, -} -- cgit v1.2.3