미션 - 영웅 레벨

This commit is contained in:
Ino 2025-03-19 14:50:23 +09:00
parent c667f061bd
commit c445aa8d1f
5 changed files with 8 additions and 4 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@ -1062,6 +1062,7 @@ public partial class ServerData
}
public void Add_MissionCount(ePurpose purpose, int conditionvalue = 0, int _v = 1)
{
if (_v < 1) return;
var lst = table_missionlist.Ins.Get_DataList(purpose);
for (int i = 0; i < lst.Count; i++)
{
@ -2675,7 +2676,7 @@ public class SD_PC
public int Get_Stat(eStat stat) { return Stat[dic_StatIndex[stat]]; }
public int Get_UsePoint() { return Stat.Select(stat => (int)stat).Sum(); }
public int Get_Point() { return (Lv - 1) * 5 - Get_UsePoint(); }
public void Set_Point(eStat stat, int add)
public void Add_StatPoint(eStat stat, int add)
{
Stat[dic_StatIndex[stat]] += add;
Stat[dic_StatIndex[stat]].RandomizeCryptoKey();

View File

@ -72,7 +72,10 @@ public class PCInfoStatMgrUI : uScrollViewMgr
{
var sdata = ServerInfo.Ins.m_ServerData;
foreach (var item in dic_SaveStat)
sdata.PC.Set_Point(item.Key, item.Value);
{
sdata.PC.Add_StatPoint(item.Key, item.Value);
sdata.Add_MissionCount(ePurpose.HERO_STAT_UPGRADE_ACC, 0, item.Value);
}
Set_UI();
MyValue.Get_ActorStatInfoorNull(eRole.PC);
}