build/EBJB_BattleCommands.rb
#--------------------------------------------------------------------------
# * Remove the battle commands that are not used anymore (to save memory)
#--------------------------------------------------------------------------
Remove the battle commands that are not used anymore (to save memory)
Remove the battle commands that are not used anymore ( to save memory )
def clean_commands
    for command in @data.values
      if !$data_battle_commands.include?(command.id)
        remove = true
        for i in 1...$game_actors.size
          if $game_actors[i].is_command_equipped?(command)
            remove = false
          end
        end
        if remove 
          @data.delete(command.id)
        end
      end
    end
  end
def clean_commands for command in @data . values if ! $data_battle_commands . include? ( command . id ) remove = true for i in 1 ... $game_actors . size if $game_actors [ i ] . is_command_equipped? ( command ) remove = false end end if remove @data . delete ( command . id ) end end end end
Remove the battle commands that are not used anymore (to save memory)
Remove the battle commands that are not used anymore ( to save memory )
# Commands from data are always kept # Checks if the command is still in use