Class MaplePlayerShopItem

java.lang.Object
server.shops.MaplePlayerShopItem

public class MaplePlayerShopItem extends Object
個人商店或精靈商人單一上架道具的資料持有類別。

封裝三個核心欄位:

  • item:上架的 Item 原型(含道具 ID 與原始數量)。
  • bundles:剩餘可售份數(每次購買後遞減,歸零即視為售罄)。
  • price:每份售價(單位:楓幣)。
AbstractPlayerStoreitems 清單持有; 購買邏輯位於 MaplePlayerShop.buy(MapleClient, int, short)HiredMerchant.buy(MapleClient, int, short)
  • Field Details

    • item

      public Item item
    • bundles

      public short bundles
    • price

      public int price
  • Constructor Details

    • MaplePlayerShopItem

      public MaplePlayerShopItem(Item item, short bundles, int price)