mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-07-15 10:35:32 +02:00
32 lines
1023 B
Java
32 lines
1023 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 ActionDown extends PetAction
|
||
|
{
|
||
|
public ActionDown()
|
||
|
{
|
||
|
super(PetTasks.DOWN, true);
|
||
|
this.statusToRemove.add(RoomUnitStatus.MOVE);
|
||
|
this.statusToRemove.add(RoomUnitStatus.SIT);
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public boolean apply(Pet pet, Habbo habbo, String[] data)
|
||
|
{
|
||
|
pet.getRoomUnit().setStatus(RoomUnitStatus.LAY, pet.getRoom().getStackHeight(pet.getRoomUnit().getX(), pet.getRoomUnit().getY(), false) + "");
|
||
|
|
||
|
if(pet.getHappyness() > 50)
|
||
|
pet.say(pet.getPetData().randomVocal(PetVocalsType.PLAYFUL));
|
||
|
else
|
||
|
pet.say(pet.getPetData().randomVocal(PetVocalsType.GENERIC_NEUTRAL));
|
||
|
|
||
|
return true;
|
||
|
}
|
||
|
}
|