Fix pet scratch happiness and xp

This commit is contained in:
Beny 2019-05-28 01:15:07 +01:00
parent 55e45f1463
commit 820388bb6f
2 changed files with 2 additions and 0 deletions

View File

@ -361,6 +361,7 @@ public class MonsterplantPet extends Pet implements IPetLook {
public void scratched(Habbo habbo) {
AchievementManager.progressAchievement(habbo, Emulator.getGameEnvironment().getAchievementManager().getAchievement("MonsterPlantTreater"), 5);
this.setDeathTimestamp(Emulator.getIntUnixTimestamp() + MonsterplantPet.timeToLive);
this.addHappyness(10);
this.addExperience(10);
this.room.sendComposer(new PetStatusUpdateComposer(this).compose());
this.room.sendComposer(new RoomPetRespectComposer(this, RoomPetRespectComposer.PET_TREATED).compose());

View File

@ -575,6 +575,7 @@ public class Pet implements ISerialize, Runnable {
public void scratched(Habbo habbo) {
this.addHappyness(10);
this.addExperience(10);
this.addRespect();
if (habbo != null) {