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

Prepull Combo Point APL Addition #649

Merged
merged 10 commits into from
Apr 12, 2024

Conversation

sanguinerarogue
Copy link
Contributor

Creating ability to add combo points to the APL via Honor Among Thieves. I had some issues with the log bugging out if sent a nil value for the SpellID so right now it is assigned to HaT. Haven't touched the APL at all so would appreciate a review.

image

image

if sim.Log != nil {
action.character.Log(sim, "Adding combo points (%s points)", numPoints)
}
metrics := action.character.NewComboPointMetrics(ActionID{SpellID: 432264})
Copy link
Collaborator

@kayla-glick kayla-glick Apr 11, 2024

Choose a reason for hiding this comment

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

@sanguinerarogue and I talked about this before but this spell ID doesn't really make sense here both for Rogue (who may not even have the Rune equipped) and also since this will be useful for Feral. The problem is that you have to provide an ActionID, but you can't use a blank ID or SpellID: 0 without breaking things apparently. We could potentially use a dummy spell like Attack?

Copy link
Contributor

Choose a reason for hiding this comment

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

@sanguinerarogue What you should do is create a new dummy id like we do for Attack/Move/Wait/Etc. It is added in common.proto in enum OtherAction and then add it to the switch case in action_id.ts

@sanguinerarogue
Copy link
Contributor Author

@rosenrusinov thank you for that lead. I've gone ahead and done so to create the add combo points ID.

image

However, now the resources tab is generating a line for each simulation for this addition (seen below). Let me know if you have seen this before or can point me in the right direction.

image

@rosenrusinov
Copy link
Contributor

@sanguinerarogue

However, now the resources tab is generating a line for each simulation for this addition (seen below). Let me know if you have seen this before or can point me in the right direction.

That is because you are creating a new metric on every Execute. The metric should be created once (in the apl action creation or even in the energy bar whatever feels better) and stored in the action struct and used in the execute

@sanguinerarogue
Copy link
Contributor Author

@rosenrusinov Thank you for the help! It looks resolved now if you don't mind taking another look.

@sanguinerarogue sanguinerarogue merged commit d1c43ce into wowsims:master Apr 12, 2024
1 check passed
@sanguinerarogue sanguinerarogue deleted the AddComboPointsAPL branch July 4, 2024 00:24
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.

3 participants