* Restore soldier energy and reduce stun level * @param energy The amount of energy to add * @param s The amount of stun level to reduce */
| 2081 | * @param s The amount of stun level to reduce |
| 2082 | */ |
| 2083 | void BattleUnit::stimulant (int energy, int s) |
| 2084 | { |
| 2085 | _energy += energy; |
| 2086 | if (_energy > getStats()->stamina) |
| 2087 | _energy = getStats()->stamina; |
| 2088 | healStun (s); |
| 2089 | } |
| 2090 | |
| 2091 | |
| 2092 | /** |