Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add DD to WorldState, pomanders and magicite to ActionID #572

Merged
merged 1 commit into from
Jan 26, 2025

Conversation

xanunderscore
Copy link
Collaborator

I didn't add poms/magicite to actionqueue yet but it doesn't really matter since no modules will be using them. I had a concern about HandleActionRequest but it looks like we're ok with just directly calling it after we call the original function, same as UseBozjaFromHolsterDirectorDetour


public Item GetItem(PomanderID pid) => GetSlotForPomander(pid) is var s && s >= 0 ? Items[s] : default;

public int GetSlotForPomander(PomanderID pid) => Service.LuminaRow<Lumina.Excel.Sheets.DeepDungeon>(DungeonId)!.Value.PomanderSlot.ToList().FindIndex(p => p.RowId == (uint)pid);
Copy link
Owner

Choose a reason for hiding this comment

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

This looks inefficient, why do you convert to list here?

@awgil awgil merged commit 5e2f394 into awgil:master Jan 26, 2025
1 check passed
@xanunderscore xanunderscore deleted the dd branch February 6, 2025 23:58
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