From a1ed572acac94819627ca16a586b918302818067 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 17 Oct 2026 09:47:38 -0400 Subject: [PATCH] Fix item use flag bit order to match client The client's use flag name table (sb.exe 0x16C9728) has None at bit 0, so USE_SELF is bit 1 through EMPTY_NEWITEM at bit 4. Names in the JSON were one bit low. Co-Authored-By: Claude Opus 5.5 --- mbEditorPro2.0/arcane/enums/arc_item.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/mbEditorPro2.0/arcane/enums/arc_item.py b/mbEditorPro2.0/arcane/enums/arc_item.py index 2d2e6a4..3958a69 100644 --- a/mbEditorPro2.0/arcane/enums/arc_item.py +++ b/mbEditorPro2.0/arcane/enums/arc_item.py @@ -218,12 +218,13 @@ STRING_TO_ITEM_TYPE = { 'REALMCHARTER': ITEM_TYPE_REALMCHARTER, } -ITEM_USE_FLAGS_NONE = 0 -ITEM_USE_FLAGS_USE_SELF = 1 << 0 -ITEM_USE_FLAGS_USE_TARGET = 1 << 1 -ITEM_USE_FLAGS_EMPTY_DESTROY = 1 << 2 -ITEM_USE_FLAGS_EMPTY_NEWITEM = 1 << 3 -ITEM_USE_FLAGS_NUM = 4 +# Bit order from the client's use flag name table (sb.exe 0x16C9728) +ITEM_USE_FLAGS_NONE = 1 << 0 +ITEM_USE_FLAGS_USE_SELF = 1 << 1 +ITEM_USE_FLAGS_USE_TARGET = 1 << 2 +ITEM_USE_FLAGS_EMPTY_DESTROY = 1 << 3 +ITEM_USE_FLAGS_EMPTY_NEWITEM = 1 << 4 +ITEM_USE_FLAGS_NUM = 5 ITEM_USE_FLAGS_TO_STRING = { ITEM_USE_FLAGS_NONE: 'NONE',