[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 authored and GitHub committed 2022-07-30 21:14:22 -05:00
1 parent 676467cbdc
commit 5e7e255d72
5 files changed
+13 -18

No files matched your search

+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) {