초기커밋
This commit is contained in:
27
GameServer/Contents/Quest/QuestChecker/QuestUgq.cs
Normal file
27
GameServer/Contents/Quest/QuestChecker/QuestUgq.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using ServerCommon;
|
||||
using ServerCore;
|
||||
|
||||
namespace GameServer;
|
||||
|
||||
|
||||
public class QuestUgq : QuestBase
|
||||
{
|
||||
private string m_ugq_grade = string.Empty;
|
||||
public QuestUgq(EQuestEventTargetType targetType, EQuestEventNameType eventNameType, string ugqGrade)
|
||||
: base(targetType, eventNameType, 0, ugqGrade, string.Empty, string.Empty)
|
||||
{
|
||||
m_ugq_grade = ugqGrade;
|
||||
}
|
||||
|
||||
|
||||
public override bool checkSubValidTaskScript(QuestAttribute questAttribute, QuestEventInfo events)
|
||||
{
|
||||
if(events.EventCondition1.Equals(QuestUgqGradeConditionType.ALL.ToString())) return true;
|
||||
if (events.EventCondition1.Equals(m_ugq_grade)) return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user