| 1504 | } |
| 1505 | |
| 1506 | std::array<const lcf::rpg::Item*, 2> Game_Actor::GetWeapons(Game_Battler::Weapon weapon) const { |
| 1507 | std::array<const lcf::rpg::Item*, 2> w = {{}}; |
| 1508 | int i = 0; |
| 1509 | if (weapon == Game_Battler::WeaponPrimary || weapon == Game_Battler::WeaponAll) { |
| 1510 | w[i] = GetWeapon(); |
| 1511 | if (w[i]) { ++i; } |
| 1512 | } |
| 1513 | if (weapon == Game_Battler::WeaponSecondary || weapon == Game_Battler::WeaponAll) { |
| 1514 | w[i] = Get2ndWeapon(); |
| 1515 | } |
| 1516 | return w; |
| 1517 | } |
| 1518 | |
| 1519 | |
| 1520 | void Game_Actor::UpdateBattle() { |
no outgoing calls
no test coverage detected