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

comms: standardize formatting, improve comments #992

Merged
merged 1 commit into from Oct 29, 2020
Merged

Conversation

capt-t
Copy link
Contributor

@capt-t capt-t commented Jul 19, 2020

  • remove ; at EOL
  • indent anonymous functions
  • improve a few comments
  • rename two loop variables

for n=0,shields-1 do
msg = msg .. "Shield " .. n .. ": " .. math.floor(comms_target:getShieldLevel(n) / comms_target:getShieldMax(n) * 100) .. "%\n"
addCommsReply(
"Report status",
Copy link
Owner

Choose a reason for hiding this comment

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

I don't like this style, I find it much less readable.

@capt-t
Copy link
Contributor Author

capt-t commented Oct 28, 2020

(The style settings were consistent with all the other early scenarios. I do not call the style with function and end of anonymous functions in their own lines and then putting all the other arguments in their own lines as well not as unreadable.)

Nevertheless, this is a reduced version of the original commit.

@daid daid merged commit 3254b26 into daid:master Oct 29, 2020
@capt-t capt-t deleted the comms branch October 29, 2020 21:12
olivier-vm pushed a commit to olivier-vm/EmptyEpsilon-Clones that referenced this pull request Oct 17, 2021
comms: standardize formatting, improve comments
olivier-vm added a commit to olivier-vm/EmptyEpsilon-Clones that referenced this pull request Oct 17, 2021
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