mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-07-15 02:25:34 +02:00
31 lines
1003 B
Java
31 lines
1003 B
Java
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;
|
|
|
|
public class ActionStand extends PetAction {
|
|
public ActionStand() {
|
|
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
|
|
public boolean apply(Pet pet, Habbo habbo, String[] data) {
|
|
pet.clearPosture();
|
|
|
|
if (pet.getHappyness() > 30)
|
|
pet.say(pet.getPetData().randomVocal(PetVocalsType.PLAYFUL));
|
|
else
|
|
pet.say(pet.getPetData().randomVocal(PetVocalsType.GENERIC_NEUTRAL));
|
|
|
|
return true;
|
|
}
|
|
}
|