[CF-Devel] Patch: skill name when learning

crossfire-devel at archives.real-time.com crossfire-devel at archives.real-time.com
Sun Nov 23 04:38:41 CST 2003


Here's a patch to fix a small glitch: when learning a skill, the server displays 
'type bind ready_skill scroll of <skill>' instead of using the skill's name.
Fixed to use the skill's name ('skill') instead of the scroll's name :)

Note: patch also fixes a bad windows newline that appeared last time i tweaked 
the file.

Nicolas 'Ryo'
-------------- next part --------------
Index: server/apply.c
===================================================================
RCS file: /cvsroot/crossfire/crossfire/server/apply.c,v
retrieving revision 1.93
diff -u -r1.93 apply.c
--- server/apply.c	11 Nov 2003 07:37:10 -0000	1.93
+++ server/apply.c	23 Nov 2003 10:35:23 -0000
@@ -1481,9 +1481,9 @@
 
 	case 1:
 	    new_draw_info_format(NDI_UNIQUE, 0,op,"You succeed in learning %s",
-			 tmp->name);
+			 tmp->skill);
 	    new_draw_info_format(NDI_UNIQUE, 0, op,
-			 "Type 'bind ready_skill %s",tmp->name);
+			 "Type 'bind ready_skill %s",tmp->skill);
 	    new_draw_info(NDI_UNIQUE, 0,op,"to store the skill in a key.");
 	    decrease_ob(tmp);
 	    return;
@@ -1610,7 +1610,7 @@
     spell = tmp->inv;
     if (!spell) {
 	LOG(llevError,"apply_spellbook: Book %s has no spell in it!\n", tmp->name);
-	new_draw_info(NDI_UNIQUE, 0,op,"The spellbook symbols make no sense.");
+	new_draw_info(NDI_UNIQUE, 0,op,"The spellbook symbols make no sense.");
     return;
     }
     if (spell->level > (skop->level+10)) {
-------------- next part --------------
_______________________________________________
crossfire-devel mailing list
     
     crossfire-devel at lists.real-time.com
     
     
     https://mailman.real-time.com/mailman/listinfo/crossfire-devel
     
     
    


More information about the crossfire mailing list