24 lines
863 B
C#
24 lines
863 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.Write(null, false);
|
|
}
|
|
} |