mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 18:52:22 +00:00
[Tasks] Add rule to update multiple task elements (#2427)
On live if a task update would affect multiple elements, only the first
one gets updated. This was added as part of the changes in 7482cfc0.
Setting `UpdateOneElementPerTask` to false will restore the old behavior
that increments all active elements matching the task update criteria.
This commit is contained in:
@@ -592,7 +592,11 @@ int ClientTaskState::UpdateTasks(Client* client, const TaskUpdateFilter& filter,
|
||||
|
||||
int updated = IncrementDoneCount(client, task, client_task.slot, client_activity.activity_id, count);
|
||||
max_updated = std::max(max_updated, updated);
|
||||
break; // only one element updated per task, move to next task
|
||||
|
||||
if (RuleB(TaskSystem, UpdateOneElementPerTask))
|
||||
{
|
||||
break; // only one element updated per task, move to next task
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user