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

fix Multiply

git-svn-id: http://svn.net-core.org/repos/t-engine4@490 51575b47-30f0-44d4-a5cc-537603b46e54
parent c94387e0
No related branches found
No related tags found
No related merge requests found
......@@ -42,14 +42,12 @@ newTalent{
a.energy.val = 0
a.exp_worth = 0.1
a.inven = {}
a.x, a.y = nil, nil
if a.can_multiply <= 0 then a:unlearnTalent(t.id) end
print(x, y, "::", game.level.map(x,y,Map.ACTOR))
print("multiplied", a.can_multiply, "uids", self.uid,"=>",a.uid, "::", self.player, a.player)
a:move(x, y, true)
game.level:addEntity(a)
a:added()
print("[MULTIPLY]", x, y, "::", game.level.map(x,y,Map.ACTOR))
print("[MULTIPLY]", a.can_multiply, "uids", self.uid,"=>",a.uid, "::", self.player, a.player)
game.zone:addEntity(game.level, a, "actor", x, y)
return true
end,
info = function(self)
......
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