Mage Focus Makes Tiny Pets Fix
I finished my lower level mage focus item quests from Temple of Sol Ro to discover that the focus effect summons a laughably tiny pet. Although it was a cute lil guy i missed the beefy bigger pet from gaining the bonuses.
I took a dive into the source to figure out where it went wrong. I came down to the following line in zone/pets.cpp Code:
npc_type->size = npc_type->size * (1 + (scale_power / 2)) > npc_type->size * 3 ? npc_type->size * 3 : 1 + (scale_power / 2); npc_type->size = 4 (from SummonFireR9) scale_power = .05 (evaluated from float scale_power = (float)act_power / 100.0f;) where act_power = +5 with the Torch of Alna effect (Minion of Fire) So the formula evaluates to: 4 * (1 + (.05 /2)) > 4 * 3 = FALSE so 1 + (.05 /2) is the size to be used, which equals 1.025 - that would make a very small pet. I believe there is possibly a missing "npc_type->size *" before the ( 1+ (scale_power / 2)). By adding this, it changes the formula to: 4 + (.05/2) = 5.25, a size that is bigger than the default 4 but by only 28% or so which makes sense. So the line should be updated to say: Code:
npc_type->size = npc_type->size * (1 + (scale_power / 2)) > npc_type->size * 3 ? npc_type->size * 3 : npc_type->size * (1 + (scale_power / 2) I am not sure what other repercussions have been introduced with this change but it did fix the mage pet focus issue for me. |
Pet focuses suck. They're horribly implemented on live. There really shouldn't be any code deciding on their stats at all, they really define a new NPC on live, which is what we should be doing :P
Proof: http://mysticallightfighters.com/ima...er/sodpets.jpg that's based on data given to a dev. |
Quote:
|
Quote:
The auto-scaling in code should not exist in a live-like environment. |
Quote:
|
Quote:
But yeah, I got all the low level mag focus items now ... just need to parse out their everything -.- |
Looks like the present code is mostly emulating the really old trilogy rules where your pet gets a rank bump on focus. Thats fine for the lower level stuff which is where i'm playing now, but after reviewing that chart, it really needs a different approach like you said.
I haven't played live since Luclin so I have a hell of a lot of catching up all the rules since. I'd like to take a stab at some pet code later. |
For now.. till a new system is made that line of code is working again.
|
I don't suppose there is a backlog built for pet code? Getting excited after reading:
http://www.eqmagetower.com/forums/viewtopic.php?t=2789 Do pets properly equip armor and haste/toy items? I see weapons work pretty good. |
All times are GMT -4. The time now is 10:01 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.