초기커밋
This commit is contained in:
22
GameServer/Contents/Quest/QuestChecker/QuestTpsPlayerKill.cs
Normal file
22
GameServer/Contents/Quest/QuestChecker/QuestTpsPlayerKill.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using ServerCommon;
|
||||
|
||||
|
||||
namespace GameServer;
|
||||
|
||||
public class QuestTpsPlayerKill : QuestBase
|
||||
{
|
||||
private Int32 m_kill_count = 0;
|
||||
public QuestTpsPlayerKill(EQuestEventTargetType targetType, EQuestEventNameType eventNameType, int killCount) : base(targetType, eventNameType, 0, string.Empty, string.Empty, string.Empty)
|
||||
{
|
||||
m_kill_count = killCount;
|
||||
}
|
||||
|
||||
public override bool checkSubValidTaskScript(QuestAttribute questAttribute, QuestEventInfo events)
|
||||
{
|
||||
var kill_count = int.Parse(events.EventCondition1);
|
||||
|
||||
if (m_kill_count >= kill_count) return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user