From f3ae8542aee4b5de78fc20d9543bb424b315708f Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期三, 10 九月 2025 14:23:47 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.1.20:10010/r/Project_SG_scripts
---
Main/System/HeroUI/HeroUIManager.cs | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/Main/System/HeroUI/HeroUIManager.cs b/Main/System/HeroUI/HeroUIManager.cs
index f68c4f4..679d42d 100644
--- a/Main/System/HeroUI/HeroUIManager.cs
+++ b/Main/System/HeroUI/HeroUIManager.cs
@@ -1,6 +1,7 @@
锘縰sing System;
using System.Collections;
using System.Collections.Generic;
+using LitJson;
using UnityEngine;
@@ -38,7 +39,16 @@
var config = FuncConfigConfig.Get("HeroRebirth");
payBackMoneyType = int.Parse(config.Numerical1);
rebornAwakeHeroMaxCount = int.Parse(config.Numerical2);
+ rebornFormula = config.Numerical3;
+ rebornPayBackPer = int.Parse(config.Numerical4);
+ deletePayBackPer = int.Parse(config.Numerical5);
+
ParseGiftConfig();
+
+ config = FuncConfigConfig.Get("HeroBook");
+ var arr = JsonMapper.ToObject<int[]>(config.Numerical1);
+ bookMoneyType = arr[0];
+ bookMoneyValue = arr[1];
}
public void OnBeforePlayerDataInitialize()
@@ -235,8 +245,8 @@
public bool IsNewHero(int heroID)
{
- var bookInfo = GetHeroBookInfo(heroID);
- if (bookInfo != null)
+ HB122_tagSCHeroInfo.tagSCHero bookInfo;
+ if (TryGetHeroBookInfo(heroID, out bookInfo))
{
if (bookInfo.BookInitState < 2)
{
--
Gitblit v1.8.0