mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-23 07:20:50 +01:00
Fix pet scratch happiness and xp
This commit is contained in:
parent
55e45f1463
commit
820388bb6f
@ -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());
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user