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

Method GetShieldId

src/game_actor.cpp:727–730  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

725}
726
727int Game_Actor::GetShieldId() const {
728 int item_id = GetWholeEquipment()[1];
729 return item_id <= (int)lcf::Data::items.size() ? item_id : 0;
730}
731
732int Game_Actor::GetArmorId() const {
733 int item_id = GetWholeEquipment()[2];

Callers 6

ActorMethod · 0.80
game_actor.cppFile · 0.80
testWeapon2Function · 0.80
TestNormalAttackFunction · 0.80

Calls 1

sizeMethod · 0.45

Tested by 1

TestNormalAttackFunction · 0.64