return true if this skill has reached its maximum and there's been enough practice to become eligible for the next step if that had been possible */
| 1184 | /* return true if this skill has reached its maximum and there's been enough |
| 1185 | practice to become eligible for the next step if that had been possible */ |
| 1186 | staticfn boolean |
| 1187 | peaked_skill(int skill) |
| 1188 | { |
| 1189 | if (P_RESTRICTED(skill)) |
| 1190 | return FALSE; |
| 1191 | |
| 1192 | return (boolean) (P_SKILL(skill) >= P_MAX_SKILL(skill) |
| 1193 | && ((int) P_ADVANCE(skill) |
| 1194 | >= practice_needed_to_advance(P_SKILL(skill)))); |
| 1195 | } |
| 1196 | |
| 1197 | staticfn void |
| 1198 | skill_advance(int skill) |
no outgoing calls
no test coverage detected