[Tasks] Use dz switch id for task touch events (#2344)

This changes task touch elements to use the dz_switch_id as the goal id
instead of checking if a player zoned. It will remove the need to script
door clicks or modify task element zone field since task packet data can
just be imported.
This commit is contained in:
hg
2022-07-30 22:14:22 -04:00
committed by GitHub
parent 676467cbdc
commit 5e7e255d72
5 changed files with 13 additions and 18 deletions
+4
View File
@@ -1178,6 +1178,10 @@ public:
}
else { return false; }
}
void UpdateTasksOnTouchSwitch(int dz_switch_id)
{
if (task_state) { task_state->UpdateTasksOnTouch(this, dz_switch_id); }
}
inline void TaskSetSelector(Mob *mob, int task_set_id)
{
if (task_manager) {