mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-09-12 03:34:15 +02:00
34 lines
941 B
Java
34 lines
941 B
Java
![]() |
package com.eu.habbo.habbohotel.pets.actions;
|
||
|
|
||
|
import com.eu.habbo.Emulator;
|
||
|
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.users.Habbo;
|
||
|
import com.eu.habbo.threading.runnables.PetFollowHabbo;
|
||
|
|
||
|
public class ActionFollowRight extends PetAction
|
||
|
{
|
||
|
public ActionFollowRight()
|
||
|
{
|
||
|
super(PetTasks.FOLLOW, true);
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public boolean apply(Pet pet, Habbo habbo, String[] data)
|
||
|
{
|
||
|
//Follow right.
|
||
|
pet.clearPosture();
|
||
|
|
||
|
Emulator.getThreading().run(new PetFollowHabbo(pet, habbo, + 2));
|
||
|
|
||
|
if(pet.getHappyness() > 75)
|
||
|
pet.say(pet.getPetData().randomVocal(PetVocalsType.PLAYFUL));
|
||
|
else
|
||
|
pet.say(pet.getPetData().randomVocal(PetVocalsType.GENERIC_NEUTRAL));
|
||
|
|
||
|
return true;
|
||
|
}
|
||
|
}
|