From a141c9a110c0ee7578784810ff9f507f86832eb9 Mon Sep 17 00:00:00 2001 From: Arto Simonyan Date: Mon, 1 Jul 2024 16:30:29 +0300 Subject: [PATCH] Add runeword flag (#24) --- pkg/data/items.go | 1 + pkg/memory/item.go | 3 +++ 2 files changed, 4 insertions(+) diff --git a/pkg/data/items.go b/pkg/data/items.go index 223ed97..2a02368 100644 --- a/pkg/data/items.go +++ b/pkg/data/items.go @@ -61,6 +61,7 @@ type Item struct { BaseStats stat.Stats Stats stat.Stats Identified bool + IsRuneword bool } type Drop struct { diff --git a/pkg/memory/item.go b/pkg/memory/item.go index 5ff8c61..93b0d74 100644 --- a/pkg/memory/item.go +++ b/pkg/memory/item.go @@ -241,4 +241,7 @@ func setProperties(item *data.Item, flags uint32) { if 0x00000010&flags != 0 { item.Identified = true } + if 0x04000000&flags != 0 { + item.IsRuneword = true + } }