Skip to content

cast function for bcz#828

Open
Shiverwarp wants to merge 7 commits intomainfrom
bcz-cast
Open

cast function for bcz#828
Shiverwarp wants to merge 7 commits intomainfrom
bcz-cast

Conversation

@Shiverwarp
Copy link
Contributor

No description provided.

casts = availableCasts(skill, statFloor);
}

if (!cast(skill, availableCasts(skill, statFloor))) return false;
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't really remember why it was written the old way, but how concerned are we about mafia getting misaligned on a casts pref? we could do it as a one-at-a-time cast loop that repeatedly checks availableCasts, maybe? I guess this is strictly an improvement

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't see a way to use availableCasts properly here, we would have to dynamically choose a stat floor below what the user could currently cast I guess?

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