- 난이도별 데미지

This commit is contained in:
Ino 2025-01-31 12:21:18 +09:00
parent 0b10c9dfd6
commit 113811aca8
4 changed files with 17 additions and 9 deletions

View File

@ -61,6 +61,7 @@ messageinfo 엄청 느린 버그
악몽의 시련 악몽의 시련
- 결과 화면 (보상 지급) - 결과 화면 (보상 지급)
- 입장권 추가 구매 구현 필요 - 입장권 추가 구매 구현 필요
- 랭킹 UI 통합(랭킹 및 랭킹 보상이 기본) - 난이도에 따른 패널티
- 난이도별 데미지
- 시작 시 입장권 차감 - 시작 시 입장권 차감
- 랭킹 UI 통합(랭킹 및 랭킹 보상이 기본)

View File

@ -433,8 +433,12 @@ public class Actor : MyCoroutine
{ {
if (IsDead()) return; if (IsDead()) return;
if (MyValue.MyChoiceMapData.Get_MapData().e_Dungeon == eDungeon.d3_Nightmare) if (MyValue.MyChoiceMapData.Get_MapData().e_Dungeon == eDungeon.d3_Nightmare && IsSubRole(eSubRol.Boss))
DungeonInfo.Ins.act_Damage_byMob(_dinfo.Damage); {
var diff = MyValue.MyChoiceMapData.n_Difficult;
var addmul = diff == 1 ? 1 : diff == 2 ? 1.5d : 2.5d;
DungeonInfo.Ins.act_Damage_byMob(_dinfo.Damage * addmul);
}
else else
m_Stat.Set_Stat(false, eStat.HP, _dinfo.Damage); m_Stat.Set_Stat(false, eStat.HP, _dinfo.Damage);

View File

@ -11,16 +11,18 @@ public class DungeonResult_Nightmare : DungeonResultBase
base.Set(win); base.Set(win);
var sdata = ServerInfo.Ins.m_ServerData; var sdata = ServerInfo.Ins.m_ServerData;
var BeforeDmg = 0d; var BeforeDmg = Math.Truncate(0d);
var CurDmg = DungeonInfo.Ins.m_TotalDamage; var CurDmg = Math.Truncate(DungeonInfo.Ins.m_TotalDamage);
texts[0].text = DSUtil.Format("기존 데미지 : {0}\n\n현재 데미지 : {1}", BeforeDmg, CurDmg); texts[0].text = DSUtil.Format("기존 데미지 : {0}\n\n현재 데미지 : {1}",
NumberFormatter.FormatNumber(BeforeDmg),
NumberFormatter.FormatNumber(CurDmg));
if (CurDmg > BeforeDmg) if (CurDmg > BeforeDmg)
{ {
//sdata.Set_DungeonLv(eDungeon.d2_Maze, nextFloor); //sdata.Set_DungeonLv(eDungeon.d2_Maze, nextFloor);
ServerInfo.Ins.Write(null, false); ServerInfo.Ins.Write(null, false);
ServerInfo.Ins.Save_Rank("Rank_Damage", new List<string> { Math.Truncate(CurDmg).ToString() }); ServerInfo.Ins.Save_Rank("Rank_Damage", new List<string> { CurDmg.ToString() });
} }
} }
} }

View File

@ -1,3 +1,4 @@
using System;
using TMPro; using TMPro;
public class Ingame_Nightmare : Ingame_DungeonBase public class Ingame_Nightmare : Ingame_DungeonBase
@ -6,6 +7,6 @@ public class Ingame_Nightmare : Ingame_DungeonBase
public override void Set_TotalDmg(double dmg) public override void Set_TotalDmg(double dmg)
{ {
texts[0].text = NumberFormatter.FormatNumber(dmg); texts[0].text = NumberFormatter.FormatNumber(Math.Truncate(dmg));
} }
} }