From 2c7250f0c867175430c8446bfa6233390cbdc2d7 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Mon, 26 Oct 2026 22:56:16 +0000 Subject: [PATCH] Decompile fn_00161 (PriceCommission) Batch #898 by ragnarok-clanker: 0 byte-identical, 1 confirmed by peer review. - fn_00161 PriceCommission: logic confirmed by peer review Reviewed-by: ragnarok-clanker Adds to the build: Source/UI/PriceCommission.cpp --- Source/UI/PriceCommission.cpp | 6 ++++++ compile.json | 1 + 2 files changed, 7 insertions(+) create mode 100644 Source/UI/PriceCommission.cpp diff --git a/Source/UI/PriceCommission.cpp b/Source/UI/PriceCommission.cpp new file mode 100644 index 0000000..2f2fcc1 --- /dev/null +++ b/Source/UI/PriceCommission.cpp @@ -0,0 +1,6 @@ +#include + +// FUNCTION: fn_00161 +int PriceCommission(std::int64_t price) { + return price > 10000000 ? 5 : 0; +} diff --git a/compile.json b/compile.json index f31c94d..c3bf9fd 100644 --- a/compile.json +++ b/compile.json @@ -535,6 +535,7 @@ "Source/UI/Party/UIRegisterPartyWnd.cpp": 2, "Source/UI/Party/UIRequestJoinPartyMgr.cpp": 2, "Source/UI/Party/UIRequestJoinPartyWnd.cpp": 2, + "Source/UI/PriceCommission.cpp": 2, "Source/UI/Shop/ItemDrawing.cpp": 2, "Source/UI/Shop/MerchantShopRefresh.cpp": 2, "Source/UI/Shop/PriceColor.cpp": 2,