| 4113 | } |
| 4114 | |
| 4115 | void SetPlrVit(int p, int v) |
| 4116 | { |
| 4117 | int hp; |
| 4118 | |
| 4119 | if ((DWORD)p >= MAX_PLRS) { |
| 4120 | app_fatal("SetPlrVit: illegal player %d", p); |
| 4121 | } |
| 4122 | |
| 4123 | plr[p]._pBaseVit = v; |
| 4124 | |
| 4125 | hp = v << 6; |
| 4126 | if (plr[p]._pClass == PC_WARRIOR) { |
| 4127 | hp <<= 1; |
| 4128 | } |
| 4129 | |
| 4130 | plr[p]._pHPBase = hp; |
| 4131 | plr[p]._pMaxHPBase = hp; |
| 4132 | CalcPlrInv(p, TRUE); |
| 4133 | } |
| 4134 | |
| 4135 | void InitDungMsgs(int pnum) |
| 4136 | { |
no test coverage detected