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

scrymud at wanfear.com scrymud at wanfear.com
Wed Jun 6 22:46:56 PDT 2007


Author: eroper
Date: 2007-06-06 22:46:55 -0700 (Wed, 06 Jun 2007)
New Revision: 923

Modified:
   trunk/mud/grrmud/server/critter.cc
   trunk/mud/grrmud/server/critter.h
Log:
Remorting someone into a Darkling will now turn on their passive infravision.


Modified: trunk/mud/grrmud/server/critter.cc
===================================================================
--- trunk/mud/grrmud/server/critter.cc	2007-06-06 06:21:19 UTC (rev 922)
+++ trunk/mud/grrmud/server/critter.cc	2007-06-07 05:46:55 UTC (rev 923)
@@ -5480,6 +5480,16 @@
    return -1;
 }
 
+void critter::setRace(int i) {
+   RACE = i;
+   switch ( i ) {
+      case DARKLING:
+         //we need to turn on darkling infravision.
+         SEE_BIT |= 1;
+      break;
+   };
+}//critter::setRace()
+
 /**  Translates an asci string (like HP, MANA, MOV, ALIGN, etc)
  * and returns the integer value.  Returns 0 if it can't
  * resolve the field.

Modified: trunk/mud/grrmud/server/critter.h
===================================================================
--- trunk/mud/grrmud/server/critter.h	2007-06-06 06:21:19 UTC (rev 922)
+++ trunk/mud/grrmud/server/critter.h	2007-06-07 05:46:55 UTC (rev 923)
@@ -1091,7 +1091,7 @@
    int getClass() const { return CLASS; }
    int getRace() const { return RACE; }
    void setLevel(int i) { LEVEL = i; }
-   void setRace(int i) { RACE = i; }
+   void setRace(int i);
    void setClass(int i) { CLASS = i; }
 
    /**  Translates an asci string (like HP, MANA, MOV, ALIGN, etc)




More information about the ScryMUD mailing list