Division Error When Making Pills

Locked
User avatar
NGGJamie
Host
Host
Posts: 370
Joined: 13 Mar 2017, 07:24
Byond: NGGJamie

Division Error When Making Pills

Post by NGGJamie » 30 Mar 2017, 09:39

Bug Description:
I've only noticed this happen when dealing with 120u of a chem and making 24 pills, but if you create 24 pills out of 120 chem, the division adds 1u to every pill.

Steps to reproduce:
1. Get a beaker of 120u
2. Create Multiple Pills, choose 24
3. You've made 24 6u pills instead of 5u pills.
Synthetic Application-Leonard [Accepted] - Predator Application-Thei-De Na'Tauk [Accepted]

Server Status

Mentor: 06/28/2017 - 08/07/2017 / Trial Moderator 08/07/2017 - 08/25/17 / Moderator 08/25/17 - 10/11/17 / Trial Admin 10/11/17 - 10/30/17 / Senior Mentor 10/30/17 - 03/15/18 / Mod Manager 03/15/18 - 07/08/18 / Coder 07/08/18 - 07/27/18 / Host 07/27/18 - Present

I run Linux on all of my machines and actively reject Windows. I have some cool dotfiles up on Github for configuring some of my favorite stuff.

User avatar
TheSpoonyCroy
Registered user
Posts: 333
Joined: 07 Dec 2015, 02:11

Re: Division Error When Making Pills

Post by TheSpoonyCroy » 30 Mar 2017, 09:55

Are you sure you aren't just making 20 pills instead of 24? I ask since I know chem dispenser has a limit of how many pills you can make with it at once, just unsure where the limit is but 20 seems like a decent arbitrary limit*.

edit: word choice*

User avatar
NGGJamie
Host
Host
Posts: 370
Joined: 13 Mar 2017, 07:24
Byond: NGGJamie

Re: Division Error When Making Pills

Post by NGGJamie » 30 Mar 2017, 10:09

TheSpoonyCroy wrote:Are you sure you aren't just making 20 pills instead of 24? If so that would be the issue
Hmm, I've never physically counted the pills. It's possible there's a limit of 20 that simply isn't expressed. I always assumed it perhaps to be a ceil() problem somehow.
Synthetic Application-Leonard [Accepted] - Predator Application-Thei-De Na'Tauk [Accepted]

Server Status

Mentor: 06/28/2017 - 08/07/2017 / Trial Moderator 08/07/2017 - 08/25/17 / Moderator 08/25/17 - 10/11/17 / Trial Admin 10/11/17 - 10/30/17 / Senior Mentor 10/30/17 - 03/15/18 / Mod Manager 03/15/18 - 07/08/18 / Coder 07/08/18 - 07/27/18 / Host 07/27/18 - Present

I run Linux on all of my machines and actively reject Windows. I have some cool dotfiles up on Github for configuring some of my favorite stuff.

User avatar
TheDonkified
Registered user
Posts: 581
Joined: 11 Dec 2016, 19:02
Byond: TheDonkified

Re: Division Error When Making Pills

Post by TheDonkified » 30 Mar 2017, 16:14

20 is the limit for pills you can make in the chem master.
lother jomes

User avatar
phil235
Registered user
Posts: 589
Joined: 29 Mar 2017, 20:29
Byond: phil235

Re: Division Error When Making Pills

Post by phil235 » 28 Apr 2017, 21:17

Fixed. The input window will now tell the player what the maximum pill amount is.

Locked