tgstation/-tg-station — pull request #2699 by metaglog (2014-02-09 17:07:20+00:00)
Title: Adds a new option to the Chemmaster 3000 to mass-produce pills

I know the {min,max,round} stuff looks a bit dense but basically it:
- Enforces a non-zero integer between 1 and 10 as input (which means that you can create a minimum of 1 pill and a maximum of 10 pills)
- Keeps the unit count at 50u in case it would be exceeded (eg. by trying to create a single pill with 100u worth of reagents)

Also:
- It also automatically labels the pills with the number of units in each. I can do something similar for the "createpill" option if so desired.
- Prevents empty pills from being created in both "createpill" and "createpills". I can remove that if creating empty pills is a thing.

I'm not that happy about how it looks in the Chemmaster 3000 window, but that should do for now.