Update ActionFlat.java

This commit is contained in:
Oliver 2022-05-02 23:32:03 +00:00
parent 4faf9a4f21
commit f8365d7753

View File

@ -19,15 +19,15 @@ public class ActionFlat extends PetAction {
// flat attack
@Override
public boolean apply(Pet pet, Habbo habbo, String[] data) {
if (pet.getHappyness() > 30) {
Emulator.getThreading().run(new PetClearPosture(pet, RoomUnitStatus.FLAT, null, false), this.minimumActionDuration);
pet.say(pet.getPetData().randomVocal(PetVocalsType.GENERIC_NEUTRAL));
return true;
if (pet.getHappyness() > 80) {
pet.say(pet.getPetData().randomVocal(PetVocalsType.PLAYFUL));
} else {
pet.say(pet.getPetData().randomVocal(PetVocalsType.DISOBEY));
return false;
pet.say(pet.getPetData().randomVocal(PetVocalsType.GENERIC_NEUTRAL));
}
return true;
}
}