From e3f4d2898c4663a821759842a2eacd94626a4164 Mon Sep 17 00:00:00 2001 From: Oliver Date: Mon, 11 Apr 2022 13:00:26 +0000 Subject: [PATCH] Fix ActionCroak --- .../habbo/habbohotel/pets/actions/ActionCroak.java | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/eu/habbo/habbohotel/pets/actions/ActionCroak.java b/src/main/java/com/eu/habbo/habbohotel/pets/actions/ActionCroak.java index 6ad3b69f..bd165833 100644 --- a/src/main/java/com/eu/habbo/habbohotel/pets/actions/ActionCroak.java +++ b/src/main/java/com/eu/habbo/habbohotel/pets/actions/ActionCroak.java @@ -21,8 +21,18 @@ public class ActionCroak extends PetAction { Emulator.getThreading().run(new PetClearPosture(pet, RoomUnitStatus.CROAK, null, false), 2000); - if (pet.getHappyness() > 80) - pet.say(pet.getPetData().randomVocal(PetVocalsType.PLAYFUL)); + if (pet.getHappyness() > 70) + pet.say(pet.getPetData().randomVocal(PetVocalsType.GENERIC_HAPPY)); + else if (pet.getHappyness() < 30) + pet.say(pet.getPetData().randomVocal(PetVocalsType.GENERIC_SAD)); + else if (pet.getLevelHunger() > 65) + pet.say(pet.getPetData().randomVocal(PetVocalsType.HUNGRY)); + else if (pet.getLevelThirst() > 65) + pet.say(pet.getPetData().randomVocal(PetVocalsType.THIRSTY)); + else if (pet.getEnergy() < 25) + pet.say(pet.getPetData().randomVocal(PetVocalsType.TIRED)); + else if (pet.getTask() == PetTasks.NEST || pet.getTask() == PetTasks.DOWN) + pet.say(pet.getPetData().randomVocal(PetVocalsType.SLEEPING)); return true; }