From 56b2e041bc49346c6b0d1bdb79b5a22608c023a8 Mon Sep 17 00:00:00 2001
From: client_Zxw <826696702@qq.com>
Date: 星期六, 10 十一月 2018 16:45:28 +0800
Subject: [PATCH] 3335 代码优化
---
System/Strengthening/GodBeastAttributes.cs | 32 ++++++++++++++++----------------
1 files changed, 16 insertions(+), 16 deletions(-)
diff --git a/System/Strengthening/GodBeastAttributes.cs b/System/Strengthening/GodBeastAttributes.cs
index 6eda79e..2ee09a6 100644
--- a/System/Strengthening/GodBeastAttributes.cs
+++ b/System/Strengthening/GodBeastAttributes.cs
@@ -117,7 +117,7 @@
}
if (m_DoubleToggle.isOn)//鍙屽�嶅己鍖�
{
- DoubleStrength(ListIndex, ListCount);
+ DoubleStrength(ListIndex, ListCount);
}
else//鍗曞�嶅己鍖�
{
@@ -134,7 +134,7 @@
}
if (godBeastModel.IsNeedEquipment())
{
- ConfirmCancel.ShowPopConfirm(Language.Get("Mail101"), Language.Get("DogzStrengConfirm"), (bool isOk) =>
+ ConfirmCancel.ShowPopConfirm(Language.Get("Mail101"), Language.Get("DogzStrengConfirm"), (bool isOk) =>
{
if (isOk)
{
@@ -229,7 +229,7 @@
}
-
+
}
private void ChooseToModify(int locationMarker)
{
@@ -323,12 +323,12 @@
m_ExpSlider.ResetStage();
m_ExpSlider.value = 1;
m_Slider.gameObject.SetActive(false);
- int NeedExp =0;
+ int NeedExp = 0;
if (DogZLv > 0)
{
var Dogz_EquipConfig_1 = DogzEquipPlusConfig.GetEquipplaceAndLevel(GodBeastPart, DogZLv - 1);
var Dogz_EquipConfig_2 = DogzEquipPlusConfig.GetEquipplaceAndLevel(GodBeastPart, DogZLv - 2);
- NeedExp = Dogz_EquipConfig_1.upExpTotal- Dogz_EquipConfig_2.upExpTotal;
+ NeedExp = Dogz_EquipConfig_1.upExpTotal - Dogz_EquipConfig_2.upExpTotal;
}
m_ExpNum.text = NeedExp + "/" + NeedExp;
}
@@ -391,7 +391,7 @@
if (IudetDogzEquipPlus != null)
{
SingleProficiency += IudetDogzEquipPlus[1];
- DoubleProficiency += IudetDogzEquipPlus[1]+ itemModel.chinItemModel.EffectValueA1;
+ DoubleProficiency += IudetDogzEquipPlus[1] + itemModel.chinItemModel.EffectValueA1;
}
else
{
@@ -425,8 +425,8 @@
var Dogz_EquipConfig = DogzEquipPlusConfig.GetEquipplaceAndLevel(GodBeastPart, DogZLv - 1);
NeedExp -= Dogz_EquipConfig.upExpTotal;
}
- int[] AttType = ConfigParse.GetMultipleStr<int>(DogzEquipConfig.attType);
- int[] AttValue = ConfigParse.GetMultipleStr<int>(DogzEquipConfig.attValue);
+ int[] AttType = DogzEquipConfig.attType;
+ int[] AttValue = DogzEquipConfig.attValue;
if (ToExpTotal == 0)
{
m_Slider.gameObject.SetActive(false);
@@ -491,7 +491,7 @@
}
int lv = godBeastModel.QualityLimit[m_DogZItemModel.chinItemModel.ItemColor];
var IudetDogzEquipPlus = m_DogZItemModel.GetUseDataModel((int)ItemUseDataKey.Def_IudetDogzEquipPlus);
- if (IudetDogzEquipPlus != null && IudetDogzEquipPlus.Count>1)
+ if (IudetDogzEquipPlus != null && IudetDogzEquipPlus.Count > 1)
{
ToExpTotal += IudetDogzEquipPlus[1];
}
@@ -534,7 +534,7 @@
}
m_DogZItemModel = ItemModel;
var IudetDogzEquipPlus = ItemModel.GetUseDataModel((int)ItemUseDataKey.Def_IudetDogzEquipPlus);
- if (IudetDogzEquipPlus != null && IudetDogzEquipPlus.Count>1)
+ if (IudetDogzEquipPlus != null && IudetDogzEquipPlus.Count > 1)
{
DogZLv = IudetDogzEquipPlus[0];
if (DogZLv > 0)
@@ -574,11 +574,11 @@
private void SetAddAttributes(DogzEquipPlusConfig DogzEquipConfig, int GodBeastPart, int toLv)//璁剧疆棰勮鐨勫睘鎬�
{
- int[] AttType = ConfigParse.GetMultipleStr<int>(DogzEquipConfig.attType);
- int[] AttValue = ConfigParse.GetMultipleStr<int>(DogzEquipConfig.attValue);
+ int[] AttType = DogzEquipConfig.attType;
+ int[] AttValue = DogzEquipConfig.attValue;
var DogzEquipToConfig = DogzEquipPlusConfig.GetEquipplaceAndLevel(GodBeastPart, toLv);
- int[] AttTypeTo = ConfigParse.GetMultipleStr<int>(DogzEquipToConfig.attType);
- int[] AttValueTo = ConfigParse.GetMultipleStr<int>(DogzEquipToConfig.attValue);
+ int[] AttTypeTo = DogzEquipToConfig.attType;
+ int[] AttValueTo = DogzEquipToConfig.attValue;
if (AttType.Length > 1)
{
m_TextAttributes1.gameObject.SetActive(true);
@@ -611,8 +611,8 @@
m_TextAttributes2.gameObject.SetActive(false);
m_TextAttributesAdd2.gameObject.SetActive(false);
var DogzEquipConfig = DogzEquipPlusConfig.GetEquipplaceAndLevel(GodBeastPart, DogZLv);
- int[] AttType = ConfigParse.GetMultipleStr<int>(DogzEquipConfig.attType);
- int[] AttValue = ConfigParse.GetMultipleStr<int>(DogzEquipConfig.attValue);
+ int[] AttType = DogzEquipConfig.attType;
+ int[] AttValue = DogzEquipConfig.attValue;
if (AttType.Length > 1)
{
m_Text_Attributes3.gameObject.SetActive(true);
--
Gitblit v1.8.0