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

Method needsAmmo

src/Savegame/BattleItem.cpp:351–354  ·  view source on GitHub ↗

* Determines if the item uses ammo. * @return True if ammo is used. */

Source from the content-addressed store, hash-verified

349 * @return True if ammo is used.
350 */
351bool BattleItem::needsAmmo() const
352{
353 return !(_ammoItem == this); // no ammo for this weapon is needed
354}
355
356/**
357 * Sets the item's ammo item.

Callers 4

saveEquipmentLayoutMethod · 0.80
invClickMethod · 0.80
updateSoldierInfoMethod · 0.80
unloadMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected