| | |
| | | _MountStoneItem.ItemNum.text = hs_number.ToString() + "/1";
|
| | | bagIndex = playerPack.GetSinglePack(PackType.Item).GetItemIndexsAppointedCount(_id, 1);
|
| | | }
|
| | | int _maxuse = AttrFruitConfig.Get(_id).MaxUseCnt;
|
| | | int _maxuse = AttrFruitConfig.Get(_id).basicUseLimit;
|
| | | _MountStoneItem.PetExpNum.text = tag_Item[_id].ToString() + "/" + _maxuse.ToString();
|
| | | _MountStoneItem.Slider.value = (float)Math.Round((float)tag_Item[_id] / _maxuse, 2, MidpointRounding.AwayFromZero);
|
| | | SpiritBeastsText(_id.ToString(), _MountStoneItem.Some_text, tag_Item[_id]);
|
| | |
| | | private bool IsUse(int Id)
|
| | | {
|
| | | int hs_number = playerPack.GetItemCountByID(PackType.Item, Id);//魂石数量
|
| | | int _maxuse = AttrFruitConfig.Get(Id.ToString()).MaxUseCnt;
|
| | | int _maxuse = AttrFruitConfig.Get(Id.ToString()).basicUseLimit;
|
| | | if (tag_Item.ContainsKey(Id))
|
| | | {
|
| | | if (hs_number > 0 && _maxuse > tag_Item[Id])
|
| | |
| | | private bool IsFull(int Id)
|
| | | {
|
| | | bool IsBool = true;
|
| | | int _maxuse = AttrFruitConfig.Get(Id.ToString()).MaxUseCnt;
|
| | | int _maxuse = AttrFruitConfig.Get(Id.ToString()).basicUseLimit;
|
| | | if (tag_Item.ContainsKey(Id))
|
| | | {
|
| | | if (tag_Item[Id] >= _maxuse)
|