MCPcopy Create free account
hub / github.com/EasyRPG/Player / GetArmorId

Method GetArmorId

src/game_actor.cpp:732–735  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

730}
731
732int Game_Actor::GetArmorId() const {
733 int item_id = GetWholeEquipment()[2];
734 return item_id <= (int)lcf::Data::items.size() ? item_id : 0;
735}
736
737int Game_Actor::GetHelmetId() const {
738 int item_id = GetWholeEquipment()[3];

Callers 4

ActorMethod · 0.80
game_actor.cppFile · 0.80
testWeapon2Function · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected