[CF-Devel] CVS update: crossfire/server

Crossfire CVS devel mwedel at scruznet.com
Tue Sep 26 19:50:48 CDT 2000


Date:	Tuesday September 26, 2000 @ 17:50
Author:	peterm

Update of /home/cvs/CVS/crossfire/server
In directory boltzmann.eecs.berkeley.edu:/tmp/cvs-serv1708

Modified Files:
	skill_util.c 
Log Message:
Implemented levitation skill.


****************************************

Index: crossfire/server/skill_util.c
diff -u crossfire/server/skill_util.c:1.8 crossfire/server/skill_util.c:1.9
--- crossfire/server/skill_util.c:1.8	Thu Aug 24 23:23:28 2000
+++ crossfire/server/skill_util.c	Tue Sep 26 17:50:47 2000
@@ -1,6 +1,6 @@
 /*
  * static char *rcsid_skill_util_c =
- *   "$Id: skill_util.c,v 1.8 2000/08/25 06:23:28 cvs Exp $";
+ *   "$Id: skill_util.c,v 1.9 2000/09/27 00:50:47 peterm Exp $";
  */
 /*
     CrossFire, A Multiplayer game for X-windows
@@ -82,6 +82,17 @@
   int skill = op->chosen_skill->stats.sp;
 
     switch(skill) {
+	 case SK_LEVITATION:
+		if(QUERY_FLAG(op,FLAG_FLYING)) { 
+		  CLEAR_FLAG(op,FLAG_FLYING);
+		  new_draw_info(NDI_UNIQUE,0,op,"You come to earth.");
+		}
+		else {
+		  SET_FLAG(op,FLAG_FLYING);
+		  new_draw_info(NDI_UNIQUE,0,op,"You rise into the air!.");
+		}
+		  			 
+		break;
       case SK_STEALING:
         success = steal(op, dir);
         break;

    
    


More information about the crossfire mailing list