[ScryMUD] SVN Commit Info r694 - trunk/mud/grrmud/server
scrymud at wanfear.com
scrymud at wanfear.com
Sun Jul 25 11:21:18 PDT 2004
Author: eroper
Date: 2004-07-25 11:21:18 -0700 (Sun, 25 Jul 2004)
New Revision: 694
Modified:
trunk/mud/grrmud/server/misc.cc
Log:
Whenever a player saves, all eq effects are first removed from the player. The
file is written and the eq effects are regained. This is to help prevent
nerfing. This change is not complete as it does not regain eq effects when a
player logs in. I am simply commiting this so that I (more) safely
(automagically) reverse some changes that were made between revisions 656:657.
Modified: trunk/mud/grrmud/server/misc.cc
===================================================================
--- trunk/mud/grrmud/server/misc.cc 2004-07-23 10:41:20 UTC (rev 693)
+++ trunk/mud/grrmud/server/misc.cc 2004-07-25 18:21:18 UTC (rev 694)
@@ -112,7 +112,20 @@
return;
}//if
+ int i;
+ for(i = 0; i<MAX_EQ; i++) {
+ if (EQ[i]) {
+ remove_eq_effects(*(EQ[i]), *this, FALSE, FALSE, i);
+ }
+ }
+
Write(ofile);
+
+ for(i=0;i<MAX_EQ;i++) {
+ if (EQ[i]) {
+ wear_eq_effects(*(EQ[i]), *this, i, FALSE);
+ }
+ }
}//save_pc
More information about the ScryMUD
mailing list