nullables

This commit is contained in:
brenoepic 2022-04-29 22:46:53 -03:00
parent 176cf2c218
commit b783182e7f
2 changed files with 2 additions and 3 deletions

View File

@ -63,8 +63,7 @@ public class InteractionBattleBanzaiPuck extends InteractionPushable {
@Override @Override
public int getNextRollDelay(int currentStep, int totalSteps) { public int getNextRollDelay(int currentStep, int totalSteps) {
int t = 2500; return (totalSteps == 1) ? 500 : 100 + (currentStep * 100);
return (totalSteps == 1) ? 500 : 100 * ((t = t / t - 1) * t * t * t * t + 1) + (currentStep * 100);
} }
@Override @Override

View File

@ -51,7 +51,7 @@ public class InteractionTotemLegs extends InteractionDefault {
public void onClick(GameClient client, Room room, Object[] objects) throws Exception { public void onClick(GameClient client, Room room, Object[] objects) throws Exception {
super.onClick(client, room, objects); super.onClick(client, room, objects);
if (!((client != null && room != null && room.hasRights(client.getHabbo())) || (objects.length >= 2 && objects[1] instanceof WiredEffectType))) if (room == null || !((client != null && room.hasRights(client.getHabbo())) || (objects.length >= 2 && objects[1] instanceof WiredEffectType)))
return; return;
updateHead(room, room.getLayout().getTile(this.getX(), this.getY())); updateHead(room, room.getLayout().getTile(this.getX(), this.getY()));