From d98a999477698bb0a304c4995df44f2b7ef5389d Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Tue, 29 May 2012 06:25:07 +0200 Subject: Lua: Convert all the spell metadata to C code (Yay automated translation!) --- lib/mods/theme/scpt/mkeys.lua | 2 +- lib/mods/theme/scpt/s_air.lua | 152 -------------------- lib/mods/theme/scpt/s_aule.lua | 83 ----------- lib/mods/theme/scpt/s_convey.lua | 143 ------------------- lib/mods/theme/scpt/s_demon.lua | 166 ---------------------- lib/mods/theme/scpt/s_divin.lua | 153 --------------------- lib/mods/theme/scpt/s_earth.lua | 123 ----------------- lib/mods/theme/scpt/s_eru.lua | 88 ------------ lib/mods/theme/scpt/s_fire.lua | 134 ------------------ lib/mods/theme/scpt/s_geom.lua | 177 ------------------------ lib/mods/theme/scpt/s_mana.lua | 89 ------------ lib/mods/theme/scpt/s_mandos.lua | 86 ------------ lib/mods/theme/scpt/s_manwe.lua | 84 ------------ lib/mods/theme/scpt/s_melkor.lua | 64 --------- lib/mods/theme/scpt/s_meta.lua | 104 -------------- lib/mods/theme/scpt/s_mind.lua | 88 ------------ lib/mods/theme/scpt/s_music.lua | 268 ------------------------------------ lib/mods/theme/scpt/s_nature.lua | 138 ------------------- lib/mods/theme/scpt/s_stick.lua | 290 --------------------------------------- lib/mods/theme/scpt/s_tempo.lua | 109 --------------- lib/mods/theme/scpt/s_tulkas.lua | 59 -------- lib/mods/theme/scpt/s_udun.lua | 74 ---------- lib/mods/theme/scpt/s_ulmo.lua | 89 ------------ lib/mods/theme/scpt/s_varda.lua | 83 ----------- lib/mods/theme/scpt/s_water.lua | 106 -------------- lib/mods/theme/scpt/s_yavann.lua | 100 -------------- lib/mods/theme/scpt/spells.lua | 38 +---- 27 files changed, 3 insertions(+), 3087 deletions(-) delete mode 100644 lib/mods/theme/scpt/s_air.lua delete mode 100644 lib/mods/theme/scpt/s_aule.lua delete mode 100644 lib/mods/theme/scpt/s_convey.lua delete mode 100644 lib/mods/theme/scpt/s_demon.lua delete mode 100644 lib/mods/theme/scpt/s_divin.lua delete mode 100644 lib/mods/theme/scpt/s_earth.lua delete mode 100644 lib/mods/theme/scpt/s_eru.lua delete mode 100644 lib/mods/theme/scpt/s_fire.lua delete mode 100644 lib/mods/theme/scpt/s_geom.lua delete mode 100644 lib/mods/theme/scpt/s_mana.lua delete mode 100644 lib/mods/theme/scpt/s_mandos.lua delete mode 100644 lib/mods/theme/scpt/s_manwe.lua delete mode 100644 lib/mods/theme/scpt/s_melkor.lua delete mode 100644 lib/mods/theme/scpt/s_meta.lua delete mode 100644 lib/mods/theme/scpt/s_mind.lua delete mode 100644 lib/mods/theme/scpt/s_music.lua delete mode 100644 lib/mods/theme/scpt/s_nature.lua delete mode 100644 lib/mods/theme/scpt/s_stick.lua delete mode 100644 lib/mods/theme/scpt/s_tempo.lua delete mode 100644 lib/mods/theme/scpt/s_tulkas.lua delete mode 100644 lib/mods/theme/scpt/s_udun.lua delete mode 100644 lib/mods/theme/scpt/s_ulmo.lua delete mode 100644 lib/mods/theme/scpt/s_varda.lua delete mode 100644 lib/mods/theme/scpt/s_water.lua delete mode 100644 lib/mods/theme/scpt/s_yavann.lua (limited to 'lib/mods/theme/scpt') diff --git a/lib/mods/theme/scpt/mkeys.lua b/lib/mods/theme/scpt/mkeys.lua index c46cbace..ae8ad2b1 100644 --- a/lib/mods/theme/scpt/mkeys.lua +++ b/lib/mods/theme/scpt/mkeys.lua @@ -35,7 +35,7 @@ add_mkey return end - s = get_school_spell("cast", "is_ok_spell", 62); + s = get_school_spell("cast", 62); -- Actualy cast the choice if (s ~= -1) then diff --git a/lib/mods/theme/scpt/s_air.lua b/lib/mods/theme/scpt/s_air.lua deleted file mode 100644 index 7b585317..00000000 --- a/lib/mods/theme/scpt/s_air.lua +++ /dev/null @@ -1,152 +0,0 @@ --- handle the air school - -NOXIOUSCLOUD = add_spell -{ - ["name"] = "Noxious Cloud", - ["school"] = {SCHOOL_AIR}, - ["level"] = 3, - ["mana"] = 3, - ["mana_max"] = 30, - ["fail"] = 20, - ["stick"] = - { - ["charge"] = { 5, 7 }, - [TV_WAND] = - { - ["rarity"] = 15, - ["base_level"] = { 1, 15 }, - ["max_level"] = { 25, 50 }, - }, - }, - ["spell"] = function() return air_noxious_cloud() end, - ["info"] = function() return air_noxious_cloud_info() end, - ["desc"] = { - "Creates a cloud of poison", - "The cloud will persist for some turns, damaging all monsters passing by", - "At spell level 30 it turns into a thick gas attacking all living beings" - } -} - -AIRWINGS = add_spell -{ - ["name"] = "Wings of Winds", - ["school"] = {SCHOOL_AIR, SCHOOL_CONVEYANCE}, - ["level"] = 22, - ["mana"] = 30, - ["mana_max"] = 40, - ["fail"] = 60, - ["stick"] = - { - ["charge"] = { 7, 5 }, - [TV_STAFF] = - { - ["rarity"] = 27, - ["base_level"] = { 1, 10 }, - ["max_level"] = { 20, 50 }, - }, - }, - ["inertia"] = { 1, 10 }, - ["spell"] = function() return air_wings_of_winds() end, - ["info"] = function() return air_wings_of_winds_info() end, - ["desc"] = { - "Grants the power of levitation", - "At level 16 it grants the power of controlled flight" - } -} - -INVISIBILITY = add_spell -{ - ["name"] = "Invisibility", - ["school"] = {SCHOOL_AIR}, - ["level"] = 16, - ["mana"] = 10, - ["mana_max"] = 20, - ["fail"] = 50, - ["inertia"] = { 1, 30 }, - ["spell"] = function() return air_invisibility() end, - ["info"] = function() return air_invisibility_info() end, - ["desc"] = { - "Grants invisibility" - } -} - -POISONBLOOD = add_spell -{ - ["name"] = "Poison Blood", - ["school"] = {SCHOOL_AIR}, - ["level"] = 12, - ["mana"] = 10, - ["mana_max"] = 20, - ["fail"] = 30, - ["stick"] = - { - ["charge"] = { 10, 15 }, - [TV_WAND] = - { - ["rarity"] = 45, - ["base_level"] = { 1, 25 }, - ["max_level"] = { 35, 50 }, - }, - }, - ["inertia"] = { 1, 35 }, - ["spell"] = function() return air_poison_blood() end, - ["info"] = function() return air_poison_blood_info() end, - ["desc"] = { - "Grants resist poison", - "At level 15 it provides poison branding to wielded weapon" - } -} - -THUNDERSTORM = add_spell -{ - ["name"] = "Thunderstorm", - ["school"] = {SCHOOL_AIR, SCHOOL_NATURE}, - ["level"] = 25, - ["mana"] = 40, - ["mana_max"] = 60, - ["fail"] = 60, - ["stick"] = - { - ["charge"] = { 5, 5 }, - [TV_WAND] = - { - ["rarity"] = 85, - ["base_level"] = { 1, 5 }, - ["max_level"] = { 25, 50 }, - }, - }, - ["inertia"] = { 2, 15 }, - ["spell"] = function() return air_thunderstorm() end, - ["info"] = function() return air_thunderstorm_info() end, - ["desc"] = { - "Charges up the air around you with electricity", - "Each turn it will throw a thunder bolt at a random monster in sight", - "The thunder does 3 types of damage, one third of lightning", - "one third of sound and one third of light" - } -} - -STERILIZE = add_spell -{ - ["name"] = "Sterilize", - ["school"] = {SCHOOL_AIR}, - ["level"] = 20, - ["mana"] = 10, - ["mana_max"] = 100, - ["fail"] = 50, - ["stick"] = - { - ["charge"] = { 7, 5 }, - [TV_STAFF] = - { - ["rarity"] = 20, - ["base_level"] = { 1, 10 }, - ["max_level"] = { 20, 50 }, - }, - }, - ["spell"] = function() return air_sterilize() end, - ["info"] = function() return air_sterilize_info() end, - ["desc"] = { - "Prevents explosive breeding for a while." - } -} diff --git a/lib/mods/theme/scpt/s_aule.lua b/lib/mods/theme/scpt/s_aule.lua deleted file mode 100644 index 75a121b1..00000000 --- a/lib/mods/theme/scpt/s_aule.lua +++ /dev/null @@ -1,83 +0,0 @@ --- Spells for Aule school - -BOOK_AULE = 63 - -AULE_FIREBRAND = add_spell -{ - ["name"] = "Firebrand", - ["school"] = {SCHOOL_AULE}, - ["level"] = 1, - ["mana"] = 10, - ["mana_max"] = 100, - ["fail"] = 20, - ["piety"] = TRUE, - ["stat"] = A_WIS, - ["random"] = SKILL_SPIRITUALITY, - ["spell"] = function() return aule_firebrand_spell() end, - ["info"] = function() return aule_firebrand_info() end, - ["desc"] = { - "Imbues your melee weapon with fire to deal more damage", - "At level 15 it spreads over a 1 radius zone around your target", - "At level 30 it deals holy fire damage" - } -} - -AULE_ENCHANT_WEAPON = add_spell -{ - ["name"] = "Enchant Weapon", - ["school"] = {SCHOOL_AULE}, - ["level"] = 10, - ["mana"] = 100, - ["mana_max"] = 200, - ["fail"] = 20, - ["piety"] = TRUE, - ["stat"] = A_WIS, - ["random"] = SKILL_SPIRITUALITY, - ["spell"] = function() return aule_enchant_weapon_spell() end, - ["info"] = function() return aule_enchant_weapon_info() end, - ["desc"] = { - "Tries to enchant a weapon to-hit", - "At level 5 it also enchants to-dam", - "At level 45 it enhances the special powers of magical weapons", - "The might of the enchantment increases with the level" - } -} - -AULE_ENCHANT_ARMOUR = add_spell { - ["name"] = "Enchant Armour", - ["school"] = {SCHOOL_AULE}, - ["level"] = 15, - ["mana"] = 100, - ["mana_max"] = 200, - ["fail"] = 20, - ["piety"] = TRUE, - ["stat"] = A_WIS, - ["random"] = SKILL_SPIRITUALITY, - ["spell"] = function() return aule_enchant_armour_spell() end, - ["info"] = function() return aule_enchant_armour_info() end, - ["desc"] = { - "Tries to enchant a piece of armour", - "At level 20 it also enchants to-hit and to-dam", - "At level 40 it enhances the special powers of magical armour", - "The might of the enchantment increases with the level" - } -} - -AULE_CHILD = add_spell -{ - ["name"] = "Child of Aule", - ["school"] = {SCHOOL_AULE}, - ["level"] = 20, - ["mana"] = 200, - ["mana_max"] = 500, - ["fail"] = 40, - ["piety"] = TRUE, - ["stat"] = A_WIS, - ["random"] = SKILL_SPIRITUALITY, - ["spell"] = function() return aule_child_spell() end, - ["info"] = function() return aule_child_info() end, - ["desc"] = { - "Summons a levelled Dwarven warrior to help you battle the forces", - "of Morgoth" - } -} diff --git a/lib/mods/theme/scpt/s_convey.lua b/lib/mods/theme/scpt/s_convey.lua deleted file mode 100644 index d81af28b..00000000 --- a/lib/mods/theme/scpt/s_convey.lua +++ /dev/null @@ -1,143 +0,0 @@ --- handle the conveyance school - -BLINK = add_spell -{ - ["name"] = "Phase Door", - ["school"] = {SCHOOL_CONVEYANCE}, - ["level"] = 1, - ["mana"] = 1, - ["mana_max"] = 3, - ["fail"] = 10, - ["inertia"] = { 1, 5 }, - ["spell"] = function() return convey_blink() end, - ["info"] = function() return convey_blink_info() end, - ["desc"] = { - "Teleports you on a small scale range", - "At level 30 it creates void jumpgates", - } -} - -DISARM = add_spell -{ - ["name"] = "Disarm", - ["school"] = {SCHOOL_CONVEYANCE}, - ["level"] = 3, - ["mana"] = 2, - ["mana_max"] = 4, - ["fail"] = 15, - ["stick"] = - { - ["charge"] = { 10, 15 }, - [TV_STAFF] = - { - ["rarity"] = 4, - ["base_level"] = { 1, 10 }, - ["max_level"] = { 10, 50 }, - }, - }, - ["spell"] = function() return convey_disarm() end, - ["info"] = function() return convey_disarm_info() end, - ["desc"] = { - "Destroys doors and traps", - "At level 10 it destroys doors and traps, then reveals and unlocks any secret", - "doors" - } -} - -TELEPORT = add_spell -{ - ["name"] = "Teleportation", - ["school"] = {SCHOOL_CONVEYANCE}, - ["level"] = 10, - ["mana"] = 8, - ["mana_max"] = 14, - ["fail"] = 30, - ["stick"] = - { - ["charge"] = { 7, 7 }, - [TV_STAFF] = - { - ["rarity"] = 50, - ["base_level"] = { 1, 20 }, - ["max_level"] = { 20, 50 }, - }, - }, - ["inertia"] = { 1, 10 }, - ["spell"] = function() return convey_teleport() end, - ["info"] = function() return convey_teleport_info() end, - ["desc"] = { - "Teleports you around the level. The casting time decreases with level", - } -} - -TELEAWAY = add_spell -{ - ["name"] = "Teleport Away", - ["school"] = {SCHOOL_CONVEYANCE}, - ["level"] = 23, - ["mana"] = 15, - ["mana_max"] = 40, - ["fail"] = 60, - ["stick"] = - { - ["charge"] = { 3, 5 }, - [TV_WAND] = - { - ["rarity"] = 75, - ["base_level"] = { 1, 20 }, - ["max_level"] = { 20, 50 }, - }, - }, - ["spell"] = function() return convey_teleport_away() end, - ["info"] = function() return convey_teleport_away_info() end, - ["desc"] = { - "Teleports a line of monsters away", - "At level 10 it turns into a ball", - "At level 20 it teleports all monsters in sight" - } -} - -RECALL = add_spell -{ - ["name"] = "Recall", - ["school"] = {SCHOOL_CONVEYANCE}, - ["level"] = 30, - ["mana"] = 25, - ["mana_max"] = 25, - ["fail"] = 60, - ["spell"] = function() return convey_recall() end, - ["info"] = function() return convey_recall_info() end, - ["desc"] = { - "Cast on yourself it will recall you to the surface/dungeon.", - "Cast at a monster you will swap positions with the monster.", - "Cast at an object it will fetch the object to you." - } -} - -PROBABILITY_TRAVEL = add_spell -{ - ["name"] = "Probability Travel", - ["school"] = {SCHOOL_CONVEYANCE}, - ["level"] = 35, - ["mana"] = 30, - ["mana_max"] = 50, - ["fail"] = 90, - ["stick"] = - { - ["charge"] = { 1, 2 }, - [TV_STAFF] = - { - ["rarity"] = 97, - ["base_level"] = { 1, 5 }, - ["max_level"] = { 8, 25 }, - }, - }, - ["inertia"] = { 6, 40 }, - ["spell"] = function() return convey_probability_travel() end, - ["info"] = function() return convey_probability_travel_info() end, - ["desc"] = { - "Renders you immaterial, when you hit a wall you travel through it and", - "instantly appear on the other side of it. You can also float up and down", - "at will" - } -} diff --git a/lib/mods/theme/scpt/s_demon.lua b/lib/mods/theme/scpt/s_demon.lua deleted file mode 100644 index 8bf14c21..00000000 --- a/lib/mods/theme/scpt/s_demon.lua +++ /dev/null @@ -1,166 +0,0 @@ --- handle the demonology school - --- Demonblade -DEMON_BLADE = add_spell -{ - ["name"] = "Demon Blade", - ["school"] = {SCHOOL_DEMON}, - ["level"] = 1, - ["mana"] = 4, - ["mana_max"] = 44, - ["fail"] = 10, - ["random"] = 0, - ["stick"] = - { - ["charge"] = { 3, 7 }, - [TV_WAND] = - { - ["rarity"] = 75, - ["base_level"] = { 1, 17 }, - ["max_level"] = { 20, 40 }, - }, - }, - ["spell"] = function() return demonology_demon_blade() end, - ["info"] = function() return demonology_demon_blade_info() end, - ["desc"] = { - "Imbues your blade with fire to deal more damage", - "At level 30 it deals hellfire damage", - "At level 45 it spreads over a 1 radius zone around your target", - } -} - -DEMON_MADNESS = add_spell -{ - ["name"] = "Demon Madness", - ["school"] = {SCHOOL_DEMON}, - ["level"] = 10, - ["mana"] = 5, - ["mana_max"] = 20, - ["fail"] = 25, - ["random"] = 0, - ["spell"] = function() return demonology_demon_madness() end, - ["info"] = function() return demonology_demon_madness_info() end, - ["desc"] = { - "Fire 2 balls in opposite directions of randomly chaos, confusion or charm", - } -} - -DEMON_FIELD = add_spell -{ - ["name"] = "Demon Field", - ["school"] = {SCHOOL_DEMON}, - ["level"] = 20, - ["mana"] = 20, - ["mana_max"] = 60, - ["fail"] = 60, - ["random"] = 0, - ["spell"] = function() return demonology_demon_field() end, - ["info"] = function() return demonology_demon_field_info() end, - ["desc"] = { - "Fires a cloud of deadly nexus over a radius of 7", - } -} - --- Demonshield - -DOOM_SHIELD = add_spell -{ - ["name"] = "Doom Shield", - ["school"] = {SCHOOL_DEMON}, - ["level"] = 1, - ["mana"] = 2, - ["mana_max"] = 30, - ["fail"] = 10, - ["random"] = 0, - ["spell"] = function() return demonology_doom_shield() end, - ["info"] = function() return demonology_doom_shield_info() end, - ["desc"] = { - "Raises a mirror of pain around you, doing very high damage to your foes", - "that dare hit you, but greatly reduces your armour class", - } -} - -UNHOLY_WORD = add_spell -{ - ["name"] = "Unholy Word", - ["school"] = {SCHOOL_DEMON}, - ["level"] = 25, - ["mana"] = 15, - ["mana_max"] = 45, - ["fail"] = 55, - ["random"] = 0, - ["spell"] = function() return demonology_unholy_word() end, - ["info"] = function() return demonology_unholy_word_info() end, - ["desc"] = { - "Kills a pet to heal you", - "There is a chance that the pet won't die but will turn against you", - "it will decrease with higher level", - } -} - -DEMON_CLOAK = add_spell -{ - ["name"] = "Demon Cloak", - ["school"] = {SCHOOL_DEMON}, - ["level"] = 20, - ["mana"] = 10, - ["mana_max"] = 40, - ["fail"] = 70, - ["random"] = 0, - ["spell"] = function() return demonology_demon_cloak() end, - ["info"] = function() return demonology_demon_cloak_info() end, - ["desc"] = { - "Raises a mirror that can reflect bolts and arrows for a time", - } -} - - --- Demonhorn -DEMON_SUMMON = add_spell -{ - ["name"] = "Summon Demon", - ["school"] = {SCHOOL_DEMON}, - ["level"] = 5, - ["mana"] = 10, - ["mana_max"] = 50, - ["fail"] = 30, - ["random"] = 0, - ["spell"] = function() return demonology_summon_demon() end, - ["info"] = function() return demonology_summon_demon_info() end, - ["desc"] = { - "Summons a leveled demon to your side", - "At level 35 it summons a high demon", - } -} - -DISCHARGE_MINION = add_spell -{ - ["name"] = "Discharge Minion", - ["school"] = {SCHOOL_DEMON}, - ["level"] = 10, - ["mana"] = 20, - ["mana_max"] = 50, - ["fail"] = 30, - ["random"] = 0, - ["spell"] = function() return demonology_discharge_minion() end, - ["info"] = function() return demonology_discharge_minion_info() end, - ["desc"] = { - "The targeted pet will explode in a burst of gravity", - } -} - -CONTROL_DEMON = add_spell -{ - ["name"] = "Control Demon", - ["school"] = {SCHOOL_DEMON}, - ["level"] = 25, - ["mana"] = 30, - ["mana_max"] = 70, - ["fail"] = 55, - ["random"] = 0, - ["spell"] = function() return demonology_control_demon() end, - ["info"] = function() return demonology_control_demon_info() end, - ["desc"] = { - "Attempts to control a demon", - } -} diff --git a/lib/mods/theme/scpt/s_divin.lua b/lib/mods/theme/scpt/s_divin.lua deleted file mode 100644 index e077f1f0..00000000 --- a/lib/mods/theme/scpt/s_divin.lua +++ /dev/null @@ -1,153 +0,0 @@ --- Handles thhe divination school - - -STARIDENTIFY = add_spell -{ - ["name"] = "Greater Identify", - ["school"] = {SCHOOL_DIVINATION}, - ["level"] = 35, - ["mana"] = 30, - ["mana_max"] = 30, - ["fail"] = 80, - ["spell"] = function() return divination_greater_identify() end, - ["info"] = function() return divination_greater_identify_info() end, - ["desc"] = { - "Asks for an object and fully identify it, providing the full list of powers", - "Cast at yourself it will reveal your powers" - } -} - -IDENTIFY = add_spell -{ - ["name"] = "Identify", - ["school"] = {SCHOOL_DIVINATION}, - ["level"] = 8, - ["mana"] = 10, - ["mana_max"] = 50, - ["fail"] = 40, - ["stick"] = - { - ["charge"] = { 7, 10 }, - [TV_STAFF] = - { - ["rarity"] = 45, - ["base_level"] = { 1, 15 }, - ["max_level"] = { 15, 40 }, - }, - }, - ["spell"] = function() return divination_identify() end, - ["info"] = function() return divination_identify_info() end, - ["desc"] = { - "Asks for an object and identifies it", - "At level 17 it identifies all objects in the inventory", - "At level 27 it identifies all objects in the inventory and in a", - "radius on the floor, as well as probing monsters in that radius" - } -} - -VISION = add_spell -{ - ["name"] = "Vision", - ["school"] = {SCHOOL_DIVINATION}, - ["level"] = 15, - ["mana"] = 7, - ["mana_max"] = 55, - ["fail"] = 45, - ["stick"] = - { - ["charge"] = { 4, 6 }, - [TV_STAFF] = - { - ["rarity"] = 60, - ["base_level"] = { 1, 5 }, - ["max_level"] = { 10, 30 }, - }, - }, - ["inertia"] = { 2, 200 }, - ["spell"] = function() return divination_vision() end, - ["info"] = function() return divination_vision_info() end, - ["desc"] = { - "Detects the layout of the surrounding area", - "At level 25 it maps and lights the whole level", - } -} - -SENSEHIDDEN = add_spell -{ - ["name"] = "Sense Hidden", - ["school"] = {SCHOOL_DIVINATION}, - ["level"] = 5, - ["mana"] = 2, - ["mana_max"] = 10, - ["fail"] = 25, - ["stick"] = - { - ["charge"] = { 1, 15 }, - [TV_STAFF] = - { - ["rarity"] = 20, - ["base_level"] = { 1, 15 }, - ["max_level"] = { 10, 50 }, - }, - }, - ["inertia"] = { 1, 10 }, - ["spell"] = function() return divination_sense_hidden() end, - ["info"] = function() return divination_sense_hidden_info() end, - ["desc"] = { - "Detects the traps in a certain radius around you", - "At level 15 it allows you to sense invisible for a while" - } -} - -REVEALWAYS = add_spell -{ - ["name"] = "Reveal Ways", - ["school"] = {SCHOOL_DIVINATION}, - ["level"] = 9, - ["mana"] = 3, - ["mana_max"] = 15, - ["fail"] = 20, - ["stick"] = - { - ["charge"] = { 6, 6 }, - [TV_STAFF] = - { - ["rarity"] = 35, - ["base_level"] = { 1, 15 }, - ["max_level"] = { 25, 50 }, - }, - }, - ["inertia"] = { 1, 10 }, - ["spell"] = function() return divination_reveal_ways() end, - ["info"] = function() return divination_reveal_ways_info() end, - ["desc"] = { - "Detects the doors/stairs/ways in a certain radius around you", - } -} - -SENSEMONSTERS = add_spell -{ - ["name"] = "Sense Monsters", - ["school"] = {SCHOOL_DIVINATION}, - ["level"] = 1, - ["mana"] = 1, - ["mana_max"] = 20, - ["fail"] = 10, - ["stick"] = - { - ["charge"] = { 5, 10 }, - [TV_STAFF] = - { - ["rarity"] = 37, - ["base_level"] = { 1, 10 }, - ["max_level"] = { 15, 40 }, - }, - }, - ["inertia"] = { 1, 10 }, - ["spell"] = function() return divination_sense_monsters() end, - ["info"] = function() return divination_sense_monsters_info() end, - ["desc"] = { - "Detects all monsters near you", - "At level 30 it allows you to sense monster minds for a while" - } -} diff --git a/lib/mods/theme/scpt/s_earth.lua b/lib/mods/theme/scpt/s_earth.lua deleted file mode 100644 index 9825fc84..00000000 --- a/lib/mods/theme/scpt/s_earth.lua +++ /dev/null @@ -1,123 +0,0 @@ --- The earth school - -STONESKIN = add_spell -{ - ["name"] = "Stone Skin", - ["school"] = SCHOOL_EARTH, - ["level"] = 1, - ["mana"] = 1, - ["mana_max"] = 50, - ["fail"] = 10, - ["inertia"] = { 2, 50 }, - ["spell"] = function() return earth_stone_skin() end, - ["info"] = function() return earth_stone_skin_info() end, - ["desc"] = { - "Creates a shield of earth around you to protect you", - "At level 25 it starts dealing damage to attackers" - } -} - -DIG = add_spell -{ - ["name"] = "Dig", - ["school"] = SCHOOL_EARTH, - ["level"] = 12, - ["mana"] = 14, - ["mana_max"] = 14, - ["fail"] = 20, - ["stick"] = - { - ["charge"] = { 15, 5 }, - [TV_WAND] = - { - ["rarity"] = 25, - ["base_level"] = { 1, 1 }, - ["max_level"] = { 1, 1 }, - }, - }, - ["spell"] = function() return earth_dig() end, - ["info"] = function() return earth_dig_info() end, - ["desc"] = { - "Digs a hole in a wall much faster than any shovels", - } -} - -STONEPRISON = add_spell -{ - ["name"] = "Stone Prison", - ["school"] = SCHOOL_EARTH, - ["level"] = 25, - ["mana"] = 30, - ["mana_max"] = 50, - ["fail"] = 65, - ["stick"] = - { - ["charge"] = { 5, 3 }, - [TV_WAND] = - { - ["rarity"] = 57, - ["base_level"] = { 1, 3 }, - ["max_level"] = { 5, 20 }, - }, - }, - ["spell"] = function() return earth_stone_prison() end, - ["info"] = function() return earth_stone_prison_info() end, - ["desc"] = { - "Creates a prison of walls around you", - "At level 10 it allows you to target a monster" - } -} - -STRIKE = add_spell -{ - ["name"] = "Strike", - ["school"] = {SCHOOL_EARTH}, - ["level"] = 30, - ["mana"] = 30, - ["mana_max"] = 50, - ["fail"] = 60, - ["stick"] = - { - ["charge"] = { 2, 6 }, - [TV_WAND] = - { - ["rarity"] = 635, - ["base_level"] = { 1, 5 }, - ["max_level"] = { 10, 50 }, - }, - }, - ["spell"] = function() return earth_strike() end, - ["info"] = function() return earth_strike_info() end, - ["desc"] = { - "Creates a micro-ball of force that will push monsters backwards", - "If the monster is caught near a wall, it'll be crushed against it", - "At level 12 it turns into a ball of radius 1" - } -} - -SHAKE = add_spell -{ - ["name"] = "Shake", - ["school"] = {SCHOOL_EARTH}, - ["level"] = 27, - ["mana"] = 25, - ["mana_max"] = 30, - ["fail"] = 60, - ["stick"] = - { - ["charge"] = { 5, 10 }, - [TV_STAFF] = - { - ["rarity"] = 75, - ["base_level"] = { 1, 3 }, - ["max_level"] = { 9, 20 }, - }, - }, - ["inertia"] = { 2, 50 }, - ["spell"] = function() return earth_shake() end, - ["info"] = function() return earth_shake_info() end, - ["desc"] = { - "Creates a localised earthquake", - "At level 10 it can be targeted at any location" - } -} diff --git a/lib/mods/theme/scpt/s_eru.lua b/lib/mods/theme/scpt/s_eru.lua deleted file mode 100644 index d61b6118..00000000 --- a/lib/mods/theme/scpt/s_eru.lua +++ /dev/null @@ -1,88 +0,0 @@ --- Handle Eru Iluvatar magic school - -ERU_SEE = add_spell -{ - ["name"] = "See the Music", - ["school"] = {SCHOOL_ERU}, - ["level"] = 1, - ["mana"] = 1, - ["mana_max"] = 50, - ["fail"] = 20, - -- Uses piety to cast - ["piety"] = TRUE, - ["stat"] = A_WIS, - -- Unnafected by blindness - ["blind"] = FALSE, - ["random"] = SKILL_SPIRITUALITY, - ["spell"] = function() return eru_see_the_music() end, - ["info"] = function() return eru_see_the_music_info() end, - ["desc"] = { - "Allows you to 'see' the Great Music from which the world", - "originates, allowing you to see unseen things", - "At level 10 it allows you to see your surroundings", - "At level 20 it allows you to cure blindness", - "At level 30 it allows you to fully see all the level" - } -} - -ERU_LISTEN = add_spell -{ - ["name"] = "Listen to the Music", - ["school"] = {SCHOOL_ERU}, - ["level"] = 7, - ["mana"] = 15, - ["mana_max"] = 200, - ["fail"] = 25, - -- Uses piety to cast - ["piety"] = TRUE, - ["stat"] = A_WIS, - ["random"] = SKILL_SPIRITUALITY, - ["spell"] = function() return eru_listen_to_the_music() end, - ["info"] = function() return eru_listen_to_the_music_info() end, - ["desc"] = { - "Allows you to listen to the Great Music from which the world", - "originates, allowing you to understand the meaning of things", - "At level 14 it allows you to identify all your pack", - "At level 30 it allows you to identify all items on the level", - } -} - -ERU_UNDERSTAND = add_spell -{ - ["name"] = "Know the Music", - ["school"] = {SCHOOL_ERU}, - ["level"] = 30, - ["mana"] = 200, - ["mana_max"] = 600, - ["fail"] = 50, - -- Uses piety to cast - ["piety"] = TRUE, - ["stat"] = A_WIS, - ["random"] = SKILL_SPIRITUALITY, - ["spell"] = function() return eru_know_the_music() end, - ["info"] = function() return eru_know_the_music_info() end, - ["desc"] = { - "Allows you to understand the Great Music from which the world", - "originates, allowing you to know the full abilities of things", - "At level 10 it allows you to *identify* all your pack", - } -} - -ERU_PROT = add_spell -{ - ["name"] = "Lay of Protection", - ["school"] = {SCHOOL_ERU}, - ["level"] = 35, - ["mana"] = 400, - ["mana_max"] = 400, - ["fail"] = 80, - -- Uses piety to cast - ["piety"] = TRUE, - ["stat"] = A_WIS, - ["random"] = SKILL_SPIRITUALITY, - ["spell"] = function() return eru_lay_of_protection() end, - ["info"] = function() return eru_lay_of_protection_info() end, - ["desc"] = { - "Creates a circle of safety around you", - } -} diff --git a/lib/mods/theme/scpt/s_fire.lua b/lib/mods/theme/scpt/s_fire.lua deleted file mode 100644 index 37a75032..00000000 --- a/lib/mods/theme/scpt/s_fire.lua +++ /dev/null @@ -1,134 +0,0 @@ --- handle the fire school - -GLOBELIGHT = add_spell -{ - ["name"] = "Globe of Light", - ["school"] = {SCHOOL_FIRE}, - ["level"] = 1, - ["mana"] = 2, - ["mana_max"] = 15, - ["fail"] = 10, - ["stick"] = - { - ["charge"] = { 10, 5 }, - [TV_STAFF] = - { - ["rarity"] = 7, - ["base_level"] = { 1, 15 }, - ["max_level"] = { 10, 45 }, - }, - }, - ["inertia"] = { 1, 40 }, - ["spell"] = function() return fire_globe_of_light() end, - ["info"] = function() return fire_globe_of_light_info() end, - ["desc"] = { - "Creates a globe of pure light", - "At level 3 it starts damaging monsters", - "At level 15 it starts creating a more powerful kind of light", - } -} - -FIREFLASH = add_spell -{ - ["name"] = "Fireflash", - ["school"] = {SCHOOL_FIRE}, - ["level"] = 10, - ["mana"] = 5, - ["mana_max"] = 70, - ["fail"] = 35, - ["stick"] = - { - ["charge"] = { 5, 5 }, - [TV_WAND] = - { - ["rarity"] = 35, - ["base_level"] = { 1, 15 }, - ["max_level"] = { 15, 35 }, - }, - }, - ["spell"] = function() return fire_fireflash() end, - ["info"] = function() return fire_fireflash_info() end, - ["desc"] = { - "Conjures a ball of fire to burn your foes to ashes", - "At level 20 it turns into a ball of holy fire" - } -} - -FIERYAURA = add_spell -{ - ["name"] = "Fiery Shield", - ["school"] = {SCHOOL_FIRE}, - ["level"] = 20, - ["mana"] = 20, - ["mana_max"] = 60, - ["fail"] = 50, - ["stick"] = - { - ["charge"] = { 3, 5 }, - [TV_STAFF] = - { - ["rarity"] = 50, - ["base_level"] = { 1, 10 }, - ["max_level"] = { 5, 40 }, - }, - }, - ["inertia"] = { 2, 15 }, - ["spell"] = function() return fire_fiery_shield() end, - ["info"] = function() return fire_fiery_shield_info() end, - ["desc"] = { - "Creates a shield of fierce flames around you", - "At level 8 it turns into a greater kind of flame that can not be resisted" - } -} - -FIREWALL = add_spell -{ - ["name"] = "Firewall", - ["school"] = {SCHOOL_FIRE}, - ["level"] = 15, - ["mana"] = 25, - ["mana_max"] = 100, - ["fail"] = 40, - ["stick"] = - { - ["charge"] = { 4, 5 }, - [TV_WAND] = - { - ["rarity"] = 55, - ["base_level"] = { 1, 10 }, - ["max_level"] = { 5, 40 }, - }, - }, - ["spell"] = function() return fire_firewall() end, - ["info"] = function() return fire_firewall_info() end, - ["desc"] = { - "Creates a fiery wall to incinerate monsters stupid enough to attack you", - "At level 6 it turns into a wall of hell fire" - } -} - -FIREGOLEM = add_spell -{ - ["name"] = "Fire Golem", - ["school"] = {SCHOOL_FIRE, SCHOOL_MIND}, - ["level"] = 7, - ["mana"] = 16, - ["mana_max"] = 70, - ["fail"] = 40, - ["spell"] = function() return fire_golem() end, - ["info"] = function() return fire_golem_info() end, - ["desc"] = { - "Creates a fiery golem and controls it", - "During the control the available keylist is:", - "Movement keys: movement of the golem(depending on its speed", - " it can move more than one square)", - ", : pickup all items on the floor", - "d : drop all carried items", - "i : list all carried items", - "m : end the possession/use golem powers", - "Most of the other keys are disabled, you cannot interact with your", - "real body while controlling the golem", - "But to cast the spell you will need a lantern or a wooden torch to", - "Create the golem from" - } -} diff --git a/lib/mods/theme/scpt/s_geom.lua b/lib/mods/theme/scpt/s_geom.lua deleted file mode 100644 index d250f38d..00000000 --- a/lib/mods/theme/scpt/s_geom.lua +++ /dev/null @@ -1,177 +0,0 @@ --- Geomancy school - -CALL_THE_ELEMENTS = add_spell -{ - ["name"] = "Call the Elements", - ["school"] = {SCHOOL_GEOMANCY}, - ["level"] = 1, - ["mana"] = 2, - ["mana_max"] = 20, - ["fail"] = 10, - -- Unnafected by blindness - ["blind"] = FALSE, - ["random"] = 0, - ["spell"] = function() return geomancy_call_the_elements() end, - ["info"] = function() return geomancy_call_the_elements_info() end, - ["desc"] = { - "Randomly creates various elements around you", - "Each type of element chance is controlled by your level", - "in the corresponding skill", - "At level 17 it can be targeted", - } -} - -CHANNEL_ELEMENTS = add_spell -{ - ["name"] = "Channel Elements", - ["school"] = {SCHOOL_GEOMANCY}, - ["level"] = 3, - ["mana"] = 3, - ["mana_max"] = 30, - ["fail"] = 20, - -- Unnafected by blindness - ["blind"] = FALSE, - ["random"] = 0, - ["spell"] = function() return geomancy_channel_elements() end, - ["info"] = function() return geomancy_channel_elements_info() end, - ["desc"] = { - "Draws on the caster's immediate environs to form an attack or other effect.", - "Grass/Flower heals.", - "Water creates water bolt attacks.", - "Ice creates ice bolt attacks.", - "Sand creates a wall of thick, blinding, burning sand around you.", - "Lava creates fire bolt attacks.", - "Deep lava creates fire ball attacks.", - "Chasm creates darkness bolt attacks.", - "At Earth level 18, darkness becomes nether.", - "At Water level 8, water attacks become beams with a striking effect.", - "At Water level 12, ice attacks become balls of ice shards.", - "At Water level 18, water attacks push monsters back.", - "At Fire level 15, fire become hellfire.", - } -} - -ELEMENTAL_WAVE = add_spell -{ - ["name"] = "Elemental Wave", - ["school"] = {SCHOOL_GEOMANCY}, - ["level"] = 15, - ["mana"] = 15, - ["mana_max"] = 50, - ["fail"] = 20, - -- Unnafected by blindness - ["blind"] = FALSE, - ["random"] = 0, - ["spell"] = function() return geomancy_elemental_wave() end, - ["info"] = function() return geomancy_elemental_wave_info() end, - ["desc"] = { - "Draws on an adjacent special square to project a slow-moving", - "wave of that element in that direction", - "Abyss squares cannot be channeled into a wave.", - } -} - -VAPORIZE = add_spell -{ - ["name"] = "Vaporize", - ["school"] = {SCHOOL_GEOMANCY}, - ["level"] = 4, - ["mana"] = 3, - ["mana_max"] = 30, - ["fail"] = 15, - -- Unnafected by blindness - ["blind"] = FALSE, - -- Must have at least 4 Air - ["random"] = 0, - ["depend"] = function() return geomancy_vaporize_depends() end, - ["spell"] = function() return geomancy_vaporize() end, - ["info"] = function() return geomancy_vaporize_info() end, - ["desc"] = { - "Draws upon your immediate environs to form a cloud of damaging vapors", - } -} - -GEOLYSIS = add_spell -{ - ["name"] = "Geolysis", - ["school"] = {SCHOOL_GEOMANCY}, - ["level"] = 7, - ["mana"] = 15, - ["mana_max"] = 40, - ["fail"] = 15, - -- Unnafected by blindness - ["blind"] = FALSE, - ["random"] = 0, - -- Must have at least 7 Earth - ["depend"] = function() return geomancy_geolysis_depends() end, - ["spell"] = function() return geomancy_geolysis() end, - ["info"] = function() return geomancy_geolysis_info() end, - ["desc"] = { - "Burrows deeply and slightly at random into a wall,", - "leaving behind tailings of various different sorts of walls in the passage.", - } -} - -DRIPPING_TREAD = add_spell -{ - ["name"] = "Dripping Tread", - ["school"] = {SCHOOL_GEOMANCY}, - ["level"] = 10, - ["mana"] = 15, - ["mana_max"] = 25, - ["fail"] = 15, - -- Unnafected by blindness - ["blind"] = FALSE, - ["random"] = 0, - -- Must have at least 10 Water - ["depend"] = function() return geomancy_dripping_tread_depends() end, - ["spell"] = function() return geomancy_dripping_tread() end, - ["info"] = function() return geomancy_dripping_tread_info() end, - ["desc"] = { - "Causes you to leave random elemental forms behind as you walk", - } -} - -GROW_BARRIER = add_spell -{ - ["name"] = "Grow Barrier", - ["school"] = {SCHOOL_GEOMANCY}, - ["level"] = 12, - ["mana"] = 30, - ["mana_max"] = 40, - ["fail"] = 15, - -- Unnafected by blindness - ["blind"] = FALSE, - ["random"] = 0, - -- Must have at least 12 Earth - ["depend"] = function() return geomancy_grow_barrier_depends() end, - ["spell"] = function() return geomancy_grow_barrier() end, - ["info"] = function() return geomancy_grow_barrier_info() end, - ["desc"] = { - "Creates impassable terrain (walls, trees, etc.) around you.", - "At level 20 it can be projected around another area.", - } -} - -ELEMENTAL_MINION = add_spell -{ - ["name"] = "Elemental Minion", - ["school"] = {SCHOOL_GEOMANCY}, - ["level"] = 20, - ["mana"] = 40, - ["mana_max"] = 80, - ["fail"] = 25, - -- Unnafected by blindness - ["random"] = 0, - -- Must have at least 12 Earth - ["spell"] = function() return geomancy_elemental_minion() end, - ["info"] = function() return geomancy_elemental_minion_info() end, - ["desc"] = { - "Summons a minion from a nearby element.", - "Walls can summon Earth elmentals, Xorns and Xarens", - "Dark Pits can summon Air elementals, Ancient blue dragons, Great Storm Wyrms", - "and Sky Drakes", - "Sandwalls and lava can summon Fire elementals and Ancient red dragons", - "Icewall, and water can summon Water elementals, Water trolls and Water demons", - } -} diff --git a/lib/mods/theme/scpt/s_mana.lua b/lib/mods/theme/scpt/s_mana.lua deleted file mode 100644 index 67126fb2..00000000 --- a/lib/mods/theme/scpt/s_mana.lua +++ /dev/null @@ -1,89 +0,0 @@ --- The mana school - -MANATHRUST = add_spell -{ - ["name"] = "Manathrust", - ["school"] = SCHOOL_MANA, - ["level"] = 1, - ["mana"] = 1, - ["mana_max"] = 25, - ["fail"] = 10, - ["stick"] = - { - ["charge"] = { 7, 10 }, - [TV_WAND] = - { - ["rarity"] = 5, - ["base_level"] = { 1, 20 }, - ["max_level"] = { 15, 33 }, - }, - }, - ["spell"] = function() return mana_manathrust() end, - ["info"] = function() return mana_manathrust_info() end, - ["desc"] = { - "Conjures up mana into a powerful bolt", - "The damage is irresistible and will increase with level" - } -} - -DELCURSES = add_spell -{ - ["name"] = "Remove Curses", - ["school"] = SCHOOL_MANA, - ["level"] = 10, - ["mana"] = 20, - ["mana_max"] = 40, - ["fail"] = 30, - ["stick"] = - { - ["charge"] = { 3, 8 }, - [TV_STAFF] = - { - ["rarity"] = 70, - ["base_level"] = { 1, 5 }, - ["max_level"] = { 15, 50 }, - }, - }, - ["inertia"] = { 1, 10 }, - ["spell"] = function() return mana_remove_curses() end, - ["info"] = function() return mana_remove_curses_info() end, - ["desc"] = { - "Remove curses of worn objects", - "At level 20 switches to *remove curses*" - } -} - -RESISTS = add_spell -{ - ["name"] = "Elemental Shield", - ["school"] = SCHOOL_MANA, - ["level"] = 20, - ["mana"] = 17, - ["mana_max"] = 20, - ["fail"] = 40, - ["inertia"] = { 2, 25 }, - ["spell"] = function() return mana_elemental_shield() end, - ["info"] = function() return mana_elemental_shield_info() end, - ["desc"] = { - "Provide resistances to the four basic elements", - } -} - -MANASHIELD = add_spell -{ - ["name"] = "Disruption Shield", - ["school"] = SCHOOL_MANA, - ["level"] = 45, - ["mana"] = 50, - ["mana_max"] = 50, - ["fail"] = 90, - ["inertia"] = { 9, 10}, - ["spell"] = function() return mana_disruption_shield() end, - ["info"] = function() return mana_disruption_shield_info() end, - ["desc"] = { - "Uses mana instead of hp to take damage", - "At level 5 switches to Globe of Invulnerability.", - "The spell breaks as soon as a melee, shooting, throwing or magical", - "skill action is attempted, and lasts only a short time." - } -} diff --git a/lib/mods/theme/scpt/s_mandos.lua b/lib/mods/theme/scpt/s_mandos.lua deleted file mode 100644 index 48b73c27..00000000 --- a/lib/mods/theme/scpt/s_mandos.lua +++ /dev/null @@ -1,86 +0,0 @@ --- Spells for the school of Mandos - -BOOK_MANDOS = 66 - --- "Tears of Luthien" based on Holy Word from T-Plus -MANDOS_TEARS_LUTHIEN = add_spell -{ - ["name"] = "Tears of Luthien", - ["school"] = {SCHOOL_MANDOS}, - ["level"] = 5, - ["mana"] = 10, - ["mana_max"] = 100, - ["fail"] = 25, - ["piety"] = TRUE, - ["stat"] = A_WIS, - ["random"] = SKILL_SPIRITUALITY, - ["spell"] = function() return mandos_tears_of_luthien_spell() end, - ["info"] = function() return mandos_tears_of_luthien_info() end, - ["desc"] = { - "Calls upon the spirit of Luthien to ask Mandos for healing and succour." - } -} - --- "Spirit of the Feanturi" based on Restore Mind from T-Plus -MANDOS_SPIRIT_FEANTURI = add_spell -{ - ["name"] = "Feanturi", - ["school"] = {SCHOOL_MANDOS}, - ["level"] = 10, - ["mana"] = 40, - ["mana_max"] = 200, - ["fail"] = 50, - -- Uses piety to cast - ["piety"] = TRUE, - ["stat"] = A_WIS, - ["random"] = SKILL_SPIRITUALITY, - ["spell"] = function() return mandos_spirit_of_the_feanturi_spell() end, - ["info"] = function() return mandos_spirit_of_the_feanturi_info() end, - ["desc"] = { - "Channels the power of Mandos to cure fear and confusion.", - "At level 20 it restores lost INT and WIS", - "At level 30 it cures hallucinations and restores a percentage of lost sanity" - } -} - --- "Tale of Doom" based on Foretell from T-Plus -MANDOS_TALE_DOOM = add_spell -{ - ["name"] = "Tale of Doom", - ["school"] = {SCHOOL_MANDOS}, - ["level"] = 25, - ["mana"] = 60, - ["mana_max"] = 300, - ["stat"] = A_WIS, - ["fail"] = 75, - -- Uses piety to cast - ["piety"] = TRUE, - ["stat"] = A_WIS, - ["random"] = SKILL_SPIRITUALITY, - ["spell"] = function() return mandos_tale_of_doom_spell() end, - ["info"] = function() return mandos_tale_of_doom_info() end, - ["desc"] = { - "Allows you to predict the future for a short time." - } -} - --- "Call to the Halls" based on Call Blessed Soul from T-Plus -MANDOS_CALL_HALLS= add_spell -{ - ["name"] = "Call to the Halls", - ["school"] = {SCHOOL_MANDOS}, - ["level"] = 30, - ["mana"] = 80, - ["mana_max"] = 400, - ["fail"] = 95, - ["piety"] = TRUE, - ["stat"] = A_WIS, - ["random"] = SKILL_SPIRITUALITY, - ["spell"] = function() return mandos_call_to_the_halls_spell() end, - ["info"] = function() return mandos_call_to_the_halls_info() end, - ["desc"] = { - "Summons a leveled spirit from the Halls of Mandos", - "to fight for you." - - } -} \ No newline at end of file diff --git a/lib/mods/theme/scpt/s_manwe.lua b/lib/mods/theme/scpt/s_manwe.lua deleted file mode 100644 index 189f50ff..00000000 --- a/lib/mods/theme/scpt/s_manwe.lua +++ /dev/null @@ -1,84 +0,0 @@ --- Handle Manwe Sulimo magic school - -MANWE_SHIELD = add_spell -{ - ["name"] = "Wind Shield", - ["school"] = {SCHOOL_MANWE}, - ["level"] = 10, - ["mana"] = 100, - ["mana_max"] = 500, - ["fail"] = 30, - -- Uses piety to cast - ["piety"] = TRUE, - ["stat"] = A_WIS, - ["random"] = SKILL_SPIRITUALITY, - ["spell"] = function() return manwe_wind_shield() end, - ["info"] = function() return manwe_wind_shield_info() end, - ["desc"] = { - "It surrounds you with a shield of wind that deflects blows from evil monsters", - "At level 10 it increases your armour rating", - "At level 20 it retaliates against monsters that melee you", - } -} - -MANWE_AVATAR = add_spell -{ - ["name"] = "Avatar", - ["school"] = {SCHOOL_MANWE}, - ["level"] = 35, - ["mana"] = 1000, - ["mana_max"] = 1000, - ["fail"] = 80, - -- Uses piety to cast - ["piety"] = TRUE, - ["stat"] = A_WIS, - ["random"] = SKILL_SPIRITUALITY, - ["spell"] = function() return manwe_avatar() end, - ["info"] = function() return manwe_avatar_info() end, - ["desc"] = { - "It turns you into a full grown Maia", - } -} - -MANWE_BLESS = add_spell -{ - ["name"] = "Manwe's Blessing", - ["school"] = {SCHOOL_MANWE}, - ["level"] = 1, - ["mana"] = 10, - ["mana_max"] = 100, - ["fail"] = 20, - -- Uses piety to cast - ["piety"] = TRUE, - ["stat"] = A_WIS, - ["random"] = SKILL_SPIRITUALITY, - ["spell"] = function() return manwe_blessing() end, - ["info"] = function() return manwe_blessing_info() end, - ["desc"] = { - "Manwe's Blessing removes your fears, blesses you and surrounds you with", - "holy light", - "At level 10 it also grants heroism", - "At level 20 it also grants super heroism", - "At level 30 it also grants holy luck and life protection", - } -} - -MANWE_CALL = add_spell -{ - ["name"] = "Manwe's Call", - ["school"] = {SCHOOL_MANWE}, - ["level"] = 20, - ["mana"] = 200, - ["mana_max"] = 500, - ["fail"] = 40, - -- Uses piety to cast - ["piety"] = TRUE, - ["stat"] = A_WIS, - ["random"] = SKILL_SPIRITUALITY, - ["spell"] = function() return manwe_call() end, - ["info"] = function() return manwe_call_info() end, - ["desc"] = { - "Manwe's Call summons a Great Eagle to help you battle the forces", - "of Morgoth" - } -} diff --git a/lib/mods/theme/scpt/s_melkor.lua b/lib/mods/theme/scpt/s_melkor.lua deleted file mode 100644 index 701dca7a..00000000 --- a/lib/mods/theme/scpt/s_melkor.lua +++ /dev/null @@ -1,64 +0,0 @@ --- handle the melkor school - -MELKOR_CURSE = add_spell -{ - ["name"] = "Curse", - ["school"] = {SCHOOL_MELKOR}, - ["level"] = 1, - ["mana"] = 50, - ["mana_max"] = 300, - ["fail"] = 20, - -- Uses piety to cast - ["piety"] = TRUE, - ["stat"] = A_WIS, - ["random"] = SKILL_SPIRITUALITY, - ["spell"] = function() return melkor_curse() end, - ["info"] = function() return melkor_curse_info() end, - ["desc"] = { - "It curses a monster, reducing its melee power", - "At level 5 it can be auto-casted (with no piety cost) while fighting", - "At level 15 it also reduces armor", - "At level 25 it also reduces speed", - "At level 35 it also reduces max life (but it is never fatal)", - } -} - -MELKOR_CORPSE_EXPLOSION = add_spell -{ - ["name"] = "Corpse Explosion", - ["school"] = {SCHOOL_MELKOR}, - ["level"] = 10, - ["mana"] = 100, - ["mana_max"] = 500, - ["fail"] = 45, - -- Uses piety to cast - ["piety"] = TRUE, - ["stat"] = A_WIS, - ["random"] = SKILL_SPIRITUALITY, - ["spell"] = function() return melkor_corpse_explosion() end, - ["info"] = function() return melkor_corpse_explosion_info() end, - ["desc"] = { - "It makes corpses in an area around you explode for a percent of their", - "hit points as damage", - } -} - -MELKOR_MIND_STEAL = add_spell -{ - ["name"] = "Mind Steal", - ["school"] = {SCHOOL_MELKOR}, - ["level"] = 20, - ["mana"] = 1000, - ["mana_max"] = 3000, - ["fail"] = 90, - -- Uses piety to cast - ["piety"] = TRUE, - ["stat"] = A_WIS, - ["random"] = SKILL_SPIRITUALITY, - ["spell"] = function() return melkor_mind_steal() end, - ["info"] = function() return melkor_mind_steal_info() end, - ["desc"] = { - "It allows your spirit to temporarily leave your own body, which will", - "be vulnerable, to control one of your enemies body." - } -} diff --git a/lib/mods/theme/scpt/s_meta.lua b/lib/mods/theme/scpt/s_meta.lua deleted file mode 100644 index 9040e3af..00000000 --- a/lib/mods/theme/scpt/s_meta.lua +++ /dev/null @@ -1,104 +0,0 @@ --- handle the meta school - -RECHARGE = add_spell -{ - ["name"] = "Recharge", - ["school"] = {SCHOOL_META}, - ["level"] = 5, - ["mana"] = 10, - ["mana_max"] = 100, - ["fail"] = 20, - ["spell"] = function() return meta_recharge() end, - ["info"] = function() return meta_recharge_info() end, - ["desc"] = { - "Taps on the ambient mana to recharge an object's power (charges or mana)", - } -} - -SPELLBINDER = add_spell -{ - ["name"] = "Spellbinder", - ["school"] = {SCHOOL_META}, - ["level"] = 20, - ["mana"] = 100, - ["mana_max"] = 300, - ["fail"] = 85, - ["spell"] = function() return meta_spellbinder() end, - ["info"] = function() return meta_spellbinder_info() end, - ["desc"] = { - "Stores spells in a trigger.", - "When the condition is met all spells fire off at the same time", - "This spell takes a long time to cast so you are advised to prepare it", - "in a safe area.", - "Also it will use the mana for the Spellbinder and the mana for the", - "selected spells" - } -} - -DISPERSEMAGIC = add_spell -{ - ["name"] = "Disperse Magic", - ["school"] = {SCHOOL_META}, - ["level"] = 15, - ["mana"] = 30, - ["mana_max"] = 60, - ["fail"] = 40, - -- Unnafected by blindness - ["blind"] = FALSE, - -- Unnafected by confusion - ["confusion"] = FALSE, - ["stick"] = - { - ["charge"] = { 5, 5 }, - [TV_WAND] = - { - ["rarity"] = 25, - ["base_level"] = { 1, 15 }, - ["max_level"] = { 5, 40 }, - }, - }, - ["inertia"] = { 1, 5 }, - ["spell"] = function() return meta_disperse_magic() end, - ["info"] = function() return meta_disperse_magic_info() end, - ["desc"] = { - "Dispels a lot of magic that can affect you, be it good or bad", - "Level 1: blindness and light", - "Level 5: confusion and hallucination", - "Level 10: speed (both bad or good) and light speed", - "Level 15: stunning, meditation, cuts", - "Level 20: hero, super hero, bless, shields, afraid, parasites, mimicry", - } -} - -TRACKER = add_spell -{ - ["name"] = "Tracker", - ["school"] = {SCHOOL_META, SCHOOL_CONVEYANCE}, - ["level"] = 30, - ["mana"] = 50, - ["mana_max"] = 50, - ["fail"] = 95, - ["spell"] = function() return meta_tracker() end, - ["info"] = function() return meta_tracker_info() end, - ["desc"] = { - "Tracks down the last teleportation that happened on the level and teleports", - "you to it", - } -} - -INERTIA_CONTROL = add_spell -{ - ["name"] = "Inertia Control", - ["school"] = {SCHOOL_META}, - ["level"] = 37, - ["mana"] = 300, - ["mana_max"] = 700, - ["fail"] = 95, - ["spell"] = function() return meta_inertia_control() end, - ["info"] = function() return meta_inertia_control_info() end, - ["desc"] = { - "Changes the energy flow of a spell to be continuously recasted", - "at a given interval. The inertia controlled spell reduces your", - "maximum mana by four times its cost.", - } -} diff --git a/lib/mods/theme/scpt/s_mind.lua b/lib/mods/theme/scpt/s_mind.lua deleted file mode 100644 index 7f24709b..00000000 --- a/lib/mods/theme/scpt/s_mind.lua +++ /dev/null @@ -1,88 +0,0 @@ --- handle the mind school - -CHARM = add_spell -{ - ["name"] = "Charm", - ["school"] = {SCHOOL_MIND}, - ["level"] = 1, - ["mana"] = 1, - ["mana_max"] = 20, - ["fail"] = 10, - ["stick"] = - { - ["charge"] = { 7, 5 }, - [TV_WAND] = - { - ["rarity"] = 35, - ["base_level"] = { 1, 15 }, - ["max_level"] = { 20, 40 }, - }, - }, - ["spell"] = function() return mind_charm() end, - ["info"] = function() return mind_charm_info() end, - ["desc"] = { - "Tries to manipulate the mind of a monster to make it friendly", - "At level 15 it turns into a ball", - "At level 35 it affects all monsters in sight" - } -} - -CONFUSE = add_spell -{ - ["name"] = "Confuse", - ["school"] = {SCHOOL_MIND}, - ["level"] = 5, - ["mana"] = 5, - ["mana_max"] = 30, - ["fail"] = 20, - ["stick"] = - { - ["charge"] = { 3, 4 }, - [TV_WAND] = - { - ["rarity"] = 45, - ["base_level"] = { 1, 5 }, - ["max_level"] = { 20, 40 }, - }, - }, - ["spell"] = function() return mind_confuse() end, - ["info"] = function() return mind_confuse_info() end, - ["desc"] = { - "Tries to manipulate the mind of a monster to confuse it", - "At level 15 it turns into a ball", - "At level 35 it affects all monsters in sight" - } -} - -ARMOROFFEAR = add_spell -{ - ["name"] = "Armor of Fear", - ["school"] = SCHOOL_MIND, - ["level"] = 10, - ["mana"] = 10, - ["mana_max"] = 50, - ["fail"] = 35, - ["inertia"] = { 2, 20 }, - ["spell"] = function() return mind_armor_of_fear() end, - ["info"] = function() return mind_armor_of_fear_info() end, - ["desc"] = { - "Creates a shield of pure fear around you. Any monster attempting to hit you", - "must save or flee", - } -} - -STUN = add_spell -{ - ["name"] = "Stun", - ["school"] = {SCHOOL_MIND}, - ["level"] = 15, - ["mana"] = 10, - ["mana_max"] = 90, - ["fail"] = 45, - ["spell"] = function() return mind_stun() end, - ["info"] = function() return mind_stun_info() end, - ["desc"] = { - "Tries to manipulate the mind of a monster to stun it", - "At level 20 it turns into a ball", - } -} diff --git a/lib/mods/theme/scpt/s_music.lua b/lib/mods/theme/scpt/s_music.lua deleted file mode 100644 index 45255485..00000000 --- a/lib/mods/theme/scpt/s_music.lua +++ /dev/null @@ -1,268 +0,0 @@ --- handle the music school --- *ALL* lasting spell must return the mana cost in the lasting function - -MUSIC_STOP = add_spell -{ - ["name"] = "Stop singing(I)", - ["school"] = {SCHOOL_MUSIC}, - ["level"] = 1, - ["mana"] = 0, - ["mana_max"] = 0, - ["fail"] = -400, - ["stat"] = A_CHR, - ["random"] = SKILL_MUSIC, - ["pval"] = 1, - ["blind"] = FALSE, - ["spell"] = function() return music_stop_singing_spell() end, - ["info"] = function() return music_stop_singing_info() end, - ["desc"] = { - "Stops the current song, if any." - } -} - ---- Drums -MUSIC_HOLD = add_spell -{ - ["name"] = "Holding Pattern(I)", - ["school"] = {SCHOOL_MUSIC}, - ["level"] = 1, - ["mana"] = 1, - ["mana_max"] = 10, - ["fail"] = 20, - ["stat"] = A_CHR, - ["random"] = SKILL_MUSIC, - ["pval"] = 1, - ["blind"] = FALSE, - ["lasting"] = function() return music_holding_pattern_lasting() end, - ["spell"] = function() return music_holding_pattern_spell() end, - ["info"] = function() return music_holding_pattern_info() end, - ["desc"] = { - "Slows down all monsters listening the song.", - "Consumes the amount of mana each turn.", - } -} - -MUSIC_CONF = add_spell -{ - ["name"] = "Illusion Pattern(II)", - ["school"] = {SCHOOL_MUSIC}, - ["level"] = 5, - ["mana"] = 2, - ["mana_max"] = 15, - ["fail"] = 30, - ["stat"] = A_CHR, - ["random"] = SKILL_MUSIC, - ["pval"] = 2, - ["blind"] = FALSE, - ["lasting"] = function() return music_illusion_pattern_lasting() end, - ["spell"] = function() return music_illusion_pattern_spell() end, - ["info"] = function() return music_illusion_pattern_info() end, - ["desc"] = { - "Tries to confuse all monsters listening the song.", - "Consumes the amount of mana each turn.", - } -} - -MUSIC_STUN = add_spell -{ - ["name"] = "Stun Pattern(IV)", - ["school"] = {SCHOOL_MUSIC}, - ["level"] = 10, - ["mana"] = 3, - ["mana_max"] = 25, - ["fail"] = 45, - ["stat"] = A_CHR, - ["random"] = SKILL_MUSIC, - ["pval"] = 4, - ["blind"] = FALSE, - ["lasting"] = function() return music_stun_pattern_lasting() end, - ["spell"] = function() return music_stun_pattern_spell() end, - ["info"] = function() return music_stun_pattern_info() end, - ["desc"] = { - "Stuns all monsters listening the song.", - "Consumes the amount of mana each turn.", - } -} - ---- Harps -MUSIC_LITE = add_spell -{ - ["name"] = "Song of the Sun(I)", - ["school"] = {SCHOOL_MUSIC}, - ["level"] = 1, - ["mana"] = 1, - ["mana_max"] = 1, - ["fail"] = 20, - ["stat"] = A_CHR, - ["random"] = SKILL_MUSIC, - ["blind"] = FALSE, - ["pval"] = 1, - ["lasting"] = function() return music_song_of_the_sun_lasting() end, - ["spell"] = function() return music_song_of_the_sun_spell() end, - ["info"] = function() return music_song_of_the_sun_info() end, - ["desc"] = { - "Provides light as long as you sing.", - "Consumes the amount of mana each turn.", - } -} - -MUSIC_HEAL = add_spell -{ - ["name"] = "Flow of Life(II)", - ["school"] = {SCHOOL_MUSIC}, - ["level"] = 7, - ["mana"] = 5, - ["mana_max"] = 30, - ["fail"] = 35, - ["stat"] = A_CHR, - ["random"] = SKILL_MUSIC, - ["pval"] = 2, - ["lasting"] = function() return music_flow_of_life_lasting() end, - ["spell"] = function() return music_flow_of_life_spell() end, - ["info"] = function() return music_flow_of_life_info() end, - ["desc"] = { - "Heals you as long as you sing.", - "Consumes the amount of mana each turn.", - } -} - -MUSIC_HERO = add_spell -{ - ["name"] = "Heroic Ballad(II)", - ["school"] = {SCHOOL_MUSIC}, - ["level"] = 10, - ["mana"] = 4, - ["mana_max"] = 14, - ["fail"] = 45, - ["stat"] = A_CHR, - ["random"] = SKILL_MUSIC, - ["pval"] = 2, - ["lasting"] = function() return music_heroic_ballad_lasting() end, - ["spell"] = function() return music_heroic_ballad_spell() end, - ["info"] = function() return music_heroic_ballad_info() end, - ["desc"] = { - "Increases melee accuracy", - "At level 10 it increases it even more and reduces armour a bit", - "At level 20 it increases it again", - "At level 25 it grants protection against chaos and confusion", - "Consumes the amount of mana each turn.", - } -} - -MUSIC_TIME = add_spell -{ - ["name"] = "Hobbit Melodies(III)", - ["school"] = {SCHOOL_MUSIC}, - ["level"] = 20, - ["mana"] = 10, - ["mana_max"] = 30, - ["fail"] = 70, - ["stat"] = A_CHR, - ["random"] = SKILL_MUSIC, - ["pval"] = 3, - ["lasting"] = function() return music_hobbit_melodies_lasting() end, - ["spell"] = function() return music_hobbit_melodies_spell() end, - ["info"] = function() return music_hobbit_melodies_info() end, - ["desc"] = { - "Greatly increases your reflexes allowing you to block more melee blows.", - "At level 15 it also makes you faster.", - "Consumes the amount of mana each turn.", - } -} - -MUSIC_MIND = add_spell -{ - ["name"] = "Clairaudience(IV)", - ["school"] = {SCHOOL_MUSIC}, - ["level"] = 25, - ["mana"] = 15, - ["mana_max"] = 30, - ["fail"] = 75, - ["stat"] = A_CHR, - ["random"] = SKILL_MUSIC, - ["pval"] = 4, - ["lasting"] = function() return music_clairaudience_lasting() end, - ["spell"] = function() return music_clairaudience_spell() end, - ["info"] = function() return music_clairaudience_info() end, - ["desc"] = { - "Allows you to sense monster minds as long as you sing.", - "At level 10 it identifies all objects in a radius on the floor,", - "as well as probing monsters in that radius.", - "Consumes the amount of mana each turn.", - } -} - ---- Horns - -MUSIC_BLOW = add_spell -{ - ["name"] = "Blow(I)", - ["school"] = {SCHOOL_MUSIC}, - ["level"] = 4, - ["mana"] = 3, - ["mana_max"] = 30, - ["fail"] = 20, - ["stat"] = A_CHR, - ["random"] = SKILL_MUSIC, - ["pval"] = 1, - ["spell"] = function() return music_blow_spell() end, - ["info"] = function() return music_blow_info() end, - ["desc"] = { - "Produces a powerful, blowing, sound all around you.", - } -} - -MUSIC_WIND = add_spell -{ - ["name"] = "Gush of Wind(II)", - ["school"] = {SCHOOL_MUSIC}, - ["level"] = 14, - ["mana"] = 15, - ["mana_max"] = 45, - ["fail"] = 30, - ["stat"] = A_CHR, - ["random"] = SKILL_MUSIC, - ["pval"] = 2, - ["spell"] = function() return music_gush_of_wind_spell() end, - ["info"] = function() return music_gush_of_wind_info() end, - ["desc"] = { - "Produces a outgoing gush of wind that sends monsters away.", - } -} - -MUSIC_YLMIR = add_spell -{ - ["name"] = "Horns of Ylmir(III)", - ["school"] = {SCHOOL_MUSIC}, - ["level"] = 20, - ["mana"] = 25, - ["mana_max"] = 30, - ["fail"] = 20, - ["stat"] = A_CHR, - ["random"] = SKILL_MUSIC, - ["pval"] = 3, - ["spell"] = function() return music_horns_of_ylmir_spell() end, - ["info"] = function() return music_horns_of_ylmir_info() end, - ["desc"] = { - "Produces an earth shaking sound.", - } -} - -MUSIC_AMBARKANTA = add_spell -{ - ["name"] = "Ambarkanta(IV)", - ["school"] = {SCHOOL_MUSIC}, - ["level"] = 25, - ["mana"] = 70, - ["mana_max"] = 70, - ["fail"] = 60, - ["stat"] = A_CHR, - ["random"] = SKILL_MUSIC, - ["pval"] = 4, - ["spell"] = function() return music_ambarkanta_spell() end, - ["info"] = function() return music_ambarkanta_info() end, - ["desc"] = { - "Produces a reality shaking sound that transports you to a nearly", - "identical reality.", - } -} diff --git a/lib/mods/theme/scpt/s_nature.lua b/lib/mods/theme/scpt/s_nature.lua deleted file mode 100644 index e41a6990..00000000 --- a/lib/mods/theme/scpt/s_nature.lua +++ /dev/null @@ -1,138 +0,0 @@ --- handle the nature school - -GROWTREE = add_spell -{ - ["name"] = "Grow Trees", - ["school"] = {SCHOOL_NATURE, SCHOOL_TEMPORAL}, - ["level"] = 6, - ["mana"] = 6, - ["mana_max"] = 30, - ["fail"] = 35, - ["inertia"] = { 5, 50 }, - ["spell"] = function() return nature_grow_trees() end, - ["info"] = function() return nature_grow_trees_info() end, - ["desc"] = { - "Makes trees grow extremely quickly around you", - } -} - -HEALING = add_spell -{ - ["name"] = "Healing", - ["school"] = {SCHOOL_NATURE}, - ["level"] = 10, - ["mana"] = 15, - ["mana_max"] = 50, - ["fail"] = 45, - ["stick"] = - { - ["charge"] = { 2, 3 }, - [TV_STAFF] = - { - ["rarity"] = 90, - ["base_level"] = { 1, 5 }, - ["max_level"] = { 20, 40 }, - }, - }, - ["spell"] = function() return nature_healing() end, - ["info"] = function() return nature_healing_info() end, - ["desc"] = { - "Heals a percent of hitpoints", - } -} - -RECOVERY = add_spell -{ - ["name"] = "Recovery", - ["school"] = {SCHOOL_NATURE}, - ["level"] = 15, - ["mana"] = 10, - ["mana_max"] = 25, - ["fail"] = 60, - ["stick"] = - { - ["charge"] = { 5, 10 }, - [TV_STAFF] = - { - ["rarity"] = 50, - ["base_level"] = { 1, 5 }, - ["max_level"] = { 10, 30 }, - }, - }, - ["inertia"] = { 2, 100 }, - ["spell"] = function() return nature_recovery() end, - ["info"] = function() return nature_recovery_info() end, - ["desc"] = { - "Reduces the length of time that you are poisoned", - "At level 5 it cures poison and cuts", - "At level 10 it restores drained stats", - "At level 15 it restores lost experience" - } -} - -REGENERATION = add_spell -{ - ["name"] = "Regeneration", - ["school"] = {SCHOOL_NATURE}, - ["level"] = 20, - ["mana"] = 30, - ["mana_max"] = 55, - ["fail"] = 70, - ["inertia"] = { 4, 40 }, - ["spell"] = function() return nature_regeneration() end, - ["info"] = function() return nature_regeneration_info() end, - ["desc"] = { - "Increases your body's regeneration rate", - } -} - - -SUMMONANNIMAL = add_spell -{ - ["name"] = "Summon Animal", - ["school"] = {SCHOOL_NATURE}, - ["level"] = 25, - ["mana"] = 25, - ["mana_max"] = 50, - ["fail"] = 90, - ["stick"] = - { - ["charge"] = { 1, 3 }, - [TV_WAND] = - { - ["rarity"] = 85, - ["base_level"] = { 1, 5 }, - ["max_level"] = { 15, 45 }, - }, - }, - ["spell"] = function() return nature_summon_animal() end, - ["info"] = function() return nature_summon_animal_info() end, - ["desc"] = { - "Summons a leveled animal to your aid", - } -} - --- From T-Plus -GROW_ATHELAS = add_spell { - ["name"] = "Grow Athelas", - ["school"] = {SCHOOL_NATURE}, - ["level"] = 30, - ["mana"] = 60, - ["mana_max"] = 100, - ["fail"] = 95, - ["stick"] = - { - ["charge"] = { 1, 3 }, - [TV_WAND] = - { - ["rarity"] = 85, - ["base_level"] = { 1, 5 }, - ["max_level"] = { 15, 45 }, - }, - }, - ["spell"] = function() return nature_grow_athelas() end, - ["info"] = function() return nature_grow_athelas_info() end, - ["desc"] = { - "Cures the Black Breath", - } -} diff --git a/lib/mods/theme/scpt/s_stick.lua b/lib/mods/theme/scpt/s_stick.lua deleted file mode 100644 index 554ca045..00000000 --- a/lib/mods/theme/scpt/s_stick.lua +++ /dev/null @@ -1,290 +0,0 @@ --- Spells that are stick or artifacts/... only - -DEVICE_HEAL_MONSTER = add_spell -{ - ["name"] = "Heal Monster", - ["school"] = {SCHOOL_DEVICE}, - ["level"] = 3, - ["mana"] = 5, - ["mana_max"] = 20, - ["fail"] = 15, - ["random"] = -1, - ["stick"] = - { - ["charge"] = { 10, 10 }, - [TV_WAND] = - { - ["rarity"] = 17, - ["base_level"] = { 1, 15 }, - ["max_level"] = { 20, 50 }, - }, - }, - ["spell"] = function() return device_heal_monster() end, - ["info"] = function() return device_heal_monster_info() end, - ["desc"] = { - "Heals a monster", - } -} - -DEVICE_SPEED_MONSTER = add_spell -{ - ["name"] = "Haste Monster", - ["school"] = {SCHOOL_DEVICE}, - ["level"] = 10, - ["mana"] = 10, - ["mana_max"] = 10, - ["fail"] = 30, - ["random"] = -1, - ["stick"] = - { - ["charge"] = { 10, 5 }, - [TV_WAND] = - { - ["rarity"] = 7, - ["base_level"] = { 1, 1 }, - ["max_level"] = { 20, 50 }, - }, - }, - ["spell"] = function() return device_haste_monster() end, - ["info"] = function() return device_haste_monster_info() end, - ["desc"] = { - "Haste a monster", - } -} - -DEVICE_WISH = add_spell -{ - ["name"] = "Wish", - ["school"] = {SCHOOL_DEVICE}, - ["level"] = 50, - ["mana"] = 400, - ["mana_max"] = 400, - ["fail"] = 99, - ["random"] = -1, - ["stick"] = - { - ["charge"] = { 1, 2 }, - [TV_STAFF] = - { - ["rarity"] = 98, - ["base_level"] = { 1, 1 }, - ["max_level"] = { 1, 1 }, - }, - }, - ["spell"] = function() return device_wish() end, - ["info"] = function() return device_wish_info() end, - ["desc"] = { - "This grants you a wish, beware of what you ask for!", - } -} - -DEVICE_SUMMON = add_spell -{ - ["name"] = "Summon", - ["school"] = {SCHOOL_DEVICE}, - ["level"] = 5, - ["mana"] = 5, - ["mana_max"] = 25, - ["fail"] = 20, - ["random"] = -1, - ["stick"] = - { - ["charge"] = { 1, 20 }, - [TV_STAFF] = - { - ["rarity"] = 13, - ["base_level"] = { 1, 40 }, - ["max_level"] = { 25, 50 }, - }, - }, - ["spell"] = function() return device_summon_monster() end, - ["info"] = function() return device_summon_monster_info() end, - ["desc"] = { - "Summons hostile monsters near you", - } -} - -DEVICE_MANA = add_spell -{ - ["name"] = "Mana", - ["school"] = {SCHOOL_DEVICE}, - ["level"] = 30, - ["mana"] = 1, - ["mana_max"] = 1, - ["fail"] = 80, - ["random"] = -1, - ["stick"] = - { - ["charge"] = { 2, 3 }, - [TV_STAFF] = - { - ["rarity"] = 78, - ["base_level"] = { 1, 5 }, - ["max_level"] = { 20, 35 }, - }, - }, - ["spell"] = function() return device_mana() end, - ["info"] = function() return device_mana_info() end, - ["desc"] = { - "Restores a part(or all) of your mana", - } -} - -DEVICE_NOTHING = add_spell -{ - ["name"] = "Nothing", - ["school"] = {SCHOOL_DEVICE}, - ["level"] = 1, - ["mana"] = 0, - ["mana_max"] = 0, - ["fail"] = 0, - ["random"] = -1, - ["stick"] = - { - ["charge"] = { 0, 0 }, - [TV_WAND] = - { - ["rarity"] = 3, - ["base_level"] = { 1, 1 }, - ["max_level"] = { 1, 1 }, - }, - [TV_STAFF] = - { - ["rarity"] = 3, - ["base_level"] = { 1, 1 }, - ["max_level"] = { 1, 1}, - }, - }, - ["spell"] = function() return device_nothing() end, - ["info"] = function() return device_nothing_info() end, - ["desc"] = { - "It does nothing.", - } -} - -DEVICE_MAGGOT = add_spell -{ - ["name"] = "Artifact Maggot", - ["school"] = {SCHOOL_DEVICE}, - ["level"] = 1, - ["mana"] = 7, - ["mana_max"] = 7, - ["fail"] = 20, - ["random"] = -1, - ["activate"] = { 10, 50 }, - ["spell"] = function() return device_maggot() end, - ["info"] = function() return device_maggot_info() end, - ["desc"] = { - "terrify", - } -} - -DEVICE_HOLY_FIRE = add_spell -{ - ["name"] = "Holy Fire of Mithrandir", - ["school"] = {SCHOOL_DEVICE}, - ["level"] = 30, - ["mana"] = 50, - ["mana_max"] = 150, - ["fail"] = 75, - ["random"] = -1, - ["stick"] = - { - ["charge"] = { 2, 5 }, - [TV_STAFF] = - { - -- Rarity higher than 100 to be sure to not have it generated randomly - ["rarity"] = 999, - ["base_level"] = { 1, 1 }, - ["max_level"] = { 35, 35 }, - }, - }, - ["spell"] = function() return device_holy_fire() end, - ["info"] = function() return device_holy_fire_info() end, - ["desc"] = { - "The Holy Fire created by this staff will deeply(double damage) burn", - "all that is evil.", - } -} - --- Ok the Eternal Flame, to craete one of the 4 ultimate arts --- needed to enter the last level of the Void -DEVICE_ETERNAL_FLAME = add_spell -{ - ["name"] = "Artifact Eternal Flame", - ["school"] = {SCHOOL_DEVICE}, - ["level"] = 1, - ["mana"] = 0, - ["mana_max"] = 0, - ["fail"] = 0, - ["random"] = -1, - ["activate"] = { 0, 0 }, - ["spell"] = function(flame_item) return device_eternal_flame(flame_item) end, - ["info"] = function() return "" end, - ["desc"] = { - "Imbuing an object with the eternal fire", - } -} - -DEVICE_THUNDERLORDS = add_spell -{ - ["name"] = "Artifact Thunderlords", - ["school"] = {SCHOOL_DEVICE}, - ["level"] = 1, - ["mana"] = 1, - ["mana_max"] = 1, - ["fail"] = 20, - ["random"] = -1, - ["stick"] = - { - ["charge"] = { 5, 5 }, - [TV_STAFF] = - { - -- Rarity higher than 100 to be sure to not have it generated randomly - ["rarity"] = 999, - ["base_level"] = { 1, 1 }, - ["max_level"] = { 1, 1 }, - }, - }, - ["spell"] = function() return device_thunderlords() end, - ["info"] = function() return device_thunderlords_info() end, - ["desc"] = { - "An Eagle of Manwe will appear to transport you quickly to the town.", - } -} - --- Two new spells from T-Plus by Ingeborg S. Norden, for artifact activations: - -DEVICE_RADAGAST = add_spell -{ - ["name"] = "Artifact Radagast", - ["school"] = {SCHOOL_DEVICE}, - ["level"] = 1, - ["mana"] = 0, - ["mana_max"] = 0, - ["fail"] = 10, - ["random"] = -1, - ["activate"] = { 15000, 0 }, - ["spell"] = function() return device_radagast() end, - ["info"] = function() return device_radagast_info() end, - ["desc"] = { - "purity and health", - } -} - -DEVICE_VALAROMA = add_spell -{ - ["name"] = "Artifact Valaroma", - ["school"] = {SCHOOL_DEVICE}, - ["level"] = 1, - ["mana"] = 0, - ["mana_max"] = 0, - ["fail"] = 25, - ["random"] = -1, - ["activate"] = { 250, 0 }, - ["spell"] = function() return device_valaroma() end, - ["info"] = function() return device_valaroma_info() end, - ["desc"] = { - "banish evil (level x5)", - } -} diff --git a/lib/mods/theme/scpt/s_tempo.lua b/lib/mods/theme/scpt/s_tempo.lua deleted file mode 100644 index 76026745..00000000 --- a/lib/mods/theme/scpt/s_tempo.lua +++ /dev/null @@ -1,109 +0,0 @@ --- Handles thhe temporal school - - -MAGELOCK = add_spell -{ - ["name"] = "Magelock", - ["school"] = {SCHOOL_TEMPORAL}, - ["level"] = 1, - ["mana"] = 1, - ["mana_max"] = 35, - ["fail"] = 10, - ["stick"] = - { - ["charge"] = { 7, 5 }, - [TV_WAND] = - { - ["rarity"] = 30, - ["base_level"] = { 1, 5 }, - ["max_level"] = { 15, 45 }, - }, - }, - ["spell"] = function() return tempo_magelock() end, - ["info"] = function() return tempo_magelock_info() end, - ["desc"] = { - "Magically locks a door", - "At level 30 it creates a glyph of warding", - "At level 40 the glyph can be placed anywhere in the field of vision" - } -} - -SLOWMONSTER = add_spell -{ - ["name"] = "Slow Monster", - ["school"] = {SCHOOL_TEMPORAL}, - ["level"] = 10, - ["mana"] = 10, - ["mana_max"] = 15, - ["fail"] = 35, - ["stick"] = - { - ["charge"] = { 5, 5 }, - [TV_WAND] = - { - ["rarity"] = 23, - ["base_level"] = { 1, 15 }, - ["max_level"] = { 20, 50 }, - }, - }, - ["spell"] = function() return tempo_slow_monster() end, - ["info"] = function() return tempo_slow_monster_info() end, - ["desc"] = { - "Magically slows down the passing of time around a monster", - "At level 20 it affects a zone" - } -} - -ESSENCESPEED = add_spell -{ - ["name"] = "Essence of Speed", - ["school"] = {SCHOOL_TEMPORAL}, - ["level"] = 15, - ["mana"] = 20, - ["mana_max"] = 40, - ["fail"] = 50, - ["stick"] = - { - ["charge"] = { 3, 3 }, - [TV_WAND] = - { - ["rarity"] = 80, - ["base_level"] = { 1, 1 }, - ["max_level"] = { 10, 39 }, - }, - }, - ["inertia"] = { 5, 20 }, - ["spell"] = function() return tempo_essence_of_speed() end, - ["info"] = function() return tempo_essence_of_speed_info() end, - ["desc"] = { - "Magically decreases the passing of time around you, making you move faster with", - "respect to the rest of the universe." - } -} - -BANISHMENT = add_spell -{ - ["name"] = "Banishment", - ["school"] = {SCHOOL_TEMPORAL, SCHOOL_CONVEYANCE}, - ["level"] = 30, - ["mana"] = 30, - ["mana_max"] = 40, - ["fail"] = 95, - ["stick"] = - { - ["charge"] = { 1, 3 }, - [TV_WAND] = - { - ["rarity"] = 98, - ["base_level"] = { 1, 15 }, - ["max_level"] = { 10, 36 }, - }, - }, - ["inertia"] = { 5, 50 }, - ["spell"] = function() return tempo_banishment() end, - ["info"] = function() return tempo_banishment_info() end, - ["desc"] = { - "Disrupts the space/time continuum in your area and teleports all monsters away.", - "At level 15 it may also lock them in a time bubble for a while." - } -} diff --git a/lib/mods/theme/scpt/s_tulkas.lua b/lib/mods/theme/scpt/s_tulkas.lua deleted file mode 100644 index 6659aee9..00000000 --- a/lib/mods/theme/scpt/s_tulkas.lua +++ /dev/null @@ -1,59 +0,0 @@ --- Handle Tulkas magic school - -TULKAS_AIM = add_spell -{ - ["name"] = "Divine Aim", - ["school"] = {SCHOOL_TULKAS}, - ["level"] = 1, - ["mana"] = 30, - ["mana_max"] = 500, - ["fail"] = 20, - -- Uses piety to cast - ["piety"] = TRUE, - ["stat"] = A_WIS, - ["random"] = SKILL_SPIRITUALITY, - ["spell"] = function() return tulkas_divine_aim() end, - ["info"] = function() return tulkas_divine_aim_info() end, - ["desc"] = { - "It makes you more accurate in combat", - "At level 20 all your blows are critical hits", - } -} - -TULKAS_WAVE = add_spell -{ - ["name"] = "Wave of Power", - ["school"] = {SCHOOL_TULKAS}, - ["level"] = 20, - ["mana"] = 200, - ["mana_max"] = 200, - ["fail"] = 75, - -- Uses piety to cast - ["piety"] = TRUE, - ["stat"] = A_WIS, - ["random"] = SKILL_SPIRITUALITY, - ["spell"] = function() return tulkas_wave_of_power() end, - ["info"] = function() return tulkas_wave_of_power_info() end, - ["desc"] = { - "It allows you to project a number of melee blows across a distance", - } -} - -TULKAS_SPIN = add_spell -{ - ["name"] = "Whirlwind", - ["school"] = {SCHOOL_TULKAS}, - ["level"] = 10, - ["mana"] = 100, - ["mana_max"] = 100, - ["fail"] = 45, - -- Uses piety to cast - ["piety"] = TRUE, - ["stat"] = A_WIS, - ["random"] = SKILL_SPIRITUALITY, - ["spell"] = function() return tulkas_whirlwind() end, - ["info"] = function() return tulkas_whirlwind_info() end, - ["desc"] = { - "It allows you to spin around and hit all monsters nearby", - } -} diff --git a/lib/mods/theme/scpt/s_udun.lua b/lib/mods/theme/scpt/s_udun.lua deleted file mode 100644 index bb12ac7f..00000000 --- a/lib/mods/theme/scpt/s_udun.lua +++ /dev/null @@ -1,74 +0,0 @@ --- handle the udun school - -DRAIN = add_spell -{ - ["name"] = "Drain", - ["school"] = {SCHOOL_UDUN, SCHOOL_MANA}, - ["level"] = 1, - ["mana"] = 0, - ["mana_max"] = 0, - ["fail"] = 20, - ["spell"] = function() return udun_drain() end, - ["info"] = function() return udun_drain_info() end, - ["desc"] = { - "Drains the mana contained in wands, staves and rods to increase yours", - } -} - -GENOCIDE = add_spell -{ - ["name"] = "Genocide", - ["school"] = {SCHOOL_UDUN, SCHOOL_NATURE}, - ["level"] = 25, - ["mana"] = 50, - ["mana_max"] = 50, - ["fail"] = 90, - ["stick"] = - { - ["charge"] = { 2, 2 }, - [TV_STAFF] = - { - ["rarity"] = 85, - ["base_level"] = { 1, 1 }, - ["max_level"] = { 5, 15 }, - }, - }, - ["spell"] = function() return udun_genocide() end, - ["info"] = function() return udun_genocide_info() end, - ["desc"] = { - "Genocides all monsters of a race on the level", - "At level 10 it can genocide all monsters near you" - } -} - -WRAITHFORM = add_spell -{ - ["name"] = "Wraithform", - ["school"] = {SCHOOL_UDUN, SCHOOL_CONVEYANCE}, - ["level"] = 30, - ["mana"] = 20, - ["mana_max"] = 40, - ["fail"] = 95, - ["inertia"] = { 4, 30 }, - ["spell"] = function() return udun_wraithform() end, - ["info"] = function() return udun_wraithform_info() end, - ["desc"] = { - "Turns you into an immaterial being", - } -} - -FLAMEOFUDUN = add_spell -{ - ["name"] = "Flame of Udun", - ["school"] = {SCHOOL_UDUN, SCHOOL_FIRE}, - ["level"] = 35, - ["mana"] = 70, - ["mana_max"] = 100, - ["fail"] = 95, - ["inertia"] = { 7, 15 }, - ["spell"] = function() return udun_flame_of_udun() end, - ["info"] = function() return udun_flame_of_udun_info() end, - ["desc"] = { - "Turns you into a powerful Balrog", - } -} diff --git a/lib/mods/theme/scpt/s_ulmo.lua b/lib/mods/theme/scpt/s_ulmo.lua deleted file mode 100644 index 02661ca3..00000000 --- a/lib/mods/theme/scpt/s_ulmo.lua +++ /dev/null @@ -1,89 +0,0 @@ --- Spells for Ulmo's school - -BOOK_ULMO = 65 - --- "Song of Belegaer" copied from Geyser -ULMO_BELEGAER = add_spell -{ - ["name"] = "Song of Belegaer", - ["school"] = SCHOOL_ULMO, - ["level"] = 1, - ["mana"] = 1, - ["mana_max"] = 100, - ["fail"] = 25, - ["piety"] = TRUE, - ["stat"] = A_WIS, - ["random"] = SKILL_SPIRITUALITY, - ["spell"] = function() return ulmo_song_of_belegaer_spell() end, - ["info"] = function() return ulmo_song_of_belegaer_info() end, - ["desc"] = - { - "Channels the power of the Great Sea into your fingertips.", - "Sometimes it can blast through its first target." - }, -} - --- "Draught of Ulmonan" copied with tweaks from T-Plus Nature spell "Restore Body" -ULMO_DRAUGHT_ULMONAN = add_spell -{ - ["name"] = "Draught of Ulmonan", - ["school"] = {SCHOOL_ULMO}, - ["level"] = 15, - ["mana"] = 25, - ["mana_max"] = 200, - ["fail"] = 50, - ["piety"] = TRUE, - ["stat"] = A_WIS, - ["random"] = SKILL_SPIRITUALITY, - ["spell"] = function() return ulmo_draught_of_ulmonan_spell() end, - ["info"] = function() return ulmo_draught_of_ulmonan_info() end, - ["desc"] = { - "Fills you with a draught with powerful curing effects,", - "prepared by Ulmo himself.", - "Level 1: blindness, poison, cuts and stunning", - "Level 10: drained STR, DEX and CON", - "Level 20: parasites and mimicry", - }, -} - --- "Call of the Ulumuri" based on Call Blessed Soul from T-Plus -ULMO_CALL_ULUMURI = add_spell - -{ - ["name"] = "Call of the Ulumuri", - ["school"] = {SCHOOL_ULMO}, - ["level"] = 20, - ["mana"] = 50, - ["mana_max"] = 300, - ["fail"] = 75, - ["piety"] = TRUE, - ["stat"] = A_WIS, - ["random"] = SKILL_SPIRITUALITY, - ["spell"] = function() return ulmo_call_of_the_ulumuri_spell() end, - ["info"] = function() return ulmo_call_of_the_ulumuri_info() end, - ["desc"] = { - "Summons a leveled water spirit or elemental", - "to fight for you", - - }, -} - --- "Wrath of Ulmo" based on Firewall -ULMO_WRATH = add_spell -{ - ["name"] = "Wrath of Ulmo", - ["school"] = {SCHOOL_ULMO}, - ["level"] = 30, - ["mana"] = 100, - ["mana_max"] = 400, - ["fail"] = 95, - ["piety"] = TRUE, - ["stat"] = A_WIS, - ["random"] = SKILL_SPIRITUALITY, - ["spell"] = function() return ulmo_wrath_of_ulmo_spell() end, - ["info"] = function() return ulmo_wrath_of_ulmo_info() end, - ["desc"] = { - "Conjures up a sea storm.", - "At level 30 it turns into a more forceful storm." - } -} \ No newline at end of file diff --git a/lib/mods/theme/scpt/s_varda.lua b/lib/mods/theme/scpt/s_varda.lua deleted file mode 100644 index e20ea5e9..00000000 --- a/lib/mods/theme/scpt/s_varda.lua +++ /dev/null @@ -1,83 +0,0 @@ --- Spells for Varda school (From Annals of Ea module) - -BOOK_VARDA = 64 - --- Holy light spell copied from Globe of Light -VARDA_LIGHT_VALINOR = add_spell -{ - ["name"] = "Light of Valinor", - ["school"] = {SCHOOL_VARDA}, - ["level"] = 1, - ["mana"] = 1, - ["mana_max"] = 100, - ["fail"] = 20, - ["piety"] = TRUE, - ["stat"] = A_WIS, - ["random"] = SKILL_SPIRITUALITY, - ["spell"] = function() return varda_light_of_valinor_spell() end, - ["info"] = function() return varda_light_of_valinor_info() end, - ["desc"] = { - "Lights a room", - "At level 3 it starts damaging monsters", - "At level 15 it starts creating a more powerful kind of light", - } -} - -VARDA_CALL_ALMAREN = add_spell -{ - ["name"] = "Call of Almaren", - ["school"] = {SCHOOL_VARDA}, - ["level"] = 10, - ["mana"] = 5, - ["mana_max"] = 150, - ["fail"] = 20, - ["piety"] = TRUE, - ["stat"] = A_WIS, - ["random"] = SKILL_SPIRITUALITY, - ["spell"] = function() return varda_call_of_almaren_spell() end, - ["info"] = function() return varda_call_of_almaren_info() end, - ["desc"] = { - "Banishes evil beings", - "At level 20 it dispels evil beings", - } -} - -VARDA_EVENSTAR = add_spell -{ - ["name"] = "Evenstar", - ["school"] = {SCHOOL_VARDA}, - ["level"] = 20, - ["mana"] = 20, - ["mana_max"] = 200, - ["fail"] = 20, - ["piety"] = TRUE, - ["stat"] = A_WIS, - ["random"] = SKILL_SPIRITUALITY, - ["spell"] = function() return varda_evenstar_spell() end, - ["info"] = function() return varda_evenstar_info() end, - ["desc"] = { - "Maps and lights the whole level.", - "At level 40 it maps and lights the whole level,", - "in addition to letting you know yourself better", - "and identifying your whole pack.", - } -} - -VARDA_STARKINDLER = add_spell -{ - ["name"] = "Star Kindler", - ["school"] = {SCHOOL_VARDA}, - ["level"] = 30, - ["mana"] = 50, - ["mana_max"] = 250, - ["fail"] = 20, - ["piety"] = TRUE, - ["stat"] = A_WIS, - ["random"] = SKILL_SPIRITUALITY, - ["spell"] = function() return varda_star_kindler_spell() end, - ["info"] = function() return varda_star_kindler_info() end, - ["desc"] = { - "Does multiple bursts of light damage.", - "The damage increases with level.", - } -} diff --git a/lib/mods/theme/scpt/s_water.lua b/lib/mods/theme/scpt/s_water.lua deleted file mode 100644 index 46942c5d..00000000 --- a/lib/mods/theme/scpt/s_water.lua +++ /dev/null @@ -1,106 +0,0 @@ --- handle the water school - -TIDALWAVE = add_spell -{ - ["name"] = "Tidal Wave", - ["school"] = {SCHOOL_WATER}, - ["level"] = 16, - ["mana"] = 16, - ["mana_max"] = 40, - ["fail"] = 65, - ["stick"] = - { - ["charge"] = { 6, 5 }, - [TV_WAND] = - { - ["rarity"] = 54, - ["base_level"] = { 1, 10 }, - ["max_level"] = { 20, 50 }, - }, - }, - ["inertia"] = { 4, 100 }, - ["spell"] = function() return water_tidal_wave() end, - ["info"] = function() return water_tidal_wave_info() end, - ["desc"] = { - "Summons a monstrous tidal wave that will expand and crush the", - "monsters under its mighty waves." - } -} - -ICESTORM = add_spell -{ - ["name"] = "Ice Storm", - ["school"] = {SCHOOL_WATER}, - ["level"] = 22, - ["mana"] = 30, - ["mana_max"] = 60, - ["fail"] = 80, - ["stick"] = - { - ["charge"] = { 3, 7 }, - [TV_WAND] = - { - ["rarity"] = 65, - ["base_level"] = { 1, 5 }, - ["max_level"] = { 25, 45 }, - }, - }, - ["inertia"] = { 3, 40 }, - ["spell"] = function() return water_ice_storm() end, - ["info"] = function() return water_ice_storm_info() end, - ["desc"] = { - "Engulfs you in a storm of roaring cold that strikes your foes.", - "At level 10 it turns into shards of ice." - } -} - -ENTPOTION = add_spell -{ - ["name"] = "Ent's Potion", - ["school"] = {SCHOOL_WATER}, - ["level"] = 6, - ["mana"] = 7, - ["mana_max"] = 15, - ["fail"] = 35, - ["inertia"] = { 1, 30 }, - ["spell"] = function() return water_ent_potion() end, - ["info"] = function() return water_ent_potion_info() end, - ["desc"] = { - "Fills up your stomach.", - "At level 5 it boldens your heart.", - "At level 12 it makes you heroic." - } -} - -VAPOR = add_spell -{ - ["name"] = "Vapor", - ["school"] = {SCHOOL_WATER}, - ["level"] = 2, - ["mana"] = 2, - ["mana_max"] = 12, - ["fail"] = 20, - ["inertia"] = { 1, 30 }, - ["spell"] = function() return water_vapor() end, - ["info"] = function() return water_vapor_info() end, - ["desc"] = { - "Fills the air with toxic moisture to eradicate annoying critters." - } -} - -GEYSER = add_spell -{ - ["name"] = "Geyser", - ["school"] = SCHOOL_WATER, - ["level"] = 1, - ["mana"] = 1, - ["mana_max"] = 35, - ["fail"] = 5, - ["spell"] = function() return water_geyser() end, - ["info"] = function() return water_geyser_info() end, - ["desc"] = - { - "Shoots a geyser of water from your fingertips.", - "Sometimes it can blast through its first target." - }, -} diff --git a/lib/mods/theme/scpt/s_yavann.lua b/lib/mods/theme/scpt/s_yavann.lua deleted file mode 100644 index a2b2fe1c..00000000 --- a/lib/mods/theme/scpt/s_yavann.lua +++ /dev/null @@ -1,100 +0,0 @@ --- Handle Yavanna kementari magic school - -YAVANNA_CHARM_ANIMAL = add_spell -{ - ["name"] = "Charm Animal", - ["school"] = {SCHOOL_YAVANNA}, - ["level"] = 1, - ["mana"] = 10, - ["mana_max"] = 100, - ["fail"] = 30, - -- Uses piety to cast - ["piety"] = TRUE, - ["stat"] = A_WIS, - ["random"] = SKILL_SPIRITUALITY, - ["spell"] = function() return yavanna_charm_animal() end, - ["info"] = function() return yavanna_charm_animal_info() end, - ["desc"] = { - "It tries to tame an animal", - } -} - -YAVANNA_GROW_GRASS = add_spell -{ - ["name"] = "Grow Grass", - ["school"] = {SCHOOL_YAVANNA}, - ["level"] = 10, - ["mana"] = 70, - ["mana_max"] = 150, - ["fail"] = 65, - -- Uses piety to cast - ["piety"] = TRUE, - ["stat"] = A_WIS, - ["random"] = SKILL_SPIRITUALITY, - ["spell"] = function() return yavanna_grow_grass() end, - ["info"] = function() return yavanna_grow_grass_info() end, - ["desc"] = { - "Create a floor of grass around you. While on grass and praying", - "a worshipper of Yavanna will know a greater regeneration rate" - } -} - -YAVANNA_TREE_ROOTS = add_spell -{ - ["name"] = "Tree Roots", - ["school"] = {SCHOOL_YAVANNA}, - ["level"] = 15, - ["mana"] = 50, - ["mana_max"] = 1000, - ["fail"] = 70, - -- Uses piety to cast - ["piety"] = TRUE, - ["stat"] = A_WIS, - ["random"] = SKILL_SPIRITUALITY, - ["spell"] = function() return yavanna_tree_roots() end, - ["info"] = function() return yavanna_tree_roots_info() end, - ["desc"] = { - "Creates roots deep in the floor from your feet, making you more stable and able", - "to make stronger attacks, but prevents any movement (even teleportation).", - "It also makes you recover from stunning almost immediately." - } -} - -YAVANNA_WATER_BITE = add_spell -{ - ["name"] = "Water Bite", - ["school"] = {SCHOOL_YAVANNA}, - ["level"] = 20, - ["mana"] = 150, - ["mana_max"] = 300, - ["fail"] = 90, - -- Uses piety to cast - ["piety"] = TRUE, - ["stat"] = A_WIS, - ["random"] = SKILL_SPIRITUALITY, - ["spell"] = function() return yavanna_water_bite() end, - ["info"] = function() return yavanna_water_bite_info() end, - ["desc"] = { - "Imbues your melee weapon with a natural stream of water", - "At level 25, it spreads over a 1 radius zone around your target" - } -} - -YAVANNA_UPROOT = add_spell -{ - ["name"] = "Uproot", - ["school"] = {SCHOOL_YAVANNA}, - ["level"] = 35, - ["mana"] = 250, - ["mana_max"] = 350, - ["fail"] = 95, - -- Uses piety to cast - ["piety"] = TRUE, - ["stat"] = A_WIS, - ["random"] = SKILL_SPIRITUALITY, - ["spell"] = function() return yavanna_uproot() end, - ["info"] = function() return yavanna_uproot_info() end, - ["desc"] = { - "Awakes a tree to help you battle the forces of Morgoth", - } -} diff --git a/lib/mods/theme/scpt/spells.lua b/lib/mods/theme/scpt/spells.lua index eedd59ad..e37d922f 100644 --- a/lib/mods/theme/scpt/spells.lua +++ b/lib/mods/theme/scpt/spells.lua @@ -378,42 +378,8 @@ SCHOOL_MUSIC = add_school ["skill"] = SKILL_MUSIC, } --- Put some spells -tome_dofile("s_fire.lua") -tome_dofile("s_mana.lua") -tome_dofile("s_water.lua") -tome_dofile("s_air.lua") -tome_dofile("s_earth.lua") -tome_dofile("s_convey.lua") -tome_dofile("s_nature.lua") -tome_dofile("s_divin.lua") -tome_dofile("s_tempo.lua") -tome_dofile("s_meta.lua") -tome_dofile("s_mind.lua") -tome_dofile("s_udun.lua") -tome_dofile("s_geom.lua") - --- God's specific spells -tome_dofile("s_eru.lua") -tome_dofile("s_manwe.lua") -tome_dofile("s_tulkas.lua") -tome_dofile("s_melkor.lua") -tome_dofile("s_yavann.lua") - --- New gods' spells -tome_dofile("s_aule.lua") -tome_dofile("s_varda.lua") -tome_dofile("s_ulmo.lua") -tome_dofile("s_mandos.lua") - --- Specific schools -tome_dofile("s_demon.lua") - --- Device spells -tome_dofile("s_stick.lua") - --- Musics -tome_dofile("s_music.lua") +-- Initialize school spells. +school_spells_init() -- Initialize spellbooks init_school_books() -- cgit v1.2.3