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

Method getThrowingAccuracy

src/Savegame/BattleUnit.cpp:1358–1361  ·  view source on GitHub ↗

* Calculate throwing accuracy. * @return throwing Accuracy */

Source from the content-addressed store, hash-verified

1356 * @return throwing Accuracy
1357 */
1358double BattleUnit::getThrowingAccuracy()
1359{
1360 return (double)(getStats()->throwing * getAccuracyModifier()) / 100.0;
1361}
1362
1363/**
1364 * Set the armor value of a certain armor side.

Callers 2

addItemMethod · 0.80
createNewProjectileMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected