From a93eb268990c06484a9d2fd59980b888c019fbe6 Mon Sep 17 00:00:00 2001 From: Lukas Himbert Date: Tue, 16 Jan 2024 09:31:05 +0100 Subject: [PATCH] ShopItem thanks to eArmada8 --- tocs/src/tbl/schemas_cs3.rs | 9 +++++++++ tocs/src/tbl/schemas_cs4.rs | 9 +++++++++ tocs/src/tbl/schemas_cs5.rs | 9 +++++++++ 3 files changed, 27 insertions(+) diff --git a/tocs/src/tbl/schemas_cs3.rs b/tocs/src/tbl/schemas_cs3.rs index a160b41..6b5fe3e 100644 --- a/tocs/src/tbl/schemas_cs3.rs +++ b/tocs/src/tbl/schemas_cs3.rs @@ -515,6 +515,15 @@ ("text", Type::CUtf8), ("unknown_data", Type::X(6)), ]), + ("ShopItem", &[ + ("shop_id", Type::U16), + ("item_id", Type::U16), + ("unknown_short_1", Type::U16), + ("availability", Type::U16), + ("unknown_data", Type::X(5)), + ("unknown_short_2", Type::I16), + ("unknown_short_3", Type::U16), + ]), ("se", &[ ("id", Type::U16), ("unknown_string_1", Type::CUtf8), diff --git a/tocs/src/tbl/schemas_cs4.rs b/tocs/src/tbl/schemas_cs4.rs index d6bcab8..329a7ef 100644 --- a/tocs/src/tbl/schemas_cs4.rs +++ b/tocs/src/tbl/schemas_cs4.rs @@ -621,6 +621,15 @@ ("unknown_data_2", Type::X(4)), ("unknown_float_3", Type::F32), ]), + ("ShopItem", &[ + ("shop_id", Type::U16), + ("item_id", Type::U16), + ("unknown_short_1", Type::U16), + ("availability", Type::U16), + ("unknown_data", Type::X(5)), + ("unknown_short_2", Type::I16), + ("unknown_short_3", Type::U16), + ]), ("SlotCost", &[ ("slot_position", Type::I16), ("level", Type::I16), diff --git a/tocs/src/tbl/schemas_cs5.rs b/tocs/src/tbl/schemas_cs5.rs index 2c4b35b..ae23235 100644 --- a/tocs/src/tbl/schemas_cs5.rs +++ b/tocs/src/tbl/schemas_cs5.rs @@ -1219,6 +1219,15 @@ ("name", Type::CUtf8), ("description", Type::CUtf8), ]), + ("ShopItem", &[ + ("shop_id", Type::U16), + ("item_id", Type::U16), + ("unknown_short_1", Type::U16), + ("availability", Type::U16), + ("unknown_data", Type::X(5)), + ("unknown_short_2", Type::I16), + ("unknown_short_3", Type::U16), + ]), ("SlotCost", &[ ("slot_position", Type::I16), ("level", Type::I16), -- 2.45.2