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 // flat attack
@Override @Override
public boolean apply(Pet pet, Habbo habbo, String[] data) { public boolean apply(Pet pet, Habbo habbo, String[] data) {
Emulator.getThreading().run(new PetClearPosture(pet, RoomUnitStatus.FLAT, null, false), this.minimumActionDuration);
pet.say(pet.getPetData().randomVocal(PetVocalsType.GENERIC_NEUTRAL));
if (pet.getHappyness() > 30) { if (pet.getHappyness() > 80) {
Emulator.getThreading().run(new PetClearPosture(pet, RoomUnitStatus.FLAT, null, false), this.minimumActionDuration); pet.say(pet.getPetData().randomVocal(PetVocalsType.PLAYFUL));
pet.say(pet.getPetData().randomVocal(PetVocalsType.GENERIC_NEUTRAL));
return true;
} else { } else {
pet.say(pet.getPetData().randomVocal(PetVocalsType.DISOBEY)); pet.say(pet.getPetData().randomVocal(PetVocalsType.GENERIC_NEUTRAL));
return false;
} }
return true;
} }
} }