From eec98b84cf1a36de73e4c5eeb71011e4634accdb Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期二, 06 一月 2026 20:36:11 +0800
Subject: [PATCH] 0312 同步战力公式
---
Main/Config/Configs/FightPowerRatioConfig.cs | 14 +++++++++++++-
Main/System/Main/FightPowerManager.cs | 11 +++++++++++
2 files changed, 24 insertions(+), 1 deletions(-)
diff --git a/Main/Config/Configs/FightPowerRatioConfig.cs b/Main/Config/Configs/FightPowerRatioConfig.cs
index e5fd4e3..09d875c 100644
--- a/Main/Config/Configs/FightPowerRatioConfig.cs
+++ b/Main/Config/Configs/FightPowerRatioConfig.cs
@@ -1,6 +1,6 @@
锘�//--------------------------------------------------------
// [Author]: YYL
-// [ Date ]: 2025骞�11鏈�17鏃�
+// [ Date ]: Tuesday, January 6, 2026
//--------------------------------------------------------
using System.Collections.Generic;
@@ -60,6 +60,10 @@
public float QunFinalDamPerDefRatio;
public float PVPDamPerRatio;
public float PVPDamPerDefRatio;
+ public float GuanchuanRatio;
+ public float GuanchuanDefRatio;
+ public float ZhaojiaRatio;
+ public float ZhaojiaDefRatio;
public override int LoadKey(string _key)
{
@@ -158,6 +162,14 @@
float.TryParse(tables[42],out PVPDamPerRatio);
float.TryParse(tables[43],out PVPDamPerDefRatio);
+
+ float.TryParse(tables[44],out GuanchuanRatio);
+
+ float.TryParse(tables[45],out GuanchuanDefRatio);
+
+ float.TryParse(tables[46],out ZhaojiaRatio);
+
+ float.TryParse(tables[47],out ZhaojiaDefRatio);
}
catch (Exception exception)
{
diff --git a/Main/System/Main/FightPowerManager.cs b/Main/System/Main/FightPowerManager.cs
index 81c154d..4fee9bf 100644
--- a/Main/System/Main/FightPowerManager.cs
+++ b/Main/System/Main/FightPowerManager.cs
@@ -90,6 +90,12 @@
private const string CURE_PER_DEF_RATIO = "CurePerDefRatio";
private const string PVP_DAM_PER_RATIO = "PVPDamPerRatio";
private const string PVP_DAM_PER_DEF_RATIO = "PVPDamPerDefRatio";
+ private const string GUANCHUAN_RATIO = "GuanchuanRatio";
+ private const string GUANCHUAN_DEF_RATIO = "GuanchuanDefRatio";
+ private const string ZHAOJIA_RATIO = "ZhaojiaRatio";
+ private const string ZHAOJIA_DEF_RATIO = "ZhaojiaDefRatio";
+
+
private const string PLAYER_LV = "PlayerLV";
private const string OFFICIAL_LV = "OfficialLV";
private const string SKILL_POWER = "SkillPower";
@@ -535,6 +541,11 @@
fightPowerVariables[CURE_PER_DEF_RATIO] = fightPowerRatioConfig.CurePerDefRatio;
fightPowerVariables[PVP_DAM_PER_RATIO] = fightPowerRatioConfig.PVPDamPerRatio;
fightPowerVariables[PVP_DAM_PER_DEF_RATIO] = fightPowerRatioConfig.PVPDamPerDefRatio;
+ fightPowerVariables[GUANCHUAN_RATIO] = fightPowerRatioConfig.GuanchuanRatio;
+ fightPowerVariables[GUANCHUAN_DEF_RATIO] = fightPowerRatioConfig.GuanchuanDefRatio;
+ fightPowerVariables[ZHAOJIA_RATIO] = fightPowerRatioConfig.ZhaojiaRatio;
+ fightPowerVariables[ZHAOJIA_DEF_RATIO] = fightPowerRatioConfig.ZhaojiaDefRatio;
+
long fightPower = (long)FightPowerFormula.GetFightPower(fightPowerVariables);
#if UNITY_EDITOR
--
Gitblit v1.8.0