MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / getTULimit

Method getTULimit

game/state/shared/agent.cpp:249–263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

247}
248
249int Agent::getTULimit(int reactionValue) const
250{
251 if (reactionValue == 0)
252 {
253 return 0;
254 }
255 else if (reactionValue >= getReactionValue())
256 {
257 return modified_stats.time_units;
258 }
259 else
260 {
261 return current_stats.time_units * reactionValue / modified_stats.reactions;
262 }
263}
264
265UString Agent::getRankName() const
266{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected