Skip to content
Snippets Groups Projects
Commit 013e1487 authored by dg's avatar dg
Browse files

fix

git-svn-id: http://svn.net-core.org/repos/t-engine4@3696 51575b47-30f0-44d4-a5cc-537603b46e54
parent 669a0942
No related branches found
No related tags found
No related merge requests found
......@@ -37,11 +37,11 @@ function _M:bumpInto(target)
elseif reaction >= 0 then
-- Talk ?
if self.player and target.can_talk then
local chat = Chat.new(target.can_talk, target, self)
local chat = Chat.new(target.can_talk, target, self, {npc=target, player=self})
chat:invoke()
if target.can_talk_only_once then target.can_talk = nil end
elseif target.player and self.can_talk then
local chat = Chat.new(self.can_talk, self, target)
local chat = Chat.new(self.can_talk, self, target, {npc=self, player=target})
chat:invoke()
if target.can_talk_only_once then target.can_talk = nil end
elseif self.move_others and not target.cant_be_moved then
......
......@@ -19,8 +19,6 @@
-- This is simply and example of how to use levers, not a real ingame vault
setStatusAll{no_teleport=true}
defineTile('.', "FLOOR")
defineTile('=', "FLOOR", nil, nil, nil, {foobar=true})
defineTile('&', "GENERIC_LEVER", nil, nil, nil, {lever=1, lever_kind="foo", lever_radius=10, lever_block="foobar"})
......@@ -32,11 +30,6 @@ defineTile('"', "FLOOR", nil, nil, nil, {lever_action_value=0, lever_action_only
end
end})
rotates = {"default", "90", "180", "270", "flipx", "flipy"}
startx = 5
starty = 0
return {
[[...........]],
[[...+.......]],
......
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