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

[Item/Runes] Support Runes and Rune Slots #399

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

kirmmin
Copy link
Member

@kirmmin kirmmin commented Dec 9, 2021

Randomly generates Rune Slots as appropriate for the given item
Insert & Remove Runes from RuneSlots
Add the extra Rune Slot to items
Reroll Rune Slots
Stat calculations are not in yet

Thanks to @brannon-penrod for their help with the binary math calculations.

Randomly generates Rune Slots as appropriate for the given item
Insert & Remove Runes from RuneSlots
Add the extra Rune Slot to items
Reroll Rune Slots
Stat calculations are not in yet

Fix Rune Insert logic
continue;

// Rune Socket must be empty to place a rune in it, error.
if (item.Runes[i].RuneItem != null)

Choose a reason for hiding this comment

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

Hi @kirmmin I truly miss Wildstar, but not great at network/lower level code, so I was hoping I could help with your PRs. If you'd rather me not, just let me know.

Do we want to check for null prior to checking if the runeitem is the same (964)? It's minor either way.


if (recover)
{
if (GetInventorySlotsRemaining(InventoryLocation.Inventory) < 1u)
Copy link

Choose a reason for hiding this comment

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

it's been a while so apologies. Are runes stackable? If they are, we may want to check if || HasItem(item.Runes[socketIndex].RuneItem.Id)

@Rawaho Rawaho added this to the Pull Request Cleanup milestone Jan 16, 2023
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.

None yet

3 participants