From cb097bef584ac60833a33c014d95bc362c8ca779 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Sat, 31 Oct 2026 11:35:55 +0000 Subject: [PATCH] Decompile fn_17063 (ContainsValue) Batch #7732 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_17063 ContainsValue: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, Yommy, Snow Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/UI/Text/ColoredText.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Source/UI/Text/ColoredText.cpp b/Source/UI/Text/ColoredText.cpp index 3c7e8951..da04a1e5 100644 --- a/Source/UI/Text/ColoredText.cpp +++ b/Source/UI/Text/ColoredText.cpp @@ -4,7 +4,9 @@ #include "UI/Text/ColoredText.h" #include "UI/Window/UIWindow.h" +#include #include +#include #include #include @@ -299,3 +301,9 @@ std::string StripColorCodes(const char* text, unsigned bytes) { return result; } + +// OFFSET: 0x00A874B0 +// FUNCTION: fn_17063 +bool ContainsValue(const std::deque& values, const int& value) { + return std::find(values.begin(), values.end(), value) != values.end(); +}