Skip to content
Snippets Groups Projects
Commit bc738687 authored by DarkGod's avatar DarkGod
Browse files

fix

parent f54efed1
No related branches found
No related tags found
No related merge requests found
...@@ -724,6 +724,7 @@ function _M:getTextualDesc(compare_with, use_actor) ...@@ -724,6 +724,7 @@ function _M:getTextualDesc(compare_with, use_actor)
compare_list( compare_list(
"On weapon hit:", "On weapon hit:",
function(combat) function(combat)
if not combat then return {} end
local list = {} local list = {}
-- Get complex damage types -- Get complex damage types
for dt, amount in pairs(combat.melee_project or combat.ranged_project or {}) do for dt, amount in pairs(combat.melee_project or combat.ranged_project or {}) do
...@@ -741,6 +742,7 @@ function _M:getTextualDesc(compare_with, use_actor) ...@@ -741,6 +742,7 @@ function _M:getTextualDesc(compare_with, use_actor)
compare_list( compare_list(
"On weapon crit:", "On weapon crit:",
function(combat) function(combat)
if not combat then return {} end
return get_special_list(combat, 'special_on_crit') return get_special_list(combat, 'special_on_crit')
end end
) )
...@@ -748,6 +750,7 @@ function _M:getTextualDesc(compare_with, use_actor) ...@@ -748,6 +750,7 @@ function _M:getTextualDesc(compare_with, use_actor)
compare_list( compare_list(
"On weapon kill:", "On weapon kill:",
function(combat) function(combat)
if not combat then return {} end
return get_special_list(combat, 'special_on_kill') return get_special_list(combat, 'special_on_kill')
end end
) )
......
...@@ -75,7 +75,7 @@ game.zone.on_turn = function() ...@@ -75,7 +75,7 @@ game.zone.on_turn = function()
game.level.map:particleEmitter(game.level.data.meteor_x, game.level.data.meteor_y, 10, "meteor").on_remove = function() game.level.map:particleEmitter(game.level.data.meteor_x, game.level.data.meteor_y, 10, "meteor").on_remove = function()
local x, y = game.level.data.meteor_x, game.level.data.meteor_y local x, y = game.level.data.meteor_x, game.level.data.meteor_y
game.level.map:particleEmitter(x, y, 10, "ball_fire", {radius=5}) game.level.map:particleEmitter(x, y, 10, "ball_fire", {radius=5})
if core.shader.allow("distort") then game.level.map:particleEmitter(x, y, 5, "shockwave", {radius=5}) end if core.shader.allow("distort") then game.level.map:particleEmitter(x, y, 5, "fireflash", {radius=5}) end
game:playSoundNear(game.player, "talents/fireflash") game:playSoundNear(game.player, "talents/fireflash")
for i = x-2, x+2 do for j = y-2, y+2 do for i = x-2, x+2 do for j = y-2, y+2 do
......
...@@ -1921,7 +1921,7 @@ newTalent{ ...@@ -1921,7 +1921,7 @@ newTalent{
local meteor = function(src, x, y, dam) local meteor = function(src, x, y, dam)
game.level.map:particleEmitter(x, y, 10, "meteor", {x=x, y=y}).on_remove = function(self) game.level.map:particleEmitter(x, y, 10, "meteor", {x=x, y=y}).on_remove = function(self)
local x, y = self.args.x, self.args.y local x, y = self.args.x, self.args.y
game.level.map:particleEmitter(x, y, 10, "ball_fire", {radius=2}) game.level.map:particleEmitter(x, y, 10, "fireflash", {radius=2})
game:playSoundNear(game.player, "talents/fireflash") game:playSoundNear(game.player, "talents/fireflash")
local grids = {} local grids = {}
......
...@@ -40,7 +40,7 @@ newTalent{ ...@@ -40,7 +40,7 @@ newTalent{
self:project(tg, x, y, DamageType.PHYSICAL, self:mindCrit(rng.avg(0.8*dam, dam)), {type="mindsear"}) self:project(tg, x, y, DamageType.PHYSICAL, self:mindCrit(rng.avg(0.8*dam, dam)), {type="mindsear"})
if self:hasEffect(self.EFF_TRANSCENDENT_TELEKINESIS) then if self:hasEffect(self.EFF_TRANSCENDENT_TELEKINESIS) then
local act = game.level.map(x, y, engine.Map.ACTOR) local act = game.level.map(x, y, engine.Map.ACTOR)
if act:canBe("stun") then if act and act:canBe("stun") then
act:setEffect(act.EFF_STUNNED, 4, {apply_power=self:combatMindpower()}) act:setEffect(act.EFF_STUNNED, 4, {apply_power=self:combatMindpower()})
end end
end end
......
...@@ -50,7 +50,7 @@ uberTalent{ ...@@ -50,7 +50,7 @@ uberTalent{
local meteor = function(src, x, y, dam) local meteor = function(src, x, y, dam)
game.level.map:particleEmitter(x, y, 10, "meteor", {x=x, y=y}).on_remove = function(self) game.level.map:particleEmitter(x, y, 10, "meteor", {x=x, y=y}).on_remove = function(self)
local x, y = self.args.x, self.args.y local x, y = self.args.x, self.args.y
game.level.map:particleEmitter(x, y, 10, "ball_fire", {radius=2}) game.level.map:particleEmitter(x, y, 10, "fireflash", {radius=2})
game:playSoundNear(game.player, "talents/fireflash") game:playSoundNear(game.player, "talents/fireflash")
local grids = {} local grids = {}
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
-- darkgod@te4.org -- darkgod@te4.org
local layout = game.state:alternateZone(short_name, {"VOLCANO", 2}) local layout = game.state:alternateZone(short_name, {"VOLCANO", 2})
local is_volcano = layout == "VOLCANO" local is_volcano = layout == "VOLCANO" or true
return { return {
name = "Daikara", name = "Daikara",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment