noob island gear

This commit is contained in:
2024-07-06 20:06:18 -05:00
parent 2fb97a676f
commit c0cb856961
5 changed files with 45 additions and 33 deletions
+2 -2
View File
@@ -233,7 +233,6 @@ public class Item extends AbstractWorldObject {
this.value = rs.getInt("item_value");
this.customName = rs.getString("item_name");
}
public static void _serializeForClientMsg(Item item, ByteBufferWriter writer)
@@ -609,7 +608,7 @@ public class Item extends AbstractWorldObject {
writer.putIntAt(serialized, indexPosition);
}
public static Item createItemForPlayer(PlayerCharacter pc, ItemBase ib) {
public static Item createItemForPlayer(PlayerCharacter pc, ItemBase ib, boolean fromNoob) {
Item item = null;
byte charges = 0;
@@ -1206,6 +1205,7 @@ public class Item extends AbstractWorldObject {
}
public int getBaseValue() {
if (this.getItemBase() != null)
return this.getItemBase().getBaseValue();
return 0;