Arcturus-Community/src/main/java/com/eu/habbo/habbohotel/pets/actions/ActionStand.java

31 lines
1003 B
Java
Raw Normal View History

2018-09-12 18:45:00 +02:00
package com.eu.habbo.habbohotel.pets.actions;
import com.eu.habbo.habbohotel.pets.Pet;
import com.eu.habbo.habbohotel.pets.PetAction;
import com.eu.habbo.habbohotel.pets.PetTasks;
import com.eu.habbo.habbohotel.pets.PetVocalsType;
import com.eu.habbo.habbohotel.rooms.RoomUnitStatus;
import com.eu.habbo.habbohotel.users.Habbo;
2019-05-26 20:14:53 +02:00
public class ActionStand extends PetAction {
public ActionStand() {
2018-09-12 18:45:00 +02:00
super(PetTasks.STAND, true);
this.statusToRemove.add(RoomUnitStatus.MOVE);
this.statusToRemove.add(RoomUnitStatus.LAY);
this.statusToRemove.add(RoomUnitStatus.DEAD);
this.statusToRemove.add(RoomUnitStatus.LAY);
}
@Override
2019-05-26 20:14:53 +02:00
public boolean apply(Pet pet, Habbo habbo, String[] data) {
2018-09-12 18:45:00 +02:00
pet.clearPosture();
2019-05-26 20:14:53 +02:00
if (pet.getHappyness() > 30)
2018-09-12 18:45:00 +02:00
pet.say(pet.getPetData().randomVocal(PetVocalsType.PLAYFUL));
else
pet.say(pet.getPetData().randomVocal(PetVocalsType.GENERIC_NEUTRAL));
return true;
}
}