summaryrefslogtreecommitdiff
path: root/conf/magic.conf.template
diff options
context:
space:
mode:
Diffstat (limited to 'conf/magic.conf.template')
-rw-r--r--conf/magic.conf.template32
1 files changed, 16 insertions, 16 deletions
diff --git a/conf/magic.conf.template b/conf/magic.conf.template
index 931fb678..55ab9072 100644
--- a/conf/magic.conf.template
+++ b/conf/magic.conf.template
@@ -583,7 +583,7 @@ SPELL lay-on-hands (target : STRING) : "#L10" =
)
ELSE (target = pc(target);
needed = max_hp(target) - hp(target);)
-
+
pay_fraction = max(80, 200 - (vit(caster) + (spellpower / 10))); # Pay at least 40%
payment = (needed * pay_fraction) / 200;
available = hp(caster) - (max_hp(caster) / 20);
@@ -685,7 +685,7 @@ SPELL magic-knuckles : "#W12" =
REQUIRE skill(caster, MAGIC) > level,
REQUIRE skill(caster, school) > level,
(REQUIRE skill(caster, school) > 3 OR COMPONENTS ["Beer"]))
- =>
+ =>
EFFECT CALL adjust_spellpower(WAR);
str = str(caster);
CALL install_melee_spell(10 + spellpower / 10, 1300, 34);
@@ -786,13 +786,13 @@ PROCEDURE shear-drop2(target, target2, item, prob, item2, prob2) =
THEN (IF (score < prob)
THEN drop_item_for(place, item, 1, 60000, caster, 5000);
ELSE CALL shear-drop(target, target2, item2, prob2 + prob);)
-
+
PROCEDURE shear-drop3(target, target2, item, prob, item2, prob2, item3, prob3) =
IF (target = name || target2 = name)
THEN (IF (score < prob)
THEN drop_item_for(place, item, 1, 60000, caster, 5000);
ELSE CALL shear-drop2(target, target2, item2, prob2 + prob, item3, prob3 + prob);)
-
+
SPELL shear : "#N14" =
LET level = 1
@@ -823,7 +823,7 @@ SPELL shear : "#N14" =
THEN { set @value, 1; callfunc "QuestSagathaHappy"; };
)
-
+
SPELL barrier (target : PC) : "#A10" =
LET level = 1
@@ -904,7 +904,7 @@ SPELL reveal : "#G11" =
DO IF has_shroud(target) && level(caster) * 2 > level(target)
THEN (unshroud(target);
sfx(target, SFX_DEFAULT, 500);)
-
+
SPELL enchant-lifestone : "#G12" =
LET level = 1
@@ -1022,7 +1022,7 @@ SPELL fire-ball : "#W22" =
CALL elt_damage (target, (damage * 3) / divisor, (damage_bonus * 3) / divisor, ELT_WATER, ELT_FIRE, 15);
)
-SPELL summon-partner : "#A23" =
+SPELL summon-partner : "#A23" =
LET level = 2
school = ASTRAL
IN (MANA 30, CASTTIME 2000,
@@ -1055,7 +1055,7 @@ SPELL summon-partner : "#A23" =
# Level 4 spells
#--------------------------------------------------------------------------------
-SPELL shroud : "#N40" =
+SPELL shroud : "#N40" =
LET level = 4
school = NATURE
IN (MANA 40, CASTTIME 400,
@@ -1064,7 +1064,7 @@ SPELL shroud : "#N40" =
=> EFFECT CALL default_effect();
shroud(caster, 0x04);
-SPELL teleport (destination : STRING) : "#A40" =
+SPELL teleport (destination : STRING) : "#A40" =
LET level = 4
school = ASTRAL
IN (MANA 80, CASTTIME 400,
@@ -1156,27 +1156,27 @@ PROCEDURE debug_mod(name, delta) =
ELSE IF (name = "elanore-sub") THEN CALL debug_xmod("QUEST_MAGIC2", 0xf, 12, delta);
ELSE message(caster, "Unknown");
-SPELL debug-up1 (name : STRING) : "debug+1" =
+SPELL debug-up1 (name : STRING) : "debug+1" =
REQUIRE DEBUG
=> EFFECT CALL debug_mod(name, 1);
-SPELL debug-down1 (name : STRING) : "debug-1" =
+SPELL debug-down1 (name : STRING) : "debug-1" =
REQUIRE DEBUG
=> EFFECT CALL debug_mod(name, 0 - 1);
-SPELL debug-up16 (name : STRING) : "debug+16" =
+SPELL debug-up16 (name : STRING) : "debug+16" =
REQUIRE DEBUG
=> EFFECT CALL debug_mod(name, 16);
-SPELL debug-down16 (name : STRING) : "debug-16" =
+SPELL debug-down16 (name : STRING) : "debug-16" =
REQUIRE DEBUG
=> EFFECT CALL debug_mod(name, 0 - 16);
-SPELL debug-up256 (name : STRING) : "debug+256" =
+SPELL debug-up256 (name : STRING) : "debug+256" =
REQUIRE DEBUG
=> EFFECT CALL debug_mod(name, 256);
-SPELL debug-down256 (name : STRING) : "debug-256" =
+SPELL debug-down256 (name : STRING) : "debug-256" =
REQUIRE DEBUG
=> EFFECT CALL debug_mod(name, 0 - 256);
@@ -1221,7 +1221,7 @@ NONMAGIC SILENT SPELL marriage (target : PC) : "marry" =
THEN (message(caster, "You must both be wearing your wedding rings!"); ABORT;)
script_target = target;
- {
+ {
announce @caster_name$ + " is asking " + strcharinfo(0) + " for marriage.", 2;
mes @caster_name$ + " wishes to marry you.";
mes "Do you accept?";