skills aren't initialized, so we use the role-specific skill lists */
| 1091 | |
| 1092 | /* skills aren't initialized, so we use the role-specific skill lists */ |
| 1093 | staticfn boolean |
| 1094 | restricted_spell_discipline(int otyp) |
| 1095 | { |
| 1096 | const struct def_skill *skills = skills_for_role(); |
| 1097 | int this_skill = spell_skilltype(otyp); |
| 1098 | |
| 1099 | while (skills && skills->skill != P_NONE) { |
| 1100 | if (skills->skill == this_skill) |
| 1101 | return FALSE; |
| 1102 | ++skills; |
| 1103 | } |
| 1104 | return TRUE; |
| 1105 | } |
| 1106 | |
| 1107 | /* randomizes the quantity given a trobj description */ |
| 1108 | staticfn long |
no test coverage detected