Browse Source

More itembase refactor work

combat-2
MagicBot 8 months ago
parent
commit
ebaf68bca4
  1. 18
      src/engine/net/client/msg/TransferItemFromInventoryToEquipMsg.java

18
src/engine/net/client/msg/TransferItemFromInventoryToEquipMsg.java

@ -23,7 +23,7 @@ public class TransferItemFromInventoryToEquipMsg extends ClientNetMsg { @@ -23,7 +23,7 @@ public class TransferItemFromInventoryToEquipMsg extends ClientNetMsg {
private int sourceType;
private int sourceID;
private int pad1;
private int itemBase;
private int templateID;
private int type;
private int objectUUID;
@ -43,7 +43,7 @@ public class TransferItemFromInventoryToEquipMsg extends ClientNetMsg { @@ -43,7 +43,7 @@ public class TransferItemFromInventoryToEquipMsg extends ClientNetMsg {
this.sourceType = source.getObjectType().ordinal();
this.sourceID = source.getObjectUUID();
this.slot = slot;
this.itemBase = itemBaseID;
this.templateID = itemBaseID;
}
/**
@ -64,7 +64,7 @@ public class TransferItemFromInventoryToEquipMsg extends ClientNetMsg { @@ -64,7 +64,7 @@ public class TransferItemFromInventoryToEquipMsg extends ClientNetMsg {
this.sourceType = reader.getInt();
this.sourceID = reader.getInt();
pad1 = reader.getInt();
itemBase = reader.getInt();
templateID = reader.getInt();
type = reader.getInt();
objectUUID = reader.getInt();
slot = Enum.EquipSlotType.values()[reader.getInt()];
@ -81,7 +81,7 @@ public class TransferItemFromInventoryToEquipMsg extends ClientNetMsg { @@ -81,7 +81,7 @@ public class TransferItemFromInventoryToEquipMsg extends ClientNetMsg {
writer.putInt(this.sourceType);
writer.putInt(this.sourceID);
writer.putInt(pad1);
writer.putInt(itemBase);
writer.putInt(templateID);
writer.putInt(type);
writer.putInt(objectUUID);
writer.putInt(slot.ordinal());
@ -93,15 +93,15 @@ public class TransferItemFromInventoryToEquipMsg extends ClientNetMsg { @@ -93,15 +93,15 @@ public class TransferItemFromInventoryToEquipMsg extends ClientNetMsg {
/**
* @return the itemBase
*/
public int getItemBase() {
return itemBase;
public int getTemplateID() {
return templateID;
}
/**
* @param itemBase the itemBase to set
* @param templateID the itemBase to set
*/
public void setItemBase(int itemBase) {
this.itemBase = itemBase;
public void setTemplateID(int templateID) {
this.templateID = templateID;
}
/**

Loading…
Cancel
Save