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

Method getReactionScore

src/Savegame/BattleUnit.cpp:1404–1409  ·  view source on GitHub ↗

* Little formula to calculate reaction score. * @return Reaction score. */

Source from the content-addressed store, hash-verified

1402 * @return Reaction score.
1403 */
1404double BattleUnit::getReactionScore()
1405{
1406 //(Reactions Stat) x (Current Time Units / Max TUs)
1407 double score = ((double)getStats()->reactions * (double)getTimeUnits()) / (double)getStats()->tu;
1408 return score;
1409}
1410
1411
1412/**

Callers 1

getReactorMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected