Skip to content

Commit

Permalink
Minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
JeroenDeDauw committed Nov 27, 2021
1 parent a78e3c8 commit ce064c5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/WelcomeMessages.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ newInstance = function(ScenarioInfo, options, textPrinter)
return this
end

local getDifficuly = function()
local getDifficulty = function()
local difficultyNames = {
[1] = "Very easy",
[2] = "Easier",
Expand All @@ -40,12 +40,12 @@ newInstance = function(ScenarioInfo, options, textPrinter)
end

local function showGameVersionMessage(printer)
textPrinter.print(
printer.print(
string.rep(" ", 12) .. "Welcome to Survival Versus v" .. ScenarioInfo.map_version,
{ color = "ffafdde4", duration = WELCOME_MESSAGE_DURATION, location = "leftcenter", size = 35 }
)

textPrinter.print(
printer.print(
string.rep(" ", 20) .. "by EntropyWins",
{ color = "ffafdde4", duration = WELCOME_MESSAGE_DURATION, location = "leftcenter" }
)
Expand All @@ -72,7 +72,7 @@ newInstance = function(ScenarioInfo, options, textPrinter)

printer.printBlankLine()

printer.printOption("opt_FinalRushDifficulty", "Difficulty preset: " .. getDifficuly())
printer.printOption("opt_FinalRushDifficulty", "Difficulty preset: " .. getDifficulty())
printer.printOption("opt_FinalRushEscalationSpeed", "Escalation speed: " .. ScenarioInfo.Options.opt_FinalRushEscalationSpeed / 60 .. " minutes/stage")
printer.printOption("opt_FinalRushUnitCount", "Unit count: " .. ScenarioInfo.Options.opt_FinalRushUnitCount * 100 .. "%")
printer.printOption("opt_FinalRushHealthIncrease", "Health increase: " .. ScenarioInfo.Options.opt_FinalRushHealthIncrease * 100 .. "% every 100 seconds")
Expand Down
2 changes: 0 additions & 2 deletions src/survival/DeathEvents.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ newInstance = function(playerArmies)

local topTeamIsAlive = not playersAreDead(playerArmies.getTopSideArmies())
local bottomTeamIsAlive = not playersAreDead(playerArmies.getBottomSideArmies())
LOG("Top team is " .. (topTeamIsAlive and "alive" or "dead" ))
LOG("Bottom team is " .. (bottomTeamIsAlive and "alive" or "dead"))

table.insert(
playerDeathCallbacks,
Expand Down

0 comments on commit ce064c5

Please sign in to comment.