Pet Power Item Focus
The following snippet provides the implementation for pet power item focus. The focus has been setup to provide a prescribed percentage increase, which should scale with level nicely.
Code has been pre-tested locally for bugs. {Zone\spdat.h} find (line ~241) Code:
#define SE_PetPowerIncrease 167 //not implemented, base % increase of pet stuff Code:
#define SE_PetPowerIncrease 167 //percentage boost to pet HP, min/max damage, min/max HP find (line ~88) Code:
typedef enum { //focus types Code:
focusPetPower find (line ~3269) Code:
case SE_ReduceManaCost: Code:
case SE_PetPowerIncrease: in void MakePet, around line 190, find the following: Code:
memcpy(npc_type, base, sizeof(NPCType)); Code:
// focus effects only apply for client casters |
Why not make the focus item effect relevant?
Mages have lots of various pet focus items that effect levels and some only certain types of pets. |
Quote:
The reason that the Pet Power(int x) is not being used as a scale is because I did research on what x represents and found many large posts about how it has no relevance at all: there are items with lower x than others which provide a stronger effect. Therefore, this will work for now until someone with greater motivation than I maps out which focus effects should be stronger/weaker than others. |
What a thoughtful present, it is a material good, I like it.
เกมบาคาร่า |
All times are GMT -4. The time now is 09:51 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.