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

Method GetWeaponId

src/game_actor.cpp:722–725  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

720}
721
722int Game_Actor::GetWeaponId() const {
723 int item_id = GetWholeEquipment()[0];
724 return item_id <= (int)lcf::Data::items.size() ? item_id : 0;
725}
726
727int Game_Actor::GetShieldId() const {
728 int item_id = GetWholeEquipment()[1];

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