From 820388bb6f080557fcdeb561ef7d61551c2ee8bc Mon Sep 17 00:00:00 2001 From: Beny Date: Tue, 28 May 2019 01:15:07 +0100 Subject: [PATCH] Fix pet scratch happiness and xp --- src/main/java/com/eu/habbo/habbohotel/pets/MonsterplantPet.java | 1 + src/main/java/com/eu/habbo/habbohotel/pets/Pet.java | 1 + 2 files changed, 2 insertions(+) diff --git a/src/main/java/com/eu/habbo/habbohotel/pets/MonsterplantPet.java b/src/main/java/com/eu/habbo/habbohotel/pets/MonsterplantPet.java index d683fd72..beea7293 100644 --- a/src/main/java/com/eu/habbo/habbohotel/pets/MonsterplantPet.java +++ b/src/main/java/com/eu/habbo/habbohotel/pets/MonsterplantPet.java @@ -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()); diff --git a/src/main/java/com/eu/habbo/habbohotel/pets/Pet.java b/src/main/java/com/eu/habbo/habbohotel/pets/Pet.java index 3278c90b..35275e72 100644 --- a/src/main/java/com/eu/habbo/habbohotel/pets/Pet.java +++ b/src/main/java/com/eu/habbo/habbohotel/pets/Pet.java @@ -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) {