Skip to content

1.9.7.3737

Compare
Choose a tag to compare
@dol-leodagan dol-leodagan released this 02 May 11:28
8e92ee3
Added doppelganger class (#218)

* Added

An abstract class that summons a pet using settings from an inheriting class.

* Added

* Added zero check for SummonSpellValue

Some pet summoning spells have value=0, which will force those pets to be level 1.

* Added Doppelganger.cs & GameSummoner.cs

* Added doppelganger properties

Added properties for realm & bounty point vlaues for doppelgangers

* Exempted doppelgangers from RP and BP caps

* Exempted doppelgangers from RP and BP caps

* Added support for PetSummonThreshold > 100%

Also:
Added PetResummonTime accessor.
Changed SummonThreshold to PetSummonThreshold to match other accessors.
Changed to override TakeDamage() to move a lot of check out of Health.set
Removed torch flag from code; it should be done in the DB anyway.

This still needs a little work for PetSummonThreshold > 100%, and likely an entire new GamePet variation is needed for NPC pets.

* Doppels retain their disguise until 50% health

This makes doppels a little more interesting by not having them change forms the moment they're attacked.