From b812a83392b34ab3849eb1ab1bdd31c680836519 Mon Sep 17 00:00:00 2001 From: Solareon <769465+solareon@users.noreply.github.com> Date: Tue, 24 Sep 2024 09:35:53 +0200 Subject: [PATCH] chore(server): fix linting errors --- server/server.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/server.lua b/server/server.lua index 8c63dc3..1ed5d83 100644 --- a/server/server.lua +++ b/server/server.lua @@ -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)