1 | /* |
1 | /* |
2 | * static char *rcsid_skills_c = |
2 | * static char *rcsid_skills_c = |
3 | * "$Id: skills.C,v 1.1 2006/08/13 17:16:04 elmex Exp $"; |
3 | * "$Id: skills.C,v 1.2 2006/08/14 15:18:45 elmex Exp $"; |
4 | */ |
4 | */ |
5 | /* |
5 | /* |
6 | CrossFire, A Multiplayer game for X-windows |
6 | CrossFire, A Multiplayer game for X-windows |
7 | |
7 | |
8 | Copyright (C) 2003 Mark Wedel & Crossfire Development Team |
8 | Copyright (C) 2003 Mark Wedel & Crossfire Development Team |
… | |
… | |
870 | mapstruct *m; |
870 | mapstruct *m; |
871 | sint16 x, y; |
871 | sint16 x, y; |
872 | |
872 | |
873 | if(pl->type!=PLAYER) return 0; /* only players use this skill */ |
873 | if(pl->type!=PLAYER) return 0; /* only players use this skill */ |
874 | |
874 | |
875 | new_draw_info_format(NDI_UNIQUE,0,pl, "You sing"); |
875 | new_draw_info_format(NDI_UNIQUE,0,pl, "You sing."); |
876 | for(i=dir;i<(dir+MIN(skill->level,SIZEOFFREE));i++) { |
876 | for(i=0;i<MIN(skill->level,SIZEOFFREE);i++) { |
877 | x = pl->x+freearr_x[i]; |
877 | x = pl->x+freearr_x[i]; |
878 | y = pl->y+freearr_y[i]; |
878 | y = pl->y+freearr_y[i]; |
879 | m = pl->map; |
879 | m = pl->map; |
880 | |
880 | |
881 | mflags =get_map_flags(m, &m, x,y, &x, &y); |
881 | mflags =get_map_flags(m, &m, x,y, &x, &y); |