-
Notifications
You must be signed in to change notification settings - Fork 23
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
Implement a version of ShadowTheAge#181, allowing XXb to specify XX belts of production. #128
Conversation
Edit: alright, now I see them. Apologies :D |
SIck tests! The most thorough I've seen so far. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I approved, but someone else needs to take a look at it too, just to be sure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice to see you are back at YAFC/Factorio 😄
I'm not opposed to repurposing m for milli- instead of mega-, but I didn't want to do that here.
Same, having the correct letters for the correct 'factors' is less confusing (and players might even learn a thing or two 😉 )
I think it was done for convenience. Sometimes you want mega (10^6) for megawatts, but you almost never want to enter milli (10^-3), and you don't want to press Shift all the time for mega. |
Just giving my thoughts on the matter. I don't use either one of them as I let YAFC calculate all the needs, and I do not have 'end products' in either 'milli' or 'mega' range 😉 But from a standardization point of view: I like standards and YAFC does not implement them correctly, so it triggers me (a little). |
…elts of production. Also look for /s, /m, or /h suffixes. If present, use that suffix regardless of the current display settings.
Also look for /s, /m, or /h suffixes. If present, use that suffix regardless of the current display settings.
The objectives I developed over the course of implementing this, re-implementing it, and remembering I needed to write tests, were:
FormatValue(..., precise: true)
)I'm not opposed to repurposing m for milli- instead of mega-, but I didn't want to do that here.