1 | /* |
1 | /* |
2 | * CrossFire, A Multiplayer game for X-windows |
2 | * CrossFire, A Multiplayer game |
3 | * |
3 | * |
4 | * Copyright (C) 2005, 2006, 2007 Marc Lehmann & Crossfire+ Development Team |
4 | * Copyright (C) 2005, 2006, 2007 Marc Lehmann & Crossfire+ Development Team |
5 | * Copyright (C) 2002 Mark Wedel & Crossfire Development Team |
5 | * Copyright (C) 2002 Mark Wedel & Crossfire Development Team |
6 | * Copyright (C) 1992 Frank Tore Johansen |
6 | * Copyright (C) 1992 Frank Tore Johansen |
7 | * |
7 | * |
… | |
… | |
925 | /* skill selection - monster will use the next unused skill. |
925 | /* skill selection - monster will use the next unused skill. |
926 | * well...the following scenario will allow the monster to |
926 | * well...the following scenario will allow the monster to |
927 | * toggle between 2 skills. One day it would be nice to make |
927 | * toggle between 2 skills. One day it would be nice to make |
928 | * more skills available to monsters. |
928 | * more skills available to monsters. |
929 | */ |
929 | */ |
930 | |
|
|
931 | for (skill = head->inv; skill; skill = skill->below) |
930 | for (skill = head->inv; skill; skill = skill->below) |
932 | if (skill->type == SKILL && skill != head->chosen_skill) |
931 | if (skill->type == SKILL && skill != head->chosen_skill) |
933 | { |
932 | { |
934 | head->chosen_skill = skill; |
933 | head->chosen_skill = skill; |
935 | break; |
934 | break; |