Skip to content

Commit

Permalink
New splash effects #392
Browse files Browse the repository at this point in the history
  • Loading branch information
brightrim committed Aug 9, 2024
1 parent 0f6facd commit a43dce3
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions base/globalvar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ M.gfxSUN = 46
M.gfxVIOLETT = 51
M.gfxSPRINKLE = 52
M.gfxSCOTTY = 53
M.gfxBlueSplash = 54
M.gfxGreenSplash = 55

-- Graphic effects
-- Descriptive text of the gfx effect
Expand Down
2 changes: 1 addition & 1 deletion magic/arcane/enchanting/effects/dendron.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function M.lifesteal(user, damage)
if success then
local increase = damage/5 -- 20% lifesteal on proc, procs at most one out of 4 attacks on average, meaning 5% average lifesteal per attack
user:increaseAttrib("hitpoints", increase)
world:gfx( globalvar.gfxRAIN, user.pos)
world:gfx( globalvar.gfxSplashGreen, user.pos)
end
end

Expand Down
2 changes: 1 addition & 1 deletion magic/arcane/enchanting/effects/hydor.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function M.reduceManaCost(user)
local success = shared.activateGlyph(user, "hydor", chance, 1)

if success then
world:gfx( globalvar.gfxSCOTTY, user.pos)
world:gfx( globalvar.gfxBlueSplash, user.pos)
return true
end

Expand Down
2 changes: 1 addition & 1 deletion magic/arcane/enchanting/effects/tan.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function M.reduceCastTime(user)
local success = shared.activateGlyph(user, "tan", chance, 1)

if success then
world:gfx( globalvar.gfxSCOTTY, user.pos)
world:gfx( globalvar.gfxBlueSplash, user.pos)
return true
end

Expand Down
2 changes: 1 addition & 1 deletion magic/arcane/enchanting/effects/ysbryd.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function M.liferegen(defender, damage)
if success then
local increase = damage/5 -- 20% lifesteal on proc, procs at most one out of 4 attacks on average, meaning 5% average lifesteal per attack
defender:increaseAttrib("hitpoints", increase)
world:gfx( globalvar.gfxRAIN, defender.pos)
world:gfx( globalvar.gfxGreenSplash, defender.pos)
end
end

Expand Down

0 comments on commit a43dce3

Please sign in to comment.