[1.6.7] Golem not leveling up on reactivation

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
Zizzo
Sher'Tul Godslayer
Posts: 2523
Joined: Thu Jan 23, 2003 8:13 pm
Location: A shallow water area south of Bree
Contact:

[1.6.7] Golem not leveling up on reactivation

#1 Post 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.
"Blessed are the yeeks, for they shall inherit Arda..."

TE4User
Yeek
Posts: 14
Joined: Sat Sep 28, 2019 5:29 pm

Re: [1.6.7] Golem not leveling up on reactivation

#2 Post 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.

Zizzo
Sher'Tul Godslayer
Posts: 2523
Joined: Thu Jan 23, 2003 8:13 pm
Location: A shallow water area south of Bree
Contact:

Re: [1.6.7] Golem not leveling up on reactivation

#3 Post 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.
"Blessed are the yeeks, for they shall inherit Arda..."

TE4User
Yeek
Posts: 14
Joined: Sat Sep 28, 2019 5:29 pm

Re: [1.6.7] Golem not leveling up on reactivation

#4 Post 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...

Post Reply