Crossfire Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CF: Darkness spell fix



This patch is now in the CVS tree.  I had already sent it to this list
a while ago but it wasn't applied at that time.


server/spell_effect.c: magic_wall():  Duration of darkness spell now
implemented with op->stats.food.  This avoids problems with very low
speed values that were interpreted as infinite duration.
lib/spell_params:  Changed duration parameters of darkness spell to
give a reasonable duration with the new formula.
- Jan Echternach 16/5/2000


diff -ru orig/crossfire-0.95.5-patch1/lib/spell_params crossfire-0.95.5/lib/spell_params
--- orig/crossfire-0.95.5-patch1/lib/spell_params       Wed Mar 22 08:56:50 2000
+++ crossfire-0.95.5/lib/spell_params   Fri Apr  7 14:02:15 2000
@@ -31,7 +31,7 @@
 light
 1 4  2 1000 20 1 10
 darkness
-2 8  0 350 0 1 20
+2 8  0 10 0 2 20
 sunspear
 6 8  8 8 3 9  30
 dark vision
diff -ru orig/crossfire-0.95.5-patch1/server/spell_effect.c crossfire-0.95.5/server/spell_effect.c
--- orig/crossfire-0.95.5-patch1/server/spell_effect.c  Fri Apr  7 14:32:54 2000
+++ crossfire-0.95.5/server/spell_effect.c      Fri Apr  7 13:42:06 2000
@@ -846,9 +846,8 @@
     break;
   case SP_DARKNESS:
     tmp=get_archetype("darkness");
-    tmp->speed = 0.000350 * SP_PARAMETERS[SP_DARKNESS].bdur
-                 / (SP_PARAMETERS[SP_DARKNESS].bdur
-                    + SP_level_strength_adjust (op, caster, SP_DARKNESS));
+    tmp->stats.food = SP_PARAMETERS[SP_DARKNESS].bdur
+                      + SP_level_strength_adjust (op, caster, SP_DARKNESS);
     break; 
   case SP_COUNTERWALL:
     tmp=get_archetype("counterspell");

-- 
Jan
-
[you can put yourself on the announcement list only or unsubscribe altogether
by sending an email stating your wishes to ]