diff --git a/Source/UI/Enchant/EnchantUI.h b/Source/UI/Enchant/EnchantUI.h index 41945db8..e8e81670 100644 --- a/Source/UI/Enchant/EnchantUI.h +++ b/Source/UI/Enchant/EnchantUI.h @@ -81,6 +81,7 @@ public: /* 00A8 */ uint64_t group; /* 00B0 */ int unknown_00B0; + void Slot16() override; virtual void Slot54(int argument1, int argument2); virtual void Slot55() = 0; virtual void Slot56() = 0; @@ -116,6 +117,7 @@ public: class CUIUpgradeRandom : public CUIUpgradeEnchantPage { public: + void Slot16() override; void Slot55() override; }; diff --git a/Source/UI/Enchant/UIEnchantUI.cpp b/Source/UI/Enchant/UIEnchantUI.cpp index 1a7131cb..5ba9904e 100644 --- a/Source/UI/Enchant/UIEnchantUI.cpp +++ b/Source/UI/Enchant/UIEnchantUI.cpp @@ -379,3 +379,11 @@ void CUIEnchantUI::Slot53() { this->Slot15(this->geometry.width, this->geometry.height); this->Slot16(); } + +// OFFSET: 0x00A06170 +// FUNCTION: fn_14993 +void EnchantUI::CUIUpgradeRandom::Slot16() { + EnchantUI::CUIEnchantPage::Slot16(); + this->enchantList->unknown_00C4 = 1; + this->enchantList->Invalidate(); +}