version 1.59 | | version 1.60 |
---|
| | |
/* | | /* |
* static char *rcsid_skills_c = | | * static char *rcsid_skills_c = |
* "$Id: skills.c,v 1.59 2005/07/16 21:10:40 akirschbaum Exp $"; | | * "$Id: skills.c,v 1.60 2005/07/26 00:23:00 akirschbaum Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
int success=0; | | int success=0; |
| | |
for(tmp=pl->inv;tmp;tmp=tmp->below) | | for(tmp=pl->inv;tmp;tmp=tmp->below) |
if (!QUERY_FLAG(tmp,FLAG_IDENTIFIED) && !QUERY_FLAG(tmp,FLAG_KNOWN_CURSED) | | if (!tmp->invisible |
| | && !QUERY_FLAG(tmp,FLAG_IDENTIFIED) && !QUERY_FLAG(tmp,FLAG_KNOWN_CURSED) |
&& (QUERY_FLAG(tmp,FLAG_CURSED) || QUERY_FLAG(tmp,FLAG_DAMNED)) && | | && (QUERY_FLAG(tmp,FLAG_CURSED) || QUERY_FLAG(tmp,FLAG_DAMNED)) && |
tmp->item_power < skill->level) { | | tmp->item_power < skill->level) { |
SET_FLAG(tmp,FLAG_KNOWN_CURSED); | | SET_FLAG(tmp,FLAG_KNOWN_CURSED); |
| | |
int success=0; | | int success=0; |
| | |
for(tmp=pl->inv;tmp;tmp=tmp->below) | | for(tmp=pl->inv;tmp;tmp=tmp->below) |
if(!QUERY_FLAG(tmp,FLAG_IDENTIFIED) && !QUERY_FLAG(tmp,FLAG_KNOWN_MAGICAL) | | if(!tmp->invisible |
| | && !QUERY_FLAG(tmp,FLAG_IDENTIFIED) && !QUERY_FLAG(tmp,FLAG_KNOWN_MAGICAL) |
&& (is_magical(tmp)) && tmp->item_power < skill->level) { | | && (is_magical(tmp)) && tmp->item_power < skill->level) { |
SET_FLAG(tmp,FLAG_KNOWN_MAGICAL); | | SET_FLAG(tmp,FLAG_KNOWN_MAGICAL); |
esrv_update_item(UPD_FLAGS, pl, tmp); | | esrv_update_item(UPD_FLAGS, pl, tmp); |