User:Soniccuz: Difference between revisions

Jump to navigation Jump to search
Content deleted Content added
imported>Soniccuz
imported>Soniccuz
Line 103: Line 103:
player.getPet().getName());
player.getPet().getName());
'''This will net the pet type/species not title. Huzzah! I'm learning. :)'''
'''This will net the pet type/species not title. Huzzah! I'm learning. :)'''

---

if (zone.isTeleportInAllowed(player.getX(), player.getY())) {
final Item summonPetScroll = SingletonRepository.getEntityManager().getItem(
"summon pet scroll");
summonPetScroll.setInfoString(petName);
player.equipOrPutOnGround(summonPetScroll);
final Pet pet = player.getPet();

if (pet != null) {
petOwner.storePet(pet);
//pet.getZone().remove(pet);
player.sendPrivateText("Amazingly your pet melds with the scroll. It just walked right into the page!");
}
return true;

'''Progress: adult dragons are still separate from there baby forms. Summon Pet Scrolls are actually a thing now.
Currently sussing how to get them to save and load pet stats instead of simply recording the type and creating a brand new pet with fresh stats.
Getting familiar with PetOwner.java, PetManager.java, and PlayerTransformer.placeSheepAndPetIntoWorld(player). Seemingly the only things that reference methods to store and retrieve pets.'''



==Pet System Ideas==
==Pet System Ideas==