Skip to content
Snippets Groups Projects
Commit 679c6749 authored by dg's avatar dg
Browse files

plop

git-svn-id: http://svn.net-core.org/repos/t-engine4@6807 51575b47-30f0-44d4-a5cc-537603b46e54
parent 216db5ae
No related branches found
No related tags found
No related merge requests found
Showing
with 16 additions and 14 deletions
......@@ -108,7 +108,7 @@ end
-- @param target to whom is the exp rewarded
-- @return the experience rewarded
function _M:worthExp(target)
return self.level * self.exp_worth * (target.exp_gain_mult or 1)
return self.level * self.exp_worth
end
--- Method called when leveling up, module author rewrite it to do as you please
......
......@@ -814,10 +814,12 @@ function _M:editTileGenericSandWalls(level, i, j, g, nt, type)
local g9 = level.map:checkEntity(i+1, j-1, Map.TERRAIN, kind) or type
local g1 = level.map:checkEntity(i-1, j+1, Map.TERRAIN, kind) or type
local g3 = level.map:checkEntity(i+1, j+1, Map.TERRAIN, kind) or type
local g2d = level.map:checkEntity(i, j+1, Map.TERRAIN, "is_door")
local g7d = nil
local g1d = nil
local g3d = nil
local g9d = nil
if g2d then g2 = "floor" end
if nt.consider_diagonal_doors then
g7d = level.map:checkEntity(i-1, j-1, Map.TERRAIN, "is_door")
g1d = level.map:checkEntity(i-1, j+1, Map.TERRAIN, "is_door")
......
......@@ -665,7 +665,7 @@ function _M:getTarget(typ)
typ.immediate_keys = true
typ.default_target = self
if config.settings.tome.immediate_melee_keys_auto and not oldft then
if config.settings.tome.immediate_melee_keys_auto and not oldft and not typ.simple_dir_request then
local foes = {}
for _, c in pairs(util.adjacentCoords(self.x, self.y)) do
local target = game.level.map(c[1], c[2], Map.ACTOR)
......
......@@ -76,9 +76,9 @@ newEntity{
door_closed = "ICECAVE_DOOR",
}
newEntity{ base = "ICECAVE_DOOR", define_as = "ICECAVE_DOOR_HORIZ", z=3, image = "terrain/icecave/icecave_door1.png", add_displays = {class.new{image="terrain/icecave/icecavewall_8_2.png", z=18, display_y=-1}}, door_opened = "ICECAVE_DOOR_HORIZ_OPEN"}
newEntity{ base = "ICECAVE_DOOR_OPEN", define_as = "ICECAVE_DOOR_HORIZ_OPEN", image = "terrain/icecave/icecave_door1.png", add_displays = {class.new{image="terrain/icecave/icecave_door1_open.png", z=17}, class.new{image="terrain/icecave/icecavewall_8_2.png", z=18, display_y=-1}}, door_closed = "ICECAVE_DOOR_HORIZ"}
newEntity{ base = "ICECAVE_DOOR", define_as = "ICECAVE_DOOR_VERT", image = "terrain/icecave/icecave_door1.png", add_displays = {class.new{image="terrain/icecave/icecave_door1_vert.png", z=17}, class.new{image="terrain/icecave/icecave_door1_vert_north.png", z=18, display_y=-1}}, door_opened = "ICECAVE_DOOR_OPEN_VERT", dig = "ICECAVE_DOOR_OPEN_VERT"}
newEntity{ base = "ICECAVE_DOOR_OPEN", define_as = "ICECAVE_DOOR_OPEN_VERT", image = "terrain/icecave/icecave_door1.png", add_displays = {class.new{image="terrain/icecave/icecave_door1_open_vert.png", z=17}, class.new{image="terrain/icecave/icecave_door1_open_vert_north.png", z=18, display_y=-1}}, door_closed = "ICECAVE_DOOR_VERT"}
newEntity{ base = "ICECAVE_DOOR_OPEN", define_as = "ICECAVE_DOOR_HORIZ_OPEN", image = "terrain/icecave/icecave_floor_1_01.png", add_mos={{image="terrain/icecave/icecave_door1_open_backg.png"}}, add_displays = {class.new{image="terrain/icecave/icecave_door1_open.png", z=17}, class.new{image="terrain/icecave/icecavewall_8_2.png", z=18, display_y=-1}}, door_closed = "ICECAVE_DOOR_HORIZ"}
newEntity{ base = "ICECAVE_DOOR", define_as = "ICECAVE_DOOR_VERT", image = "terrain/icecave/icecave_floor_1_01.png", add_displays = {class.new{image="terrain/icecave/icecave_door1_vert.png", z=17}, class.new{image="terrain/icecave/icecave_door1_vert_north.png", z=18, display_y=-1}}, door_opened = "ICECAVE_DOOR_OPEN_VERT", dig = "ICECAVE_DOOR_OPEN_VERT"}
newEntity{ base = "ICECAVE_DOOR_OPEN", define_as = "ICECAVE_DOOR_OPEN_VERT", z=3, image = "terrain/icecave/icecave_floor_1_01.png", add_mos={{image="terrain/icecave/icecave_door1_open_vert_backg.png"}}, add_displays = {class.new{image="terrain/icecave/icecave_door1_open_vert.png", z=17}, class.new{image="terrain/icecave/icecave_door1_open_vert_north.png", z=18, display_y=-1}}, door_closed = "ICECAVE_DOOR_VERT"}
-----------------------------------------
-- Cavy exits
......
game/modules/tome/data/gfx/shockbolt/terrain/icecave/icecave_door1_open.png

13 KiB | W: | H:

game/modules/tome/data/gfx/shockbolt/terrain/icecave/icecave_door1_open.png

12.3 KiB | W: | H:

game/modules/tome/data/gfx/shockbolt/terrain/icecave/icecave_door1_open.png
game/modules/tome/data/gfx/shockbolt/terrain/icecave/icecave_door1_open.png
game/modules/tome/data/gfx/shockbolt/terrain/icecave/icecave_door1_open.png
game/modules/tome/data/gfx/shockbolt/terrain/icecave/icecave_door1_open.png
  • 2-up
  • Swipe
  • Onion skin
game/modules/tome/data/gfx/shockbolt/terrain/icecave/icecave_door1_open_backg.png

6.8 KiB

game/modules/tome/data/gfx/shockbolt/terrain/icecave/icecave_door1_open_vert.png

12.5 KiB | W: | H:

game/modules/tome/data/gfx/shockbolt/terrain/icecave/icecave_door1_open_vert.png

7.95 KiB | W: | H:

game/modules/tome/data/gfx/shockbolt/terrain/icecave/icecave_door1_open_vert.png
game/modules/tome/data/gfx/shockbolt/terrain/icecave/icecave_door1_open_vert.png
game/modules/tome/data/gfx/shockbolt/terrain/icecave/icecave_door1_open_vert.png
game/modules/tome/data/gfx/shockbolt/terrain/icecave/icecave_door1_open_vert.png
  • 2-up
  • Swipe
  • Onion skin
game/modules/tome/data/gfx/shockbolt/terrain/icecave/icecave_door1_open_vert_backg.png

9.84 KiB

game/modules/tome/data/gfx/shockbolt/terrain/icecave/icecave_door1_open_vert_north.png

7.43 KiB | W: | H:

game/modules/tome/data/gfx/shockbolt/terrain/icecave/icecave_door1_open_vert_north.png

8.34 KiB | W: | H:

game/modules/tome/data/gfx/shockbolt/terrain/icecave/icecave_door1_open_vert_north.png
game/modules/tome/data/gfx/shockbolt/terrain/icecave/icecave_door1_open_vert_north.png
game/modules/tome/data/gfx/shockbolt/terrain/icecave/icecave_door1_open_vert_north.png
game/modules/tome/data/gfx/shockbolt/terrain/icecave/icecave_door1_open_vert_north.png
  • 2-up
  • Swipe
  • Onion skin
game/modules/tome/data/gfx/shockbolt/terrain/icecave/icecave_door1_vert_north.png

7.38 KiB | W: | H:

game/modules/tome/data/gfx/shockbolt/terrain/icecave/icecave_door1_vert_north.png

8.92 KiB | W: | H:

game/modules/tome/data/gfx/shockbolt/terrain/icecave/icecave_door1_vert_north.png
game/modules/tome/data/gfx/shockbolt/terrain/icecave/icecave_door1_vert_north.png
game/modules/tome/data/gfx/shockbolt/terrain/icecave/icecave_door1_vert_north.png
game/modules/tome/data/gfx/shockbolt/terrain/icecave/icecave_door1_vert_north.png
  • 2-up
  • Swipe
  • Onion skin
game/modules/tome/data/gfx/shockbolt/terrain/icecave/icecavewall_5_3.png

11.6 KiB | W: | H:

game/modules/tome/data/gfx/shockbolt/terrain/icecave/icecavewall_5_3.png

11.5 KiB | W: | H:

game/modules/tome/data/gfx/shockbolt/terrain/icecave/icecavewall_5_3.png
game/modules/tome/data/gfx/shockbolt/terrain/icecave/icecavewall_5_3.png
game/modules/tome/data/gfx/shockbolt/terrain/icecave/icecavewall_5_3.png
game/modules/tome/data/gfx/shockbolt/terrain/icecave/icecavewall_5_3.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -84,7 +84,7 @@ newTalent{
no_npc_use = true,
range = function(self, t) return math.ceil(self:getTalentLevel(t) + 5) end,
action = function(self, t)
local tg = {type="bolt", nowarning=true, range=self:getTalentRange(t), nolock=true, talent=t}
local tg = {type="bolt", nowarning=true, range=self:getTalentRange(t), nolock=true, simple_dir_request=true, talent=t}
local tx, ty, target = self:getTarget(tg)
if not tx or not ty then return nil end
local _ _, _, _, tx, ty = self:canProject(tg, tx, ty)
......@@ -245,7 +245,7 @@ newTalent{
tactical = { ATTACKAREA = { FIRE = 2 } },
no_unlearn_last = true,
action = function(self, t)
local tg = {type="bolt", nowarning=true, range=self:getTalentRange(t), nolock=true, talent=t}
local tg = {type="bolt", nowarning=true, range=self:getTalentRange(t), nolock=true, simple_dir_request=true, talent=t}
local x, y, target = self:getTarget(tg)
if not x or not y then return nil end
local _ _, x, y = self:canProject(tg, x, y)
......@@ -293,7 +293,7 @@ newTalent{
no_break_stealth = trap_stealth,
no_unlearn_last = true,
action = function(self, t)
local tg = {type="bolt", nowarning=true, range=self:getTalentRange(t), nolock=true, talent=t}
local tg = {type="bolt", nowarning=true, range=self:getTalentRange(t), nolock=true, simple_dir_request=true, talent=t}
local x, y, target = self:getTarget(tg)
if not x or not y then return nil end
local _ _, x, y = self:canProject(tg, x, y)
......@@ -345,7 +345,7 @@ newTalent{
no_break_stealth = trap_stealth,
no_unlearn_last = true,
action = function(self, t)
local tg = {type="bolt", nowarning=true, range=self:getTalentRange(t), nolock=true, talent=t}
local tg = {type="bolt", nowarning=true, range=self:getTalentRange(t), nolock=true, simple_dir_request=true, talent=t}
local x, y, target = self:getTarget(tg)
if not x or not y then return nil end
local _ _, x, y = self:canProject(tg, x, y)
......@@ -403,7 +403,7 @@ newTalent{
no_break_stealth = trap_stealth,
no_unlearn_last = true,
action = function(self, t)
local tg = {type="bolt", nowarning=true, range=self:getTalentRange(t), nolock=true, talent=t}
local tg = {type="bolt", nowarning=true, range=self:getTalentRange(t), nolock=true, simple_dir_request=true, talent=t}
local x, y, target = self:getTarget(tg)
if not x or not y then return nil end
local _ _, x, y = self:canProject(tg, x, y)
......@@ -455,7 +455,7 @@ newTalent{
no_break_stealth = trap_stealth,
no_unlearn_last = true,
action = function(self, t)
local tg = {type="bolt", nowarning=true, range=self:getTalentRange(t), nolock=true, talent=t}
local tg = {type="bolt", nowarning=true, range=self:getTalentRange(t), nolock=true, simple_dir_request=true, talent=t}
local x, y, target = self:getTarget(tg)
if not x or not y then return nil end
local _ _, x, y = self:canProject(tg, x, y)
......@@ -505,7 +505,7 @@ newTalent{
no_break_stealth = trap_stealth,
no_unlearn_last = true,
action = function(self, t)
local tg = {type="bolt", nowarning=true, range=self:getTalentRange(t), nolock=true, talent=t}
local tg = {type="bolt", nowarning=true, range=self:getTalentRange(t), nolock=true, simple_dir_request=true, talent=t}
local x, y, target = self:getTarget(tg)
if not x or not y then return nil end
local _ _, x, y = self:canProject(tg, x, y)
......@@ -564,7 +564,7 @@ newTalent{
no_break_stealth = trap_stealth,
no_unlearn_last = true,
action = function(self, t)
local tg = {type="bolt", nowarning=true, range=self:getTalentRange(t), nolock=true, talent=t}
local tg = {type="bolt", nowarning=true, range=self:getTalentRange(t), nolock=true, simple_dir_request=true, talent=t}
local x, y, target = self:getTarget(tg)
if not x or not y then return nil end
local _ _, x, y = self:canProject(tg, x, y)
......@@ -624,7 +624,7 @@ newTalent{
no_break_stealth = trap_stealth,
no_unlearn_last = true,
action = function(self, t)
local tg = {type="bolt", nowarning=true, range=self:getTalentRange(t), nolock=true, talent=t}
local tg = {type="bolt", nowarning=true, range=self:getTalentRange(t), nolock=true, simple_dir_request=true, talent=t}
local x, y, target = self:getTarget(tg)
if not x or not y then return nil end
local _ _, x, y = self:canProject(tg, x, y)
......
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