Remove Hardcodes & Add Vocals Beg.java

This commit is contained in:
Oliver 2022-05-02 23:27:47 +00:00
parent 79431a73e2
commit f910f7b23b

View File

@ -17,10 +17,11 @@ public class ActionBeg extends PetAction {
public boolean apply(Pet pet, Habbo habbo, String[] data) { public boolean apply(Pet pet, Habbo habbo, String[] data) {
pet.clearPosture(); pet.clearPosture();
if (pet.getHappyness() > 90) if (pet.getHappyness() > 60) {
pet.say(pet.getPetData().randomVocal(PetVocalsType.PLAYFUL)); pet.say(pet.getPetData().randomVocal(PetVocalsType.PLAYFUL));
else } else {
pet.say(pet.getPetData().randomVocal(PetVocalsType.GENERIC_NEUTRAL)); pet.say(pet.getPetData().randomVocal(PetVocalsType.GENERIC_NEUTRAL));
}
return true; return true;
} }