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

Method GetWeapon

src/game_battlealgorithm.cpp:631–636  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

629}
630
631Game_Battler::Weapon Game_BattleAlgorithm::Normal::GetWeapon() const {
632 if (weapon_style < 0) {
633 return Game_Battler::WeaponAll;
634 }
635 return GetCurrentRepeat() >= weapon_style ? Game_Battler::WeaponSecondary : Game_Battler::WeaponPrimary;
636}
637
638void Game_BattleAlgorithm::Normal::Init(Style style) {
639 auto* source = GetSource();

Callers 1

InitMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected