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

Golem can levelup past level 50 in the ID

git-svn-id: http://svn.net-core.org/repos/t-engine4@5533 51575b47-30f0-44d4-a5cc-537603b46e54
parent fa94969e
No related branches found
No related tags found
No related merge requests found
...@@ -26,8 +26,8 @@ function getGolem(self) ...@@ -26,8 +26,8 @@ function getGolem(self)
end end
end end
local function makeGolem() local function makeGolem(self)
return require("mod.class.NPC").new{ local g = require("mod.class.NPC").new{
type = "construct", subtype = "golem", type = "construct", subtype = "golem",
display = 'g', color=colors.WHITE, image = "npc/alchemist_golem.png", display = 'g', color=colors.WHITE, image = "npc/alchemist_golem.png",
moddable_tile = "runic_golem", moddable_tile = "runic_golem",
...@@ -131,6 +131,13 @@ local function makeGolem() ...@@ -131,6 +131,13 @@ local function makeGolem()
no_breath = 1, no_breath = 1,
can_change_level = true, can_change_level = true,
} }
if self.no_points_on_levelup then
g.max_level = nil
g.no_points_on_levelup = self.no_points_on_levelup
end
return g
end end
newTalent{ newTalent{
...@@ -148,7 +155,7 @@ newTalent{ ...@@ -148,7 +155,7 @@ newTalent{
end, end,
action = function(self, t) action = function(self, t)
if not self.alchemy_golem then if not self.alchemy_golem then
self.alchemy_golem = game.zone:finishEntity(game.level, "actor", makeGolem()) self.alchemy_golem = game.zone:finishEntity(game.level, "actor", makeGolem(self))
if game.party:hasMember(self) then if game.party:hasMember(self) then
game.party:addMember(self.alchemy_golem, { game.party:addMember(self.alchemy_golem, {
control="full", type="golem", title="Golem", control="full", type="golem", title="Golem",
......
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