mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-23 15:20:52 +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) {
|
public void scratched(Habbo habbo) {
|
||||||
AchievementManager.progressAchievement(habbo, Emulator.getGameEnvironment().getAchievementManager().getAchievement("MonsterPlantTreater"), 5);
|
AchievementManager.progressAchievement(habbo, Emulator.getGameEnvironment().getAchievementManager().getAchievement("MonsterPlantTreater"), 5);
|
||||||
this.setDeathTimestamp(Emulator.getIntUnixTimestamp() + MonsterplantPet.timeToLive);
|
this.setDeathTimestamp(Emulator.getIntUnixTimestamp() + MonsterplantPet.timeToLive);
|
||||||
|
this.addHappyness(10);
|
||||||
this.addExperience(10);
|
this.addExperience(10);
|
||||||
this.room.sendComposer(new PetStatusUpdateComposer(this).compose());
|
this.room.sendComposer(new PetStatusUpdateComposer(this).compose());
|
||||||
this.room.sendComposer(new RoomPetRespectComposer(this, RoomPetRespectComposer.PET_TREATED).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) {
|
public void scratched(Habbo habbo) {
|
||||||
this.addHappyness(10);
|
this.addHappyness(10);
|
||||||
|
this.addExperience(10);
|
||||||
this.addRespect();
|
this.addRespect();
|
||||||
|
|
||||||
if (habbo != null) {
|
if (habbo != null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user