version 1.9 | | version 1.10 |
---|
| | |
/* | | /* |
* static char *rcsid_player_c = | | * static char *rcsid_player_c = |
* "$Id: player.c,v 1.9 2001/11/19 23:30:27 michtoen Exp $"; | | * "$Id: player.c,v 1.10 2002/03/01 21:33:09 avogl Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
} | | } |
return skill1; | | return skill1; |
} | | } |
| | |
| | /* Determine if the attacktype represented by the |
| | * specified attack-number is enabled for dragon players. |
| | * A dragon player (quetzal) can gain resistances for |
| | * all enabled attacktypes. |
| | */ |
| | int atnr_is_dragon_enabled(int attacknr) { |
| | if (attacknr == ATNR_MAGIC || attacknr == ATNR_FIRE || |
| | attacknr == ATNR_ELECTRICITY || attacknr == ATNR_COLD || |
| | attacknr == ATNR_ACID || attacknr == ATNR_POISON) |
| | return 1; |
| | return 0; |
| | } |