本帖最後由 terrywany2k 於 2015-11-5 23:34 編輯
信不信由你... 
成功率"顯示"是在UI_Explorer.GetExplorePoint, 代碼如下
- public static int GetExplorePoint(UnitModel.Param unit, ExploreModel.Param explore)
- {
- float num = 0f;
- float weightLv = Singleton<GlobalDataManager>.I.weightLv;
- float weightRarity = Singleton<GlobalDataManager>.I.weightRarity;
- num += (unit.Card.lv * weightLv) + (unit.Card.rarity * weightRarity);
- num += (unit.Card.WeaponType != explore.adWeId1) ? ((float) 0) : ((float) explore.adWeValue1);
- num += (unit.Card.WeaponType != explore.adWeId2) ? ((float) 0) : ((float) explore.adWeValue2);
- num += !unit.Card.TribeTypes.Contains(explore.adTrId1) ? ((float) 0) : ((float) explore.adTrValue1);
- num += !unit.Card.TribeTypes.Contains(explore.adTrId2) ? ((float) 0) : ((float) explore.adTrValue2);
- num += (unit.Card.personalityId != explore.adPeId1) ? ((float) 0) : ((float) explore.adPeValue1);
- num += (unit.Card.personalityId != explore.adPeId2) ? ((float) 0) : ((float) explore.adPeValue2);
- return (int) num;
- }
複製代碼
這個method的是計算你的成功率.. 及其算法.....
但.... 你提交任務只會發送以下的資料, 在ExploreStartSendParam內... 由此可見.. 他會發送是那一個任務.. 和用了那一張卡片.. 所以可以告訴你.. 成功率是在伺服器端做結算...
- public class ExploreStartSendParam
- {
- public int dn;
- public int exId;
- public string ueid0 = -1.ToString();
- public string ueid1 = -1.ToString();
- public string ueid2 = -1.ToString();
- public string ueid3 = -1.ToString();
複製代碼
|