Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update clay_lump.lua #3802

Merged
merged 1 commit into from
Dec 14, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions data/scripts/actions/others/clay_lump.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ local config = {
local clayLump = Action()

function clayLump.onUse(player, item, fromPosition, target, toPosition, isHotkey)
local random, tmpItem = math.random(0, 10000) * 0.01
local random = math.random(0, 10000) * 0.01
for i = 1, #config do
tmpItem = config[i]
local tmpItem = config[i]
if random >= tmpItem.chance[1] and random < tmpItem.chance[2] then
item:getPosition():sendMagicEffect(CONST_ME_POFF)

Expand Down