Skip to content

1.9.7.3664

Choose a tag to compare

@dol-leodagan dol-leodagan released this 28 Dec 23:57
Give DB more control over pets (#126)

* Exposed min and max stick range constants

These should be exposed, as follow can be called outside of GameNPC.

Also changed a few readonly statics to consts.

* Reverting back to master

Accidentally uploaded a file to my master branch.  Reverting changes

* Added: # of subpets controlled by npctemplate

This gives more control over BD pets by having the number of subpets each commander can control be determined by NpcTemplate.TetherRange.

Since the old code is still used when TetherRange <=0, this shouldn't change anything on existing servers.

* New: ClassType of Pets determined by NPCTemplate

This uses the ClassType from a pet's NPCTemplate to determine which brain a pet gets.

GetPetBrain() is still used if ClassType is null or "", so this won't impact existing servers.