미션 획득 작업 중...
This commit is contained in:
parent
2ccb7c462f
commit
cf3ca8a3ee
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.
|
|
@ -1024,6 +1024,17 @@ public partial class ServerData
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
public int Get_MissionLv(int group, int _id)
|
||||||
|
{
|
||||||
|
var key1 = Get_Key(group);
|
||||||
|
if (Mission.ContainsKey(key1))
|
||||||
|
{
|
||||||
|
var key2 = Get_Key(_id);
|
||||||
|
if (Mission[key1].ContainsKey(key2))
|
||||||
|
return Mission[key1][key2][0];
|
||||||
|
}
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
public void Set_MissionCount(int group, int _id, int _v)
|
public void Set_MissionCount(int group, int _id, int _v)
|
||||||
{
|
{
|
||||||
var key1 = Get_Key(group);
|
var key1 = Get_Key(group);
|
||||||
|
|
@ -1077,7 +1088,7 @@ public partial class ServerData
|
||||||
public bool CanGet_Mission(int group, int _id)
|
public bool CanGet_Mission(int group, int _id)
|
||||||
{
|
{
|
||||||
var condition = table_missionlist.Ins.Get_Data_orNull(group, _id);
|
var condition = table_missionlist.Ins.Get_Data_orNull(group, _id);
|
||||||
return Get_MissionCount(group, _id) >= condition.l_MissionConditionCount;
|
return Get_MissionLv(group, _id) == 0 && Get_MissionCount(group, _id) >= condition.l_MissionConditionCount;
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -32,6 +32,12 @@ public class MissionCard : CardBase
|
||||||
var map = table_battlemapconfig.Ins.Get_Data(m_Data.n_MissionConditionValue);
|
var map = table_battlemapconfig.Ins.Get_Data(m_Data.n_MissionConditionValue);
|
||||||
texts[0].text = DSUtil.Format(m_Data.n_MissionDesc, map.Get_Name());
|
texts[0].text = DSUtil.Format(m_Data.n_MissionDesc, map.Get_Name());
|
||||||
break;
|
break;
|
||||||
|
case ePurpose.GET_SKILL:
|
||||||
|
case ePurpose.SKILL_UPGRADE:
|
||||||
|
case ePurpose.SKILL_UPGRADE_LIMIT:
|
||||||
|
var skill = table_skilllist.Ins.Get_Data_orNull(m_Data.n_MissionConditionValue);
|
||||||
|
texts[0].text = DSUtil.Format(m_Data.n_MissionDesc, skill.Get_Name());
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
texts[0].text = DSUtil.Format(m_Data.n_MissionDesc);
|
texts[0].text = DSUtil.Format(m_Data.n_MissionDesc);
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue