Skip to content

add item count syncing#85

Open
AcrylonitrileButadieneStyrene wants to merge 1 commit intoynoproject:masterfrom
AcrylonitrileButadieneStyrene:patch-1
Open

add item count syncing#85
AcrylonitrileButadieneStyrene wants to merge 1 commit intoynoproject:masterfrom
AcrylonitrileButadieneStyrene:patch-1

Conversation

@AcrylonitrileButadieneStyrene
Copy link
Copy Markdown

some of the newer games (Love You, FOG) only use items for some things and not permanent switches, which has caused issues with badges being made.

adds item syncing similar to how variables and switches are synced

this has not been tested outside of it compiling.

Copy link
Copy Markdown
Contributor

@Desdaemon Desdaemon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This branch also manipulates data.item_counts if it's relevant to badge tags tracking

if (data.item_counts[idx] == 1) {
// We just used up the last one
data.item_ids.erase(data.item_ids.begin() + idx);
data.item_counts.erase(data.item_counts.begin() + idx);
data.item_usage.erase(data.item_usage.begin() + idx);
} else {
data.item_counts[idx]--;
data.item_usage[idx] = 0;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants