KEMBAR78
NUVIE: Fix Ultima 6 item order by PushmePullyu · Pull Request #4806 · scummvm/scummvm · GitHub
Skip to content

Conversation

@PushmePullyu
Copy link
Contributor

Addresses the following problems:

  1. UseCode::search_container() moves items to the map in the wrong order
  2. When loading a chunk items are added to containers in the wrong order (e.g. Iolos starting bag and the chest in the Avatars room SW of the throne room)

This assumes the correct order is the one expected by the inventory GUI.

The items should be ordered as follows when starting a new game with these fixes:
Gargoyle corpse: weapons first, helmets/armor last
Iolos bag: knife first, grapes last
Avatar chest: torches first, chain coif last

Fixes #13514

Add items to containers in the correct order when loading a chunk.
Traverse container content list from the start instead of the end
so items get moved to the map in the correct order.

Fixes #13514
Traverse container content list from the start instead of the end
when saving chunks so the items are stored in the correct order.
@dreammaster
Copy link
Member

All looks good. Merging

@dreammaster dreammaster merged commit 33d1a4f into scummvm:master Mar 14, 2023
@PushmePullyu PushmePullyu deleted the fix-u6-item-order branch March 14, 2023 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants