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

#1381 Split up describe_combat() #87

Closed

Conversation

artes-liberales
Copy link
Contributor

#1381 Split up describe_combat()

The function was split into three
by creating two new functions:
describe_blows and describe_damage.

Changes in:
obj-info.c

Note: The new functions have been tested with several
artifacts, and seem to describe them correctly when the
command 'I' for examining an item is given. Comparisons
were made by running two games at the same time, side by
side, one with the original code and one with the changed
code.


/* First we need to look for extra blows on other items, as
* state does not track these */
for (int i = INVEN_BOW; i < INVEN_TOTAL; i++)
Copy link
Member

Choose a reason for hiding this comment

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

You can't do this in Angband - we use C89. So all declarations inside the for () loop need moving to the top of the function.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, I'll fix that.

BlazesRus pushed a commit to BlazesRus/angband that referenced this pull request Jun 13, 2022
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

2 participants