Skip to content

Commit 4d134a9

Browse files
committed
Fix WSC multi import flag settings.
1 parent 24fee9c commit 4d134a9

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

Ultima/MultiComponentList.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ public MultiComponentList(string fileName, Multis.ImportType type)
435435
var tempItem = new MultiTileEntry
436436
{
437437
ItemId = 0xFFFF,
438-
Flags = 0,
438+
Flags = 1,
439439
Unk1 = 0
440440
};
441441

@@ -448,15 +448,15 @@ public MultiComponentList(string fileName, Multis.ImportType type)
448448
{
449449
if (DynamicItemIds != null && DynamicItemIds.Contains(tempItem.ItemId))
450450
{
451-
tempItem.Flags = 1;
451+
tempItem.Flags = 0;
452452
}
453453

454454
SortedTiles[itemCount] = tempItem;
455455
++itemCount;
456456
}
457457

458458
tempItem.ItemId = 0xFFFF;
459-
tempItem.Flags = 0;
459+
tempItem.Flags = 1;
460460
}
461461
else if (line.StartsWith("ID"))
462462
{
@@ -510,7 +510,7 @@ public MultiComponentList(string fileName, Multis.ImportType type)
510510
{
511511
if (DynamicItemIds?.Contains(tempItem.ItemId) == true)
512512
{
513-
tempItem.Flags = 1;
513+
tempItem.Flags = 0;
514514
}
515515

516516
SortedTiles[itemCount] = tempItem;

UoFiddler/DynamicItems.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!--
3-
Items listed here are flagged as dynamic (Flags=1) when importing from WSC format.
3+
Items listed here are flagged as dynamic (Flags=0) when importing from WSC format.
44
Dynamic items spawn as interactive world objects when a house deed is placed
55
(e.g. doors that can be opened, functional crafting stations, placeable signs).
66

0 commit comments

Comments
 (0)