Reset state on creation for special interactions

This commit is contained in:
Beny 2019-05-24 11:51:41 +01:00
parent 9117065093
commit 4caedc516b
21 changed files with 42 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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);

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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