[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
+1 -1
View File
@@ -163,7 +163,7 @@ struct ActivityInformation {
out.WriteInt32(zone_ids.empty() ? 0 : zone_ids.front());
}
out.WriteInt32(0); // unknown id
out.WriteInt32(activity_type == TaskActivityType::Touch ? goal_id : 0); // dz_switch_id (maybe add separate field)
out.WriteString(description_override);
out.WriteInt32(done_count);
out.WriteInt8(1); // unknown