From 572ad1b6ab4ecca91cd04eea1f5e4396562e3463 Mon Sep 17 00:00:00 2001 From: "Michael Cook (mackal)" Date: Fri, 8 May 2020 12:56:10 -0400 Subject: [PATCH] Identify SubType in Item structs in some clients This maybe in older clients as well, but I couldn't verify it and those clients never did anything with this field so it doesn't matter. MQ2 calls this SubClass, but we call the field it's a "sub" of Type so I figured we'd call it SubType. We still need to rename the DB field and handle it server side etc --- common/patches/rof2_structs.h | 4 ++-- common/patches/rof_structs.h | 4 ++-- common/patches/uf_structs.h | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/common/patches/rof2_structs.h b/common/patches/rof2_structs.h index 10ce35654..92021c283 100644 --- a/common/patches/rof2_structs.h +++ b/common/patches/rof2_structs.h @@ -4804,8 +4804,8 @@ struct ItemQuaternaryBodyStruct int32 HealAmt; int32 SpellDmg; int32 Clairvoyance; - uint8 unknown18; //Power Source Capacity or evolve filename? - uint32 evolve_string; // Some String, but being evolution related is just a guess + int32 SubType; + uint8 evolve_string; // Some String, but being evolution related is just a guess uint8 unknown19; uint16 unknown20; uint8 unknown21; diff --git a/common/patches/rof_structs.h b/common/patches/rof_structs.h index 03f1a951a..bdf416724 100644 --- a/common/patches/rof_structs.h +++ b/common/patches/rof_structs.h @@ -4744,8 +4744,8 @@ struct ItemQuaternaryBodyStruct int32 HealAmt; int32 SpellDmg; int32 Clairvoyance; - uint8 unknown18; //Power Source Capacity or evolve filename? - uint32 evolve_string; // Some String, but being evolution related is just a guess + int32 SubType; + uint8 evolve_string; // Some String, but being evolution related is just a guess uint8 unknown19; uint32 unknown20; // Bard Stuff? //uint32 unknown21; diff --git a/common/patches/uf_structs.h b/common/patches/uf_structs.h index b6eb414e1..3a66e2a88 100644 --- a/common/patches/uf_structs.h +++ b/common/patches/uf_structs.h @@ -4215,8 +4215,8 @@ struct ItemQuaternaryBodyStruct int32 HealAmt; int32 SpellDmg; int32 Clairvoyance; - uint8 unknown18; //Power Source Capacity or evolve filename? - uint32 evolve_string; // Some String, but being evolution related is just a guess + int32 SubType; + uint8 evolve_string; // Some String, but being evolution related is just a guess uint8 unknown19; uint32 unknown20; // Bard Stuff? uint32 unknown21;