мне надо чтобы ты добавил в java файл скидки public class Item implements Dumper {
   public String id;
   public LocalizedString description;
   public boolean isInventory;
   public int index;
   public PropertyItem[] propetys;
   public ItemType itemType;
   public int modificationIndex;
   public LocalizedString name;
   public PropertyItem[] nextProperty;
   public int nextPrice;
   public int nextRankId;
   public int price;
   public boolean multicounted;
   public int rankId;
   public ModificationInfo[] modifications;
   public boolean specialItem;
   public int count;
   public boolean addable;
   public long time = 0L;

   public Item(String id, LocalizedString description, boolean isInventory, int index, PropertyItem[] propetys, ItemType weapon, int modificationIndex, LocalizedString name, PropertyItem[] nextProperty, int nextPrice, int nextRankId, int price, int rankId, ModificationInfo[] modifications, boolean specialItem, int count, boolean addable, boolean multicounted) {
      this.id = id;
      this.description = description;
      this.multicounted = multicounted;
      this.isInventory = isInventory;
      this.index = index;
      this.propetys = propetys;
      this.itemType = weapon;
      this.modificationIndex = modificationIndex;
      this.name = name;
      this.nextProperty = nextProperty;
      this.nextPrice = nextPrice;
      this.nextRankId = nextRankId;
      this.price = price;
      this.rankId = rankId;
      this.modifications = modifications;
      this.specialItem = specialItem;
      this.count = count;
      this.addable = addable;
      if (id.equals("no_supplies")) {
         this.time = System.currentTimeMillis() + ((3600000L * 24) * 31);
      }
      else if (id.equals("up_score_small")) {
         this.time = System.currentTimeMillis() + ((3600000L * 24) * 7);
      }
      else if (id.equals("up_score_start")) {
         this.time = System.currentTimeMillis() + ((3600000L * 24) * 31);
      }
      else if (id.equals("up_score")) {
         this.time = System.currentTimeMillis() + ((3600000L * 24) * 31);
      }
   }

   public String getId() {
      return StringUtils.concatStrings(this.id, "_m", String.valueOf(this.modificationIndex));
   }

   public Item clone() {
      return new Item(this.id, this.description, this.isInventory, this.index, this.propetys, this.itemType, this.modificationIndex, this.name, this.nextProperty, this.nextPrice, this.nextRankId, this.price, this.rankId, this.modifications, this.specialItem, this.count, this.addable, this.multicounted);
   }

   public String dump() {
      return StringUtils.concatStrings("-------DUMP GARAGE ITEM------\n", "\tid: ", this.id, "\n", "\tinventoryItem: ", String.valueOf(this.isInventory), "\n", "\tindex: ", String.valueOf(this.index), "\n", "\tname: ", this.name.localizatedString(Localization.RU), "\n", "\tprice: ", String.valueOf(this.price), "\n", "\trandId: ", String.valueOf(this.rankId), "\n", "\tspecialItem: ", String.valueOf(this.specialItem), "\tmulticounted: ", String.valueOf(this.multicounted), "\n", "-------------------------------", "\n");
   }
}
 вот item.java сюда надо добавить. А вот это кусок кода из клиента       public function addItem(id:Object, name:String, type:int, sort:int, crystalPrice:int, rang:int, installed:Boolean, garageElement:Boolean, count:int, preview:ImageResource, discount:int, maxModification:int, modification:int = 0, multicounted:Boolean = true) : void
      {
         var iNormal:DisplayObject = null;
         var iSelected:DisplayObject = null;
         var data:Object = {};
         var access:Boolean = rang < 1 && !garageElement;
         data.id = id;
         data.name = name;
         data.type = type;
         data.typeSort = this.typeSort[type];
         data.mod = modification;
         data.crystalPrice = crystalPrice;
         data.rang = garageElement ? -1 : rang;
         data.installed = installed;
         data.garageElement = garageElement;
         data.count = count;
         data.preview = preview;
         data.sort = sort;
         data.discount = discount;
         data.multicounted = multicounted;
         data.maxModification = maxModification;
         iNormal = this.myIcon(data,false);