Project_WL/Assets/Script/UI/Ingame/Dungeon/DungeonResult_Nightmare.cs

28 lines
937 B
C#

using System;
using System.Collections.Generic;
public class DungeonResult_Nightmare : DungeonResultBase
{
public override void Set(bool? win)
{
base.Set(win);
var BeforeDmg = Math.Truncate(MyValue.MyChoiceMapData.d_NightmareBeforeDmg);
var CurDmg = Math.Truncate(DungeonInfo.Ins.m_TotalDamage);
texts[0].text = DSUtil.Format(422, NumberFormatter.FormatNumber(BeforeDmg));
texts[1].text = DSUtil.Format(423, NumberFormatter.FormatNumber(CurDmg));
rewards[0].Set(list_reward[0]);
rewards[1].Set(list_reward[1]);
if (CurDmg > BeforeDmg)
ServerInfo.Ins.Save_Rank("Rank_Damage", new List<string> { CurDmg.ToString() });
var sdata = ServerInfo.Ins.m_ServerData;
sdata.Add_MissionCount(ePurpose.CONTENTS_CLEAR, 3);
ServerInfo.Ins.Save_NightmareResult(CurDmg, () =>
{
gos[0].SetActive(true);
});
}
}