MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / stimulant

Method stimulant

src/Savegame/BattleUnit.cpp:2083–2089  ·  view source on GitHub ↗

* Restore soldier energy and reduce stun level * @param energy The amount of energy to add * @param s The amount of stun level to reduce */

Source from the content-addressed store, hash-verified

2081 * @param s The amount of stun level to reduce
2082 */
2083void 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/**

Callers 1

onStimulantClickMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected