{"action":"closed","issue":{"url":"https://api.github.com/repos/swarmsim/swarm/issues/389","labels_url":"https://api.github.com/repos/swarmsim/swarm/issues/389/labels{/name}","comments_url":"https://api.github.com/repos/swarmsim/swarm/issues/389/comments","events_url":"https://api.github.com/repos/swarmsim/swarm/issues/389/events","html_url":"https://github.com/swarmsim/swarm/issues/389","id":58640926,"number":389,"title":"QOL - buy-N-units input exact amount (with twins)","user":{"login":"tomeresk","id":4209872,"avatar_url":"https://avatars.githubusercontent.com/u/4209872?v=3","gravatar_id":"","url":"https://api.github.com/users/tomeresk","html_url":"https://github.com/tomeresk","followers_url":"https://api.github.com/users/tomeresk/followers","following_url":"https://api.github.com/users/tomeresk/following{/other_user}","gists_url":"https://api.github.com/users/tomeresk/gists{/gist_id}","starred_url":"https://api.github.com/users/tomeresk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomeresk/subscriptions","organizations_url":"https://api.github.com/users/tomeresk/orgs","repos_url":"https://api.github.com/users/tomeresk/repos","events_url":"https://api.github.com/users/tomeresk/events{/privacy}","received_events_url":"https://api.github.com/users/tomeresk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/swarmsim/swarm/milestones/3","html_url":"https://github.com/swarmsim/swarm/milestones/patch","labels_url":"https://api.github.com/repos/swarmsim/swarm/milestones/3/labels","id":767273,"number":3,"title":"patch","description":"","creator":{"login":"erosson","id":238846,"avatar_url":"https://avatars.githubusercontent.com/u/238846?v=3","gravatar_id":"","url":"https://api.github.com/users/erosson","html_url":"https://github.com/erosson","followers_url":"https://api.github.com/users/erosson/followers","following_url":"https://api.github.com/users/erosson/following{/other_user}","gists_url":"https://api.github.com/users/erosson/gists{/gist_id}","starred_url":"https://api.github.com/users/erosson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erosson/subscriptions","organizations_url":"https://api.github.com/users/erosson/orgs","repos_url":"https://api.github.com/users/erosson/repos","events_url":"https://api.github.com/users/erosson/events{/privacy}","received_events_url":"https://api.github.com/users/erosson/received_events","type":"User","site_admin":false},"open_issues":120,"closed_issues":119,"state":"open","created_at":"2014-08-27T11:22:06Z","updated_at":"2015-03-31T03:58:24Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2015-02-23T20:11:10Z","updated_at":"2015-03-31T03:58:24Z","closed_at":"2015-03-31T03:58:24Z","body":"Currently if I want to buy 1M of a unit before I have any twin upgrades I can just input that amount and get it.\r\nOnce I have twins x256 for example, if I want to buy 1M units I actually have to manually calculate it and put in 3907 (1M divided by 256 and rounded up).\r\n\r\nWould be really nice to have some form of option to make that field buy the exact amount of units that I write.\r\n\r\nFor example:\r\nIf I put in 1,000,000 and have no twin upgrades, it will buy 1M units.\r\nIf i put in 1,000,000 and have x256 twin upgrade, it will make the division and round it up, actually buying only 3907, but I get roughly the 1M I originally wanted to buy.\r\n\r\nThanks!"}}