From bd44a370b57ab89c1a19bbe5cdf9113362eb52a1 Mon Sep 17 00:00:00 2001 From: Sjshovan Date: Tue, 31 Dec 2019 16:01:34 -0500 Subject: [PATCH] convert tabs to spaces --- README.md | 16 ++++++++-------- battlestations.lua | 20 ++++++++++---------- constants.lua | 4 ++-- helpers.lua | 2 +- 4 files changed, 21 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index c378e50..83fd082 100644 --- a/README.md +++ b/README.md @@ -84,7 +84,7 @@ Displays the available Battle Stations commands. Below are the equivalent ways o **list _[radios|stations] [category#]_** Displays the available radios and or stations. Below are some useage examples of this command: - + //bs list //bs l @@ -92,7 +92,7 @@ Displays the available radios and or stations. Below are some useage examples of //bs l radios //bs l r - //bs list stations + //bs list stations //bs l stations //bs l s @@ -130,9 +130,9 @@ Displays the currently set station on the given radio(s). Below are some useage Sets the given radio(s) to the default station (Current Zone Music). Below are some useage examples of this command: - //bs default + //bs default //bs d - + //bs d solo //bs d party @@ -143,9 +143,9 @@ Sets the given radio(s) to the default station (Current Zone Music). Below are s Sets the given radio(s) to the original game music. Below are some useage examples of this command: - //bs normal + //bs normal //bs n - + //bs n solo //bs n party @@ -154,7 +154,7 @@ Sets the given radio(s) to the original game music. Below are some useage exampl **reload** Reloads the Battle Stations addon. Below are the equivalent ways of calling the command: - + //battlestations reload //stations reload //bs reload @@ -166,7 +166,7 @@ Reloads the Battle Stations addon. Below are the equivalent ways of calling the **about** Displays information about the Battle Stations addon. Below are the equivalent ways of calling the command: - + /battlestations about //stations about //bs about diff --git a/battlestations.lua b/battlestations.lua index fa8a9b1..3cda176 100644 --- a/battlestations.lua +++ b/battlestations.lua @@ -60,7 +60,7 @@ local help = { buildHelpCommandEntry('default [radio]', 'Set radio(s) to the default station (Current Zone Music).'), buildHelpCommandEntry('normal [radio]', 'Set radio(s) to the original game music.'), buildHelpCommandEntry('reload', 'Reload Battle Stations.'), - buildHelpCommandEntry('about', 'Display information about Battle Stations.'), + buildHelpCommandEntry('about', 'Display information about Battle Stations.'), buildHelpCommandEntry('help', 'Display Battle Stations commands.'), buildHelpSeperator('=', 28), }, @@ -73,8 +73,8 @@ local help = { buildHelpRadioEntry(stations.receivers.party:ucfirst(), 'Plays Party Battle Music'), buildHelpSeperator('=', 25), }, - - about = { + + about = { buildHelpSeperator('=', 23), buildHelpTitle('About'), buildHelpSeperator('=', 23), @@ -336,9 +336,9 @@ function listTypeValid(list_type) end function handleInjectionNeeds() - if needs_inject then - injectBattleMusic() - needs_inject = false; + if needs_inject then + injectBattleMusic() + needs_inject = false; end end @@ -373,7 +373,7 @@ windower.register_event('action', function(act) end) windower.register_event('outgoing chunk', function(id, data) - if id == packets.outbound.action.id then + if id == packets.outbound.action.id then local packet = _packets.parse('outgoing', data) if packet.Category == packets.outbound.action.categories.engage then injectBattleMusic() @@ -577,9 +577,9 @@ windower.register_event('addon command', function(command, ...) elseif command == 'reload' or command == 'r' then windower.send_command('lua r battlestations') - - elseif command == 'about' or command == 'a' then - displayHelp(help.about) + + elseif command == 'about' or command == 'a' then + displayHelp(help.about) elseif command == 'help' or command == 'h' then displayHelp(help.commands) diff --git a/constants.lua b/constants.lua index 8087093..950ecc1 100644 --- a/constants.lua +++ b/constants.lua @@ -48,10 +48,10 @@ packets = { } player = { - statuses = { + statuses = { idle = 0x00, fighting = 0x01, - }, + }, buffs = { reiveMark = 511 } diff --git a/helpers.lua b/helpers.lua index f30e51e..17b2acf 100644 --- a/helpers.lua +++ b/helpers.lua @@ -38,7 +38,7 @@ function buildHelpCommandEntry(command, description) end function buildHelpTypeEntry(name, description) - local entry_template = "%s %s %s" + local entry_template = "%s %s %s" local name = name:color(colors.secondary) local sep = "=>":color(colors.primary) local description = description:color(colors.info)