From c0d487830ea8d23b2ca0e0ccb8ecd196dbf5bf53 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 29 Apr 2007 11:28:13 +0000 Subject: Added talk script offset field to hotspot resources svn-id: r26674 --- tools/create_lure/create_lure_dat.cpp | 3 ++- tools/create_lure/create_lure_dat.h | 13 ++++++++----- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/tools/create_lure/create_lure_dat.cpp b/tools/create_lure/create_lure_dat.cpp index 13008eab1b..109b4f268b 100644 --- a/tools/create_lure/create_lure_dat.cpp +++ b/tools/create_lure/create_lure_dat.cpp @@ -269,7 +269,8 @@ void read_hotspot_data(byte *&data, uint16 &totalSize) r->scriptLoadFlag = entry.scriptLoadFlag; r->loadOffset = entry.loadOffset; r->colourOffset = entry.colourOffset; - r->sequenceOffset = entry.sequenceOffset; + r->hotspotScriptOffset = entry.hotspotScriptOffset; + r->talkScriptOffset = entry.talkScriptOffset; r->tickProcOffset = entry.tickProcOffset; r->flags = entry.flags; diff --git a/tools/create_lure/create_lure_dat.h b/tools/create_lure/create_lure_dat.h index 8cfe8ee09b..b3fd6d198a 100644 --- a/tools/create_lure/create_lure_dat.h +++ b/tools/create_lure/create_lure_dat.h @@ -27,7 +27,7 @@ #include "common/endian.h" #define VERSION_MAJOR 1 -#define VERSION_MINOR 18 +#define VERSION_MINOR 19 #define ENGLISH_LURE #define DATA_SEGMENT 0xac50 @@ -136,11 +136,13 @@ struct HotspotResource { uint16 tickTimeout; uint16 animOffset; byte colourOffset; - uint16 sequenceOffset; - byte unknown4[15]; + uint16 hotspotScriptOffset; + byte unused1[7]; + uint16 talkScriptOffset; + byte unused2[6]; int8 talkX; int8 talkY; - byte unused5[11]; + byte unused3[11]; uint16 delayCtr; uint8 characterMode; uint16 tickSequenceOffset; @@ -176,7 +178,8 @@ struct HotspotResourceOutput { int8 talkY; uint16 colourOffset; uint16 animRecordId; - uint16 sequenceOffset; + uint16 hotspotScriptOffset; + uint16 talkScriptOffset; uint16 tickProcOffset; uint16 tickTimeout; uint16 tickSequenceOffset; -- cgit v1.2.3