From 44b83f57bd879d852d7d5c41214a5bc41a5358f8 Mon Sep 17 00:00:00 2001 From: Fate Date: Sat, 16 May 2009 16:59:52 +0000 Subject: Added T15 and T16 spells --- conf/magic.conf.template | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) (limited to 'conf') diff --git a/conf/magic.conf.template b/conf/magic.conf.template index 058ec51e..69660224 100644 --- a/conf/magic.conf.template +++ b/conf/magic.conf.template @@ -52,7 +52,7 @@ CONST SCRIPT_LASTSPELL_MASK = 0xff CONST SCRIPT_LASTSPELL_SHIFT = 16 CONST SCRIPT_HEALSPELL_MASK = 0xff CONST SCRIPT_HEALSPELL_SHIFT = 24 -CONST DEBUG = 0 +CONST DEBUG = 1 CONST ATTACK_ICON_GENERIC = 2000 CONST ATTACK_ICON_SHEARING = 2001 @@ -490,6 +490,33 @@ SPELL make-iron-powder : "#T14" = CALL create_item("IronPowder", 1 + spellpower / 140 + (random(max(1, 900 - spellpower)) / 220), "IronOre", 700); CALL gain_xp(3); +SPELL make-concentration-potion : "#T15" = + LET level = 1 + school = TRANSMUTE + IN (MANA 8, CASTTIME 5000, + REQUIRE skill(caster, MAGIC) > level, + REQUIRE skill(caster, school) > level, + COMPONENTS ["BottleOfWater", 2 * "CobaltHerb", 2 * "Petal"]) + => EFFECT CALL adjust_spellpower(school); + CALL default_effect(); + CALL create_item( if_then_else(random(2000 + experience) < experience, "ConcentrationPotion", "DarkConcentrationPotion"), 1, + if_then_else(random(2), 744, "DarkConcentrationPotion"), + 2000); + CALL gain_xp(4); + +SPELL merge-concentration-potions : "#T16" = + LET level = 1 + school = TRANSMUTE + IN (MANA 8, CASTTIME 5000, + REQUIRE skill(caster, MAGIC) > level, + REQUIRE skill(caster, school) > level, + COMPONENTS ["DarkConcentrationPotion", 744]) + => EFFECT CALL adjust_spellpower(school); + CALL default_effect(); + CALL create_item("ConcentrationPotion", 1, 744, 1000); + CALL gain_xp(4); + + SPELL lay-on-hands (target : STRING) : "#L10" = LET level = 1 school = LIFE -- cgit v1.2.3-70-g09d2