From 4caedc516b0acd5c2403aa19299850949b201688 Mon Sep 17 00:00:00 2001 From: Beny Date: Fri, 24 May 2019 11:51:41 +0100 Subject: [PATCH] Reset state on creation for special interactions --- .../habbo/habbohotel/items/interactions/InteractionCannon.java | 2 ++ .../habbohotel/items/interactions/InteractionEffectGiver.java | 2 ++ .../habbo/habbohotel/items/interactions/InteractionFXBox.java | 2 ++ .../habbohotel/items/interactions/InteractionGuildGate.java | 2 ++ .../habbohotel/items/interactions/InteractionHabboClubGate.java | 2 ++ .../habbo/habbohotel/items/interactions/InteractionHopper.java | 2 ++ .../habbohotel/items/interactions/InteractionObstacle.java | 2 ++ .../habbohotel/items/interactions/InteractionOneWayGate.java | 2 ++ .../habbo/habbohotel/items/interactions/InteractionPetToy.java | 2 ++ .../habbohotel/items/interactions/InteractionPressurePlate.java | 2 ++ .../habbohotel/items/interactions/InteractionPushable.java | 2 ++ .../habbo/habbohotel/items/interactions/InteractionRoller.java | 2 ++ .../habbohotel/items/interactions/InteractionTeleport.java | 2 ++ .../habbo/habbohotel/items/interactions/InteractionWired.java | 2 ++ .../items/interactions/games/InteractionGameScoreboard.java | 2 ++ .../games/battlebanzai/InteractionBattleBanzaiSphere.java | 2 ++ .../games/battlebanzai/InteractionBattleBanzaiTeleporter.java | 2 ++ .../games/battlebanzai/InteractionBattleBanzaiTile.java | 2 ++ .../items/interactions/games/freeze/InteractionFreezeBlock.java | 2 ++ .../interactions/games/freeze/InteractionFreezeExitTile.java | 2 ++ .../items/interactions/games/freeze/InteractionFreezeTile.java | 2 ++ 21 files changed, 42 insertions(+) diff --git a/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionCannon.java b/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionCannon.java index b7070ec4..bde3b555 100644 --- a/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionCannon.java +++ b/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionCannon.java @@ -22,11 +22,13 @@ public class InteractionCannon extends HabboItem public InteractionCannon(ResultSet set, Item baseItem) throws SQLException { super(set, baseItem); + this.setExtradata("0"); } public InteractionCannon(int id, int userId, Item item, String extradata, int limitedStack, int limitedSells) { super(id, userId, item, extradata, limitedStack, limitedSells); + this.setExtradata("0"); } @Override diff --git a/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionEffectGiver.java b/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionEffectGiver.java index fcaf8e3c..30672f87 100644 --- a/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionEffectGiver.java +++ b/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionEffectGiver.java @@ -16,11 +16,13 @@ public class InteractionEffectGiver extends InteractionDefault public InteractionEffectGiver(ResultSet set, Item baseItem) throws SQLException { super(set, baseItem); + this.setExtradata("0"); } public InteractionEffectGiver(int id, int userId, Item item, String extradata, int limitedStack, int limitedSells) { super(id, userId, item, extradata, limitedStack, limitedSells); + this.setExtradata("0"); } @Override diff --git a/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionFXBox.java b/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionFXBox.java index 5b3de90a..ff235711 100644 --- a/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionFXBox.java +++ b/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionFXBox.java @@ -17,11 +17,13 @@ public class InteractionFXBox extends InteractionDefault public InteractionFXBox(ResultSet set, Item baseItem) throws SQLException { super(set, baseItem); + this.setExtradata("0"); } public InteractionFXBox(int id, int userId, Item item, String extradata, int limitedStack, int limitedSells) { super(id, userId, item, extradata, limitedStack, limitedSells); + this.setExtradata("0"); } @Override diff --git a/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionGuildGate.java b/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionGuildGate.java index ed4f241d..14bfe977 100644 --- a/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionGuildGate.java +++ b/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionGuildGate.java @@ -17,11 +17,13 @@ public class InteractionGuildGate extends InteractionGuildFurni public InteractionGuildGate(ResultSet set, Item baseItem) throws SQLException { super(set, baseItem); + this.setExtradata("0"); } public InteractionGuildGate(int id, int userId, Item item, String extradata, int limitedStack, int limitedSells) { super(id, userId, item, extradata, limitedStack, limitedSells); + this.setExtradata("0"); } @Override diff --git a/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionHabboClubGate.java b/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionHabboClubGate.java index 22262bb1..b980c8be 100644 --- a/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionHabboClubGate.java +++ b/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionHabboClubGate.java @@ -17,11 +17,13 @@ public class InteractionHabboClubGate extends InteractionGate public InteractionHabboClubGate(ResultSet set, Item baseItem) throws SQLException { super(set, baseItem); + this.setExtradata("0"); } public InteractionHabboClubGate(int id, int userId, Item item, String extradata, int limitedStack, int limitedSells) { super(id, userId, item, extradata, limitedStack, limitedSells); + this.setExtradata("0"); } @Override diff --git a/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionHopper.java b/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionHopper.java index 8d87ccea..d875904e 100644 --- a/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionHopper.java +++ b/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionHopper.java @@ -18,11 +18,13 @@ public class InteractionHopper extends HabboItem public InteractionHopper(ResultSet set, Item baseItem) throws SQLException { super(set, baseItem); + this.setExtradata("0"); } public InteractionHopper(int id, int userId, Item item, String extradata, int limitedStack, int limitedSells) { super(id, userId, item, extradata, limitedStack, limitedSells); + this.setExtradata("0"); } @Override diff --git a/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionObstacle.java b/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionObstacle.java index 8d65b93c..069cf12b 100644 --- a/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionObstacle.java +++ b/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionObstacle.java @@ -24,11 +24,13 @@ public class InteractionObstacle extends HabboItem public InteractionObstacle(ResultSet set, Item baseItem) throws SQLException { super(set, baseItem); + this.setExtradata("0"); } public InteractionObstacle(int id, int userId, Item item, String extradata, int limitedStack, int limitedSells) { super(id, userId, item, extradata, limitedStack, limitedSells); + this.setExtradata("0"); } @Override diff --git a/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionOneWayGate.java b/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionOneWayGate.java index a1c75eb9..01bb9101 100644 --- a/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionOneWayGate.java +++ b/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionOneWayGate.java @@ -23,11 +23,13 @@ public class InteractionOneWayGate extends HabboItem public InteractionOneWayGate(ResultSet set, Item baseItem) throws SQLException { super(set, baseItem); + this.setExtradata("0"); } public InteractionOneWayGate(int id, int userId, Item item, String extradata, int limitedStack, int limitedSells) { super(id, userId, item, extradata, limitedStack, limitedSells); + this.setExtradata("0"); } @Override diff --git a/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionPetToy.java b/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionPetToy.java index f3480976..d7ed49e6 100644 --- a/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionPetToy.java +++ b/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionPetToy.java @@ -19,11 +19,13 @@ public class InteractionPetToy extends InteractionDefault public InteractionPetToy(ResultSet set, Item baseItem) throws SQLException { super(set, baseItem); + this.setExtradata("0"); } public InteractionPetToy(int id, int userId, Item item, String extradata, int limitedStack, int limitedSells) { super(id, userId, item, extradata, limitedStack, limitedSells); + this.setExtradata("0"); } @Override diff --git a/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionPressurePlate.java b/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionPressurePlate.java index 276fb788..320d1b8a 100644 --- a/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionPressurePlate.java +++ b/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionPressurePlate.java @@ -18,11 +18,13 @@ public class InteractionPressurePlate extends HabboItem public InteractionPressurePlate(ResultSet set, Item baseItem) throws SQLException { super(set, baseItem); + this.setExtradata("0"); } public InteractionPressurePlate(int id, int userId, Item item, String extradata, int limitedStack, int limitedSells) { super(id, userId, item, extradata, limitedStack, limitedSells); + this.setExtradata("0"); } @Override diff --git a/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionPushable.java b/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionPushable.java index ce249088..4fe2a4f1 100644 --- a/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionPushable.java +++ b/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionPushable.java @@ -18,11 +18,13 @@ public abstract class InteractionPushable extends InteractionDefault { public InteractionPushable(ResultSet set, Item baseItem) throws SQLException { super(set, baseItem); + this.setExtradata("0"); } public InteractionPushable(int id, int userId, Item item, String extradata, int limitedStack, int limitedSells) { super(id, userId, item, extradata, limitedStack, limitedSells); + this.setExtradata("0"); } @Override diff --git a/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionRoller.java b/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionRoller.java index 0bc1b7fb..0eb24d07 100644 --- a/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionRoller.java +++ b/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionRoller.java @@ -21,11 +21,13 @@ public class InteractionRoller extends HabboItem public InteractionRoller(ResultSet set, Item baseItem) throws SQLException { super(set, baseItem); + this.setExtradata("0"); } public InteractionRoller(int id, int userId, Item item, String extradata, int limitedStack, int limitedSells) { super(id, userId, item, extradata, limitedStack, limitedSells); + this.setExtradata("0"); } @Override diff --git a/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionTeleport.java b/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionTeleport.java index e2648655..40ac0a73 100644 --- a/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionTeleport.java +++ b/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionTeleport.java @@ -30,12 +30,14 @@ public class InteractionTeleport extends HabboItem { super(set, baseItem); walkable = baseItem.allowWalk(); + this.setExtradata("0"); } public InteractionTeleport(int id, int userId, Item item, String extradata, int limitedStack, int limitedSells) { super(id, userId, item, extradata, limitedStack, limitedSells); walkable = item.allowWalk(); + this.setExtradata("0"); } @Override diff --git a/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionWired.java b/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionWired.java index d08f47c2..5e01f723 100644 --- a/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionWired.java +++ b/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionWired.java @@ -20,11 +20,13 @@ public abstract class InteractionWired extends HabboItem InteractionWired(ResultSet set, Item baseItem) throws SQLException { super(set, baseItem); + this.setExtradata("0"); } InteractionWired(int id, int userId, Item item, String extradata, int limitedStack, int limitedSells) { super(id, userId, item, extradata, limitedStack, limitedSells); + this.setExtradata("0"); } public abstract boolean execute(RoomUnit roomUnit, Room room, Object[] stuff); diff --git a/src/main/java/com/eu/habbo/habbohotel/items/interactions/games/InteractionGameScoreboard.java b/src/main/java/com/eu/habbo/habbohotel/items/interactions/games/InteractionGameScoreboard.java index cfad891b..a418d9ac 100644 --- a/src/main/java/com/eu/habbo/habbohotel/items/interactions/games/InteractionGameScoreboard.java +++ b/src/main/java/com/eu/habbo/habbohotel/items/interactions/games/InteractionGameScoreboard.java @@ -13,11 +13,13 @@ public abstract class InteractionGameScoreboard extends InteractionGameTeamItem protected InteractionGameScoreboard(ResultSet set, Item baseItem, GameTeamColors teamColor) throws SQLException { super(set, baseItem, teamColor); + this.setExtradata("0"); } protected InteractionGameScoreboard(int id, int userId, Item item, String extradata, int limitedStack, int limitedSells, GameTeamColors teamColor) { super(id, userId, item, extradata, limitedStack, limitedSells, teamColor); + this.setExtradata("0"); } @Override diff --git a/src/main/java/com/eu/habbo/habbohotel/items/interactions/games/battlebanzai/InteractionBattleBanzaiSphere.java b/src/main/java/com/eu/habbo/habbohotel/items/interactions/games/battlebanzai/InteractionBattleBanzaiSphere.java index 1bf15a3d..b1bafc2c 100644 --- a/src/main/java/com/eu/habbo/habbohotel/items/interactions/games/battlebanzai/InteractionBattleBanzaiSphere.java +++ b/src/main/java/com/eu/habbo/habbohotel/items/interactions/games/battlebanzai/InteractionBattleBanzaiSphere.java @@ -14,11 +14,13 @@ public class InteractionBattleBanzaiSphere extends HabboItem public InteractionBattleBanzaiSphere(ResultSet set, Item baseItem) throws SQLException { super(set, baseItem); + this.setExtradata("0"); } public InteractionBattleBanzaiSphere(int id, int userId, Item item, String extradata, int limitedStack, int limitedSells) { super(id, userId, item, extradata, limitedStack, limitedSells); + this.setExtradata("0"); } @Override diff --git a/src/main/java/com/eu/habbo/habbohotel/items/interactions/games/battlebanzai/InteractionBattleBanzaiTeleporter.java b/src/main/java/com/eu/habbo/habbohotel/items/interactions/games/battlebanzai/InteractionBattleBanzaiTeleporter.java index a49b0eff..d88b9603 100644 --- a/src/main/java/com/eu/habbo/habbohotel/items/interactions/games/battlebanzai/InteractionBattleBanzaiTeleporter.java +++ b/src/main/java/com/eu/habbo/habbohotel/items/interactions/games/battlebanzai/InteractionBattleBanzaiTeleporter.java @@ -19,11 +19,13 @@ public class InteractionBattleBanzaiTeleporter extends HabboItem public InteractionBattleBanzaiTeleporter(ResultSet set, Item baseItem) throws SQLException { super(set, baseItem); + this.setExtradata("0"); } public InteractionBattleBanzaiTeleporter(int id, int userId, Item item, String extradata, int limitedStack, int limitedSells) { super(id, userId, item, extradata, limitedStack, limitedSells); + this.setExtradata("0"); } @Override diff --git a/src/main/java/com/eu/habbo/habbohotel/items/interactions/games/battlebanzai/InteractionBattleBanzaiTile.java b/src/main/java/com/eu/habbo/habbohotel/items/interactions/games/battlebanzai/InteractionBattleBanzaiTile.java index ac5525fa..f955e4cc 100644 --- a/src/main/java/com/eu/habbo/habbohotel/items/interactions/games/battlebanzai/InteractionBattleBanzaiTile.java +++ b/src/main/java/com/eu/habbo/habbohotel/items/interactions/games/battlebanzai/InteractionBattleBanzaiTile.java @@ -21,11 +21,13 @@ public class InteractionBattleBanzaiTile extends HabboItem public InteractionBattleBanzaiTile(ResultSet set, Item baseItem) throws SQLException { super(set, baseItem); + this.setExtradata("0"); } public InteractionBattleBanzaiTile(int id, int userId, Item item, String extradata, int limitedStack, int limitedSells) { super(id, userId, item, extradata, limitedStack, limitedSells); + this.setExtradata("0"); } @Override diff --git a/src/main/java/com/eu/habbo/habbohotel/items/interactions/games/freeze/InteractionFreezeBlock.java b/src/main/java/com/eu/habbo/habbohotel/items/interactions/games/freeze/InteractionFreezeBlock.java index 0b753421..a1c97f8b 100644 --- a/src/main/java/com/eu/habbo/habbohotel/items/interactions/games/freeze/InteractionFreezeBlock.java +++ b/src/main/java/com/eu/habbo/habbohotel/items/interactions/games/freeze/InteractionFreezeBlock.java @@ -22,11 +22,13 @@ public class InteractionFreezeBlock extends HabboItem public InteractionFreezeBlock(ResultSet set, Item baseItem) throws SQLException { super(set, baseItem); + this.setExtradata("0"); } public InteractionFreezeBlock(int id, int userId, Item item, String extradata, int limitedStack, int limitedSells) { super(id, userId, item, extradata, limitedStack, limitedSells); + this.setExtradata("0"); } @Override diff --git a/src/main/java/com/eu/habbo/habbohotel/items/interactions/games/freeze/InteractionFreezeExitTile.java b/src/main/java/com/eu/habbo/habbohotel/items/interactions/games/freeze/InteractionFreezeExitTile.java index db721966..0ca61680 100644 --- a/src/main/java/com/eu/habbo/habbohotel/items/interactions/games/freeze/InteractionFreezeExitTile.java +++ b/src/main/java/com/eu/habbo/habbohotel/items/interactions/games/freeze/InteractionFreezeExitTile.java @@ -14,11 +14,13 @@ public class InteractionFreezeExitTile extends HabboItem public InteractionFreezeExitTile(ResultSet set, Item baseItem) throws SQLException { super(set, baseItem); + this.setExtradata("0"); } public InteractionFreezeExitTile(int id, int userId, Item item, String extradata, int limitedStack, int limitedSells) { super(id, userId, item, extradata, limitedStack, limitedSells); + this.setExtradata("0"); } @Override diff --git a/src/main/java/com/eu/habbo/habbohotel/items/interactions/games/freeze/InteractionFreezeTile.java b/src/main/java/com/eu/habbo/habbohotel/items/interactions/games/freeze/InteractionFreezeTile.java index 7f795c76..5f7b3de4 100644 --- a/src/main/java/com/eu/habbo/habbohotel/items/interactions/games/freeze/InteractionFreezeTile.java +++ b/src/main/java/com/eu/habbo/habbohotel/items/interactions/games/freeze/InteractionFreezeTile.java @@ -20,11 +20,13 @@ public class InteractionFreezeTile extends HabboItem public InteractionFreezeTile(ResultSet set, Item baseItem) throws SQLException { super(set, baseItem); + this.setExtradata("0"); } public InteractionFreezeTile(int id, int userId, Item item, String extradata, int limitedStack, int limitedSells) { super(id, userId, item, extradata, limitedStack, limitedSells); + this.setExtradata("0"); } @Override