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

paranoia

parent 2f9bf540
No related branches found
No related tags found
No related merge requests found
......@@ -31,7 +31,7 @@ newTalent{
range = 0,
radius = function(self, t)
local r = 2
local gem_level = getGemLevel(self)
local gem_level = getGemLevel(self) or 1
local mult = 1 + 0.01*gem_level*self:callTalent(self.T_REACH, "rangebonus")
return math.ceil(r*mult)
end,
......@@ -79,7 +79,7 @@ newTalent{
range = 0,
radius = function(self, t)
local r = 1
local gem_level = getGemLevel(self)
local gem_level = getGemLevel(self) or 1
local mult = 1 + 0.01*gem_level*self:callTalent(self.T_REACH, "rangebonus")
return math.ceil(r*mult)
end,
......@@ -126,7 +126,7 @@ newTalent{
range = 0,
radius = function(self, t)
local r = 2
local gem_level = getGemLevel(self)
local gem_level = getGemLevel(self) or 1
local mult = 1 + 0.01*gem_level*self:callTalent(self.T_REACH, "rangebonus")
return math.ceil(r*mult)
end,
......
......@@ -87,8 +87,10 @@ return {
local x, y = e.x, e.y
e:die()
local m = game.zone:makeEntityByName(game.level, "actor", "KRYL_FEIJAN")
game.zone:addEntity(game.level, m, "actor", x, y)
game.level.map:particleEmitter(x, y, 1, "blood")
if m then
game.zone:addEntity(game.level, m, "actor", x, y)
game.level.map:particleEmitter(x, y, 1, "blood")
end
game.player:setQuestStatus("kryl-feijan-escape", engine.Quest.FAILED)
local spot = game.level:pickSpot{type="locked-door", subtype="locked-door"}
......
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