| 928 | } |
| 929 | |
| 930 | const lcf::rpg::BattleCommand* Game_Actor::GetBattleCommand(int idx) const { |
| 931 | Span<const int32_t> commands; |
| 932 | if (data.changed_battle_commands) { |
| 933 | commands = data.battle_commands; |
| 934 | } else if (dbActor) { |
| 935 | commands = dbActor->battle_commands; |
| 936 | } |
| 937 | int cmd_id = 0; |
| 938 | if (idx >= 0 && idx < static_cast<int>(commands.size())) { |
| 939 | cmd_id = commands[idx]; |
| 940 | } |
| 941 | return lcf::ReaderUtil::GetElement(lcf::Data::battlecommands.commands, cmd_id); |
| 942 | } |
| 943 | |
| 944 | const std::vector<const lcf::rpg::BattleCommand*> Game_Actor::GetBattleCommands() const { |
| 945 | std::vector<const lcf::rpg::BattleCommand*> commands; |
no test coverage detected