mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-03 21:56:36 +00:00
[Tasks] Make Task Selector Cooldown Optional (#2420)
Some live npcs ignore the request cooldown timer (tutorialb) A separate function had to be used for perl because the apis use an array instead of array reference which won't allow a bool overload This also replaces the fixed array and count args with a vector
This commit is contained in:
+6
-17
@@ -1166,27 +1166,16 @@ public:
|
||||
{
|
||||
if (task_state) { task_state->UpdateTasksOnTouch(this, dz_switch_id); }
|
||||
}
|
||||
inline void TaskSetSelector(Mob *mob, int task_set_id)
|
||||
inline void TaskSetSelector(Mob* mob, int task_set_id, bool ignore_cooldown)
|
||||
{
|
||||
if (task_manager) {
|
||||
task_manager->TaskSetSelector(
|
||||
this,
|
||||
task_state,
|
||||
mob,
|
||||
task_set_id
|
||||
);
|
||||
if (task_manager && task_state) {
|
||||
task_manager->TaskSetSelector(this, mob, task_set_id, ignore_cooldown);
|
||||
}
|
||||
}
|
||||
inline void TaskQuestSetSelector(Mob *mob, int count, int *tasks)
|
||||
inline void TaskQuestSetSelector(Mob* mob, const std::vector<int>& tasks, bool ignore_cooldown)
|
||||
{
|
||||
if (task_manager) {
|
||||
task_manager->TaskQuestSetSelector(
|
||||
this,
|
||||
task_state,
|
||||
mob,
|
||||
count,
|
||||
tasks
|
||||
);
|
||||
if (task_manager && task_state) {
|
||||
task_manager->TaskQuestSetSelector(this, mob, tasks, ignore_cooldown);
|
||||
}
|
||||
}
|
||||
inline void EnableTask(int task_count, int *task_list)
|
||||
|
||||
Reference in New Issue
Block a user