Skip to content

Commit

Permalink
refactor: variables in camel case
Browse files Browse the repository at this point in the history
  • Loading branch information
FelipePaluco authored Oct 31, 2024
1 parent d49be77 commit 699bd61
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions data/scripts/actions/items/mystery_box.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
local mysterybox = Action()
local mysteryBox = Action()

function mysterybox.onUse(player, item, fromPosition, target, toPosition, isHotkey)
function mysteryBox.onUse(player, item, fromPosition, target, toPosition, isHotkey)
local items = { 25361, 25360 }
local randomItem = items[math.random(#items)]
player:addItem(randomItem, 1)
Expand All @@ -9,5 +9,5 @@ function mysterybox.onUse(player, item, fromPosition, target, toPosition, isHotk
return true
end

mysterybox:id(26186)
mysterybox:register()
mysteryBox:id(26186)
mysteryBox:register()

0 comments on commit 699bd61

Please sign in to comment.