allocate hero's initial characteristics */
| 720 | |
| 721 | /* allocate hero's initial characteristics */ |
| 722 | void |
| 723 | init_attr(int np) |
| 724 | { |
| 725 | int i; |
| 726 | |
| 727 | for (i = 0; i < A_MAX; i++) { |
| 728 | ABASE(i) = AMAX(i) = gu.urole.attrbase[i]; |
| 729 | ATEMP(i) = ATIME(i) = 0; |
| 730 | np -= gu.urole.attrbase[i]; |
| 731 | } |
| 732 | |
| 733 | /* distribute leftover points */ |
| 734 | np = init_attr_role_redist(np, TRUE); |
| 735 | /* if we went over, remove points */ |
| 736 | np = init_attr_role_redist(np, FALSE); |
| 737 | } |
| 738 | |
| 739 | void |
| 740 | redist_attr(void) |
no test coverage detected