Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public int method = 1;
- public boolean habboinroom = true;
- @Override
- public boolean canStillMove(Room room, RoomTile from, RoomTile to, RoomUserRotation direction, RoomUnit kicker, int nextRoll, int currentStep, int totalSteps)
- {
- method = (Math.random()*2+1);
- switch(method) {
- case 1:
- //TRASPASA
- habboinroom = !(room.hasHabbosAt(to.x, to.y));
- //supongo que traspasar es con !
- break;
- case 2:
- //NO TRASPASA
- habboinroom = (room.hasHabbosAt(to.x, to.y));
- //supongo que traspasar es SIN !
- break;
- }
- HabboItem topItem = room.getTopItemAt(from.x, from.y, this);
- return habboinroom || (topItem != null && topItem.getBaseItem().getName().startsWith("fball_goal_") && currentStep != 1);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement