[ScryMUD] SVN Commit Info r689 - trunk/mud/grrmud/server

scrymud at wanfear.com scrymud at wanfear.com
Fri Jul 23 01:03:46 PDT 2004


Author: eroper
Date: 2004-07-23 01:03:45 -0700 (Fri, 23 Jul 2004)
New Revision: 689

Modified:
   trunk/mud/grrmud/server/critter.cc
Log:
I decided that for the sake of consistency I'd rather convert the critter_*
world files than have special handling of them for the spell affect amounts
field. In reality I can't see a practical purpose for mobs having skill/spell
affects on lead (since they wear off), but hey.... people were using them.


Modified: trunk/mud/grrmud/server/critter.cc
===================================================================
--- trunk/mud/grrmud/server/critter.cc	2004-07-22 10:40:04 UTC (rev 688)
+++ trunk/mud/grrmud/server/critter.cc	2004-07-23 08:03:45 UTC (rev 689)
@@ -2520,13 +2520,7 @@
    affected_by.head(ss_cell);
    while ((ss_ptr = ss_cell.next())) {
       ofile << ss_ptr->stat_spell << " " << ss_ptr->bonus_duration << " ";
-
-      /* This is only true for PC's now or we bork the hell out of the world
-       * database --Khaav
-       */
-      if ( isPc() ) {
       ofile << ss_ptr->bonus_value << " ";
-      }
 
       if ((++num_written % 20) == 0)
          ofile << endl;
@@ -3564,12 +3558,8 @@
       ss_ptr = new stat_spell_cell;
       ss_ptr->stat_spell = i;
       ofile >> ss_ptr->bonus_duration;
+      ofile >> ss_ptr->bonus_value;
 
-      /* again, no borking the world files on read --Khaav */
-      if ( isPc() ) {
-         ofile >> ss_ptr->bonus_value;
-      }
-
       Put(ss_ptr, affected_by);
       ofile >> i;
    }//while




More information about the ScryMUD mailing list