User:Soniccuz: Difference between revisions

Content deleted Content added
imported>Soniccuz
imported>Soniccuz
Line 107:
 
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);
Line 121:
}
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.'''
Getting familiar with PetOwner.java, PetManager.java, and PlayerTransformer.placeSheepAndPetIntoWorld(player). Seemingly the only things that reference methods to store and retrieve pets.'''