Page 1 of 1

[1.6.7] Golem not leveling up on reactivation

Posted: Mon Mar 09, 2020 3:53 am
by Zizzo
It's not uncommon for an Alchemist to gain a level while the golem is out of commission (boss fights, for instance, frequently go this way). In previous versions, the level-up would be applied to the golem as soon as you brought it back. In the current version, though, this doesn't happen; the golem is only leveled up if it is present when the player levels up, at which point it "catches up" to the player level if it missed any.

The culprit appears to be this code in engine.Zone:addEntity():

Code: Select all

if self.actor_adjust_level and e.forceLevelup and not e._actor_adjust_level_applied then
	local newlevel = self:actor_adjust_level(level, e)
	e:forceLevelup(newlevel + (e.__forced_level or 0))
	e._actor_adjust_level_applied = true
end
The "_actor_adjust_level_applied" field is apparently new; my guess is that the golem gets flagged with this when it's first placed on the map, or the first time it's brought back, blocking subsequent level-ups when it's restored.

Re: [1.6.7] Golem not leveling up on reactivation

Posted: Mon Mar 09, 2020 8:51 am
by TE4User
This also affects other permanent summons (notably the Worm that Walks pet) and was the case already in prior versions of 1.6 as reported earlier: link.

Re: [1.6.7] Golem not leveling up on reactivation

Posted: Wed Mar 11, 2020 3:47 am
by Zizzo
Ah, should have looked harder for bug reports before posting; We Apologize for the Inconvenience.™ :oops: And fair point; when I said "previous version", I was thinking of the 1.5 series, which I probably should have been clearer about.

Re: [1.6.7] Golem not leveling up on reactivation

Posted: Sat Aug 29, 2020 6:02 am
by TE4User
This bug persists in 1.70 beta4 - to recreate: be an alchemist at level 1, kill off your golem while still at level 1 and then kill something to get to level 2, then refit golem, it will be brought back as level 1. As Zizzo has a fix up as an addon it would be great to have that fixed in 1.7 without addon use...