|
@@ -164,27 +164,26 @@ namespace GameLogic.Player
|
|
|
|
|
|
ItemInfo itemInfo = null;
|
|
|
|
|
|
+
|
|
|
if (dropItemConfig.dropItemType == 1)
|
|
|
{
|
|
|
- itemInfo = new ItemInfo(dropItemConfig.itemID[j], c);
|
|
|
+ if (c < 0)
|
|
|
+ {
|
|
|
+ itemInfo = DropResourceLevel(dropItemConfig.itemID[j], c);
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ itemInfo = new ItemInfo(dropItemConfig.itemID[j], c);
|
|
|
+ }
|
|
|
}
|
|
|
- // else if (dropItemConfig.dropItemType == 4)
|
|
|
- // {
|
|
|
- // itemInfo = PlayerManager.Instance.eqController.BuildEquipmentForItemId(dropItemConfig.itemID[0],
|
|
|
- // dropItemConfig.itemID[1],
|
|
|
- // dropItemConfig.itemID[2]);
|
|
|
- //
|
|
|
- // j += 2;
|
|
|
- // // itemInfo = DropEquipment(dropItemConfig.itemID[j]);
|
|
|
- // }
|
|
|
else
|
|
|
{
|
|
|
itemInfo = new ItemInfo(dropItemConfig);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
itemInfos.Add(itemInfo);
|
|
|
}
|
|
|
- // }
|
|
|
}
|
|
|
|
|
|
private DropCountConfig GetCountBl(int dropCountGroupID)
|
|
@@ -243,7 +242,7 @@ namespace GameLogic.Player
|
|
|
List<ItemInfo> itemInfos = new List<ItemInfo>();
|
|
|
if (count < 0)
|
|
|
{
|
|
|
- itemInfos.Add(DropResourceLevel(itemID, count));
|
|
|
+ itemInfos.Add(DropResourceLevel(itemID, count));
|
|
|
}
|
|
|
else
|
|
|
{
|
|
@@ -251,7 +250,7 @@ namespace GameLogic.Player
|
|
|
if (dropConfig.dropType == 3)
|
|
|
{
|
|
|
ItemInfo itemInfo = new ItemInfo(dropConfig.dropGroupID[0], count);
|
|
|
- itemInfos.Add(itemInfo);
|
|
|
+ itemInfos.Add(itemInfo);
|
|
|
}
|
|
|
else
|
|
|
{
|
|
@@ -262,6 +261,7 @@ namespace GameLogic.Player
|
|
|
|
|
|
return itemInfos;
|
|
|
}
|
|
|
+
|
|
|
public ItemInfo DropResourceLevel(int itemID, int count)
|
|
|
{
|
|
|
ResourceLevelConfig resourceLevelConfig = ConfigComponent.Instance.Get<ResourceLevelConfig>(PlayerManager.Instance.myHero.powerUpConfig.ID);
|