[CF-Devel] Patch submission: name of (failed to be) disarmed runes
crossfire-devel-admin at archives.real-time.com
crossfire-devel-admin at archives.real-time.com
Sun Jul 27 16:21:07 CDT 2003
Hello everyone.
Here's a small patch (based on current CVS version) related to runes
disarming.
I changed the text that appears when you successfully disarm or fail to
disarm a rune to display the name.
Pretty straightforward change, and i tested it to make sure it works...
Feel free to either put it into CVS or trash it :-)
Note that it doesn't show more information than what the player can see,
since (s)he can only disarm runes spotted (of course if you use the
disarm spell you can disarm without spotting first, but whether you
disarm it or not you know there is a rune, and the name doesn't matter imo).
Nicolas 'Ryo'
-------------- next part --------------
diff -r1.31 rune.c
378a379
>
char buf[MAX_BUF];
389c390,391
< new_draw_info(NDI_UNIQUE, 0,disarmer,"You successfuly disarm it!");
---
>
sprintf(buf,"You successfuly disarm the %s!",trap->name);
>
new_draw_info(NDI_UNIQUE, 0,disarmer,buf);
401c403,404
< new_draw_info(NDI_UNIQUE, 0,disarmer,"You fail to disarm the trap.");
---
>
sprintf(buf,"You fail to disarm the %s!",trap->name);
>
new_draw_info(NDI_UNIQUE, 0,disarmer,buf);
More information about the crossfire
mailing list