116 lines
5.5 KiB
C#
116 lines
5.5 KiB
C#
|
|
public static class MyText
|
||
|
|
{
|
||
|
|
public static string Get_StatName(eStat stat)
|
||
|
|
{
|
||
|
|
switch (stat)
|
||
|
|
{
|
||
|
|
case eStat.Attack: return table_localtext.Ins.Get_Text(4000);
|
||
|
|
case eStat.Attack_Min: return table_localtext.Ins.Get_Text(4001);
|
||
|
|
case eStat.Attack_Max: return table_localtext.Ins.Get_Text(4002);
|
||
|
|
case eStat.Cri: return table_localtext.Ins.Get_Text(4003);
|
||
|
|
case eStat.CriDmg: return table_localtext.Ins.Get_Text(4004);
|
||
|
|
case eStat.HitRate: return table_localtext.Ins.Get_Text(4005);
|
||
|
|
case eStat.HP: return table_localtext.Ins.Get_Text(4006);
|
||
|
|
case eStat.MaxHP: return table_localtext.Ins.Get_Text(4007);
|
||
|
|
case eStat.Shield: return table_localtext.Ins.Get_Text(4008);
|
||
|
|
case eStat.MaxShield: return table_localtext.Ins.Get_Text(4009);
|
||
|
|
case eStat.Avoid_Melee: return table_localtext.Ins.Get_Text(4010);
|
||
|
|
case eStat.Avoid_Range: return table_localtext.Ins.Get_Text(4011);
|
||
|
|
case eStat.AttackCoolTime:
|
||
|
|
case eStat.AttackCoolTimeMul:
|
||
|
|
return table_localtext.Ins.Get_Text(4023);
|
||
|
|
case eStat.GOLD_Mul: return table_localtext.Ins.Get_Text(4013);
|
||
|
|
case eStat.EXP_Mul: return table_localtext.Ins.Get_Text(4014);
|
||
|
|
case eStat.PotionEfficiencyUp: return table_localtext.Ins.Get_Text(4015);
|
||
|
|
case eStat.NonCombatRecoveryEfficiency: return table_localtext.Ins.Get_Text(4016);
|
||
|
|
case eStat.LifeStealEfficiency: return table_localtext.Ins.Get_Text(4017);
|
||
|
|
case eStat.AllEvasion: return table_localtext.Ins.Get_Text(4018);
|
||
|
|
case eStat.SkillDropRateAdvanced: return table_localtext.Ins.Get_Text(4019);
|
||
|
|
case eStat.SkillDropRateRare: return table_localtext.Ins.Get_Text(4020);
|
||
|
|
case eStat.SkillDropRateHero: return table_localtext.Ins.Get_Text(4021);
|
||
|
|
case eStat.SkillDropRateLegendary: return table_localtext.Ins.Get_Text(4022);
|
||
|
|
case eStat.Reflection: return table_localtext.Ins.Get_Text(4024);
|
||
|
|
case eStat.ReduceDmg: return table_localtext.Ins.Get_Text(4025);
|
||
|
|
case eStat.ReduceMeeleDmg_Mul: return table_localtext.Ins.Get_Text(4026);
|
||
|
|
case eStat.ReduceRangeDmg_Mul: return table_localtext.Ins.Get_Text(4027);
|
||
|
|
case eStat.SkillDamageIncrease: return table_localtext.Ins.Get_Text(4028);
|
||
|
|
case eStat.ExplorationHpRecovery: return table_localtext.Ins.Get_Text(4029);
|
||
|
|
case eStat.ExplorationShieldRecovery: return table_localtext.Ins.Get_Text(4030);
|
||
|
|
case eStat.MaxDamageIncrease: return table_localtext.Ins.Get_Text(4031);
|
||
|
|
case eStat.OnAttackSkillTrigger: return table_localtext.Ins.Get_Text(4032);
|
||
|
|
case eStat.OnKillSkillTrigger: return table_localtext.Ins.Get_Text(4033);
|
||
|
|
case eStat.OnCriticalSkillTrigger: return table_localtext.Ins.Get_Text(4034);
|
||
|
|
case eStat.OnEvasionSkillTrigger: return table_localtext.Ins.Get_Text(4035);
|
||
|
|
|
||
|
|
case eStat.None:
|
||
|
|
case eStat.Max:
|
||
|
|
return "";
|
||
|
|
}
|
||
|
|
return $"no {stat}";
|
||
|
|
}
|
||
|
|
public static string Get_StatValueText(eStat stat, double _v, bool pc)
|
||
|
|
{
|
||
|
|
switch (stat)
|
||
|
|
{
|
||
|
|
case eStat.Cri:
|
||
|
|
case eStat.CriDmg:
|
||
|
|
case eStat.AddCriDmg_1Time:
|
||
|
|
case eStat.AddCri_1Time:
|
||
|
|
case eStat.AddCri_Once:
|
||
|
|
|
||
|
|
case eStat.DmgMul:
|
||
|
|
case eStat.MaxHP_Mul:
|
||
|
|
case eStat.MaxShield_Mul:
|
||
|
|
case eStat.AddDmgMul_1Time:
|
||
|
|
case eStat.AddDmgMul_MiddleLine:
|
||
|
|
case eStat.AttackCoolTimeMul:
|
||
|
|
case eStat.GOLD_Mul:
|
||
|
|
case eStat.EXP_Mul:
|
||
|
|
case eStat.PotionEfficiencyUp:
|
||
|
|
case eStat.NonCombatRecoveryEfficiency:
|
||
|
|
case eStat.LifeStealEfficiency:
|
||
|
|
case eStat.ReduceMeeleDmg_Mul:
|
||
|
|
case eStat.ReduceRangeDmg_Mul:
|
||
|
|
return Get_PercentValueText_100(_v);
|
||
|
|
|
||
|
|
case eStat.Avoid_Melee:
|
||
|
|
case eStat.Avoid_Range:
|
||
|
|
case eStat.AvoidAll_1Time:
|
||
|
|
case eStat.AllEvasion:
|
||
|
|
return pc ? Get_PercentValueText_100(_v) : ((int)_v).ToString(); ;
|
||
|
|
|
||
|
|
default:
|
||
|
|
return _v.ToString();
|
||
|
|
|
||
|
|
case eStat.None:
|
||
|
|
case eStat.Max:
|
||
|
|
return "";
|
||
|
|
}
|
||
|
|
}
|
||
|
|
public static string Get_StatNameValueText(eStat stat, double _v, bool pc) { return DSUtil.Format("{0} {1}", Get_StatName(stat), Get_StatValueText(stat, _v, pc)); }
|
||
|
|
public static string Get_PercentValueText_100(double _v) { return DSUtil.Format("{0:#,##0.##}%", _v * 100d); }
|
||
|
|
public static string Get_PercentValueText(double _v) { return DSUtil.Format("{0:#,##0.##}%", _v); }
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
public static string Get_PatternTypeName(ePatternType patternType)
|
||
|
|
{
|
||
|
|
switch (patternType)
|
||
|
|
{
|
||
|
|
default: return "순차 반복";
|
||
|
|
case ePatternType.SequentialLoop: return "순차 후 랜덤";
|
||
|
|
case ePatternType.Random: return "랜덤";
|
||
|
|
}
|
||
|
|
}
|
||
|
|
public static string Get_MobTypeName(eToolMobType type)
|
||
|
|
{
|
||
|
|
switch (type)
|
||
|
|
{
|
||
|
|
case eToolMobType.Melee: return "근접";
|
||
|
|
case eToolMobType.Range: return "원거리";
|
||
|
|
default: return "고유";
|
||
|
|
}
|
||
|
|
}
|
||
|
|
public static string Get_GradeName(eGrade grade) { return table_localtext.Ins.Get_Text(200 + (int)grade); }
|
||
|
|
public static string Get_GradeName(int grade) { return table_localtext.Ins.Get_Text(200 + grade); }
|
||
|
|
}
|