From 7d529b0edf8ce25787d10c6a972c8a74416944d5 Mon Sep 17 00:00:00 2001 From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54> Date: Sun, 19 Aug 2012 22:25:00 +0000 Subject: [PATCH] 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 --- game/modules/tome/data/talents/spells/golemancy.lua | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/game/modules/tome/data/talents/spells/golemancy.lua b/game/modules/tome/data/talents/spells/golemancy.lua index ac55a0fd60..6988bacd75 100644 --- a/game/modules/tome/data/talents/spells/golemancy.lua +++ b/game/modules/tome/data/talents/spells/golemancy.lua @@ -26,8 +26,8 @@ function getGolem(self) end end -local function makeGolem() - return require("mod.class.NPC").new{ +local function makeGolem(self) + local g = require("mod.class.NPC").new{ type = "construct", subtype = "golem", display = 'g', color=colors.WHITE, image = "npc/alchemist_golem.png", moddable_tile = "runic_golem", @@ -131,6 +131,13 @@ local function makeGolem() no_breath = 1, 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 newTalent{ @@ -148,7 +155,7 @@ newTalent{ end, action = function(self, t) 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 game.party:addMember(self.alchemy_golem, { control="full", type="golem", title="Golem", -- GitLab