Skip to content

Commit

Permalink
chore(server): fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
solareon committed Sep 24, 2024
1 parent c27bbc4 commit b812a83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ local function createScratcher(src, scratcherIndex)
local winner = math.random(100) <= prizeConfig.winChance and true or false
local prizeAmount = 0
if winner then
for i = 1, prizeConfig.minWinSymbol do
for _ = 1, prizeConfig.minWinSymbol do
prizeData[#prizeData + 1] = prizeArray[winningSymbol]
prizeData[#prizeData].color = 'gold'
prizeAmount = prizeAmount + (prizeArray[winningSymbol].amount * prizeConfig.multiplier)
end
prizeSquares = prizeSquares - prizeConfig.minWinSymbol
end
for i = 1, prizeSquares do
for _ = 1, prizeSquares do
prizeData[#prizeData + 1] = prizeArray[math.random(#prizeArray)]
if prizeData[#prizeData].color == 'gold' then
prizeAmount = prizeAmount + (prizeArray[winningSymbol].amount * prizeConfig.multiplier)
Expand Down

0 comments on commit b812a83

Please sign in to comment.