|
@@ -2,6 +2,7 @@
|
|
|
using Core.Utility;
|
|
|
using Excel2Json;
|
|
|
using Fort23.UTool;
|
|
|
+using UnityEngine;
|
|
|
using ItemInfo = GameLogic.Bag.ItemInfo;
|
|
|
|
|
|
namespace GameLogic.Equipment
|
|
@@ -38,7 +39,7 @@ namespace GameLogic.Equipment
|
|
|
public void InitEquipment(ItemInfo modelInfo, ItemInfo lvInfo, ItemInfo qualityInfo)
|
|
|
{
|
|
|
//有效性检查
|
|
|
- if (modelInfo.dropItemConfig.dropItemType != 1 &&
|
|
|
+ if (//modelInfo.dropItemConfig.dropItemType != 1 &&
|
|
|
lvInfo.dropItemConfig.dropItemType != 3 &&
|
|
|
qualityInfo.dropItemConfig.dropItemType != 2)
|
|
|
{
|
|
@@ -65,13 +66,15 @@ namespace GameLogic.Equipment
|
|
|
this.quality = quality;
|
|
|
|
|
|
// int equipmentConfigID = itemConfig.itemParam[0] * 10000 + itemConfig.itemParam[1] * 1000 + eLv;
|
|
|
+
|
|
|
int equipmentConfigID =
|
|
|
- GlobalParam.GenerateEquipmentID(itemConfig.itemParam[0], itemConfig.itemParam[1], eLv);
|
|
|
+ GlobalParam.GenerateEquipmentID(itemConfig.itemParam[0], itemConfig.itemParam[1], eLv,
|
|
|
+ PlayerManager.Instance.heroController.mainLevel);
|
|
|
level = eLv;
|
|
|
|
|
|
basicEquipConfig = ConfigComponent.Instance.Get<HeroBasicEquipConfig>(equipmentConfigID);
|
|
|
// guid = GlobalParam.GenerateGUID();
|
|
|
- myItemInfo.guid = itemConfig.ID.ToString() + eLv + quality;
|
|
|
+ myItemInfo.guid = itemConfig.ID.ToString() + basicEquipConfig.lv + quality;
|
|
|
CalAtt();
|
|
|
}
|
|
|
|
|
@@ -82,9 +85,9 @@ namespace GameLogic.Equipment
|
|
|
for(int i=0; i < basicEquipConfig.AttType.Length; i++)
|
|
|
{
|
|
|
int attTyp = basicEquipConfig.AttType[i];
|
|
|
- int value = basicEquipConfig.AttValue[i] *
|
|
|
- PlayerManager.Instance.eqController.
|
|
|
- GetEquipmentRarityAttributeFactor(quality);
|
|
|
+ int value = Mathf.RoundToInt( basicEquipConfig.AttValue[i] *
|
|
|
+ PlayerManager.Instance.eqController.
|
|
|
+ GetEquipmentRarityAttributeFactor(quality));
|
|
|
switch (attTyp)
|
|
|
{
|
|
|
case 1:
|