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

scrymud at wanfear.com scrymud at wanfear.com
Sun Jun 10 23:01:51 PDT 2007


Author: eroper
Date: 2007-06-10 23:01:50 -0700 (Sun, 10 Jun 2007)
New Revision: 948

Modified:
   trunk/mud/grrmud/server/pfile_maint.cc
Log:
gmud --resave-pfiles is a bit more verbose, easier to read, and only teaches
tammuz to those that don't already know it now.


Modified: trunk/mud/grrmud/server/pfile_maint.cc
===================================================================
--- trunk/mud/grrmud/server/pfile_maint.cc	2007-06-11 05:32:33 UTC (rev 947)
+++ trunk/mud/grrmud/server/pfile_maint.cc	2007-06-11 06:01:50 UTC (rev 948)
@@ -68,7 +68,7 @@
 
       //prior to version 1, stats were saved with eq modifiers in place.
       if ( c->pc->file_format_version == 0 ) {
-         cout << "Upgrading " << (const char *)(*(c->getName())) << " from version 0." << endl;
+         cout << "    Upgrading " << (const char *)(*(c->getName())) << " from version 0." << endl;
 
          // if it's the old version remove everything so we can force
          // correct nasties that ran away with us.
@@ -102,10 +102,14 @@
 
       int test_ss;
       if (static_cast< Tree<int,int> >(c->SKILLS_KNOWN).Find(0, test_ss)) {
+         cout << "    Forgetting skill #0 for " << (const char *)(*(c->getName())) << endl;
          c->SKILLS_KNOWN.Delete(0);
       }
       if ( c->isRemort() ) {
-         c->SKILLS_KNOWN.Insert(TAMMUZ_SKILL_NUM, 1);
+         if ( get_percent_lrnd(TAMMUZ_SKILL_NUM, *c) <= 0 ) {
+            cout << "    Teaching remort " << (const char *)(*(c->getName())) << " tammuz." << endl;
+            c->SKILLS_KNOWN.Insert(TAMMUZ_SKILL_NUM, 1);
+         }
       }
 
       save(*c);




More information about the ScryMUD mailing list