{"action":"opened","issue":{"url":"https://api.github.com/repos/StrangeLoopGames/EcoIssues/issues/7265","repository_url":"https://api.github.com/repos/StrangeLoopGames/EcoIssues","labels_url":"https://api.github.com/repos/StrangeLoopGames/EcoIssues/issues/7265/labels{/name}","comments_url":"https://api.github.com/repos/StrangeLoopGames/EcoIssues/issues/7265/comments","events_url":"https://api.github.com/repos/StrangeLoopGames/EcoIssues/issues/7265/events","html_url":"https://github.com/StrangeLoopGames/EcoIssues/issues/7265","id":315292050,"number":7265,"title":"User Issue: Need more than exact change when purchasing from shop","user":{"login":"Elliander","id":15022396,"avatar_url":"https://avatars3.githubusercontent.com/u/15022396?v=4","gravatar_id":"","url":"https://api.github.com/users/Elliander","html_url":"https://github.com/Elliander","followers_url":"https://api.github.com/users/Elliander/followers","following_url":"https://api.github.com/users/Elliander/following{/other_user}","gists_url":"https://api.github.com/users/Elliander/gists{/gist_id}","starred_url":"https://api.github.com/users/Elliander/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Elliander/subscriptions","organizations_url":"https://api.github.com/users/Elliander/orgs","repos_url":"https://api.github.com/users/Elliander/repos","events_url":"https://api.github.com/users/Elliander/events{/privacy}","received_events_url":"https://api.github.com/users/Elliander/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-18T00:58:53Z","updated_at":"2018-04-18T00:58:53Z","closed_at":null,"author_association":"NONE","body":"**Version:** 0.7.4.0 beta staging-b8e0bc58\r\n\r\nWhen I went to make a purchase in game, having exactly 1 credit and trying to buy an item costing 1 credit, I was unable to do so because the game things \"You can't afford that. You have 1 [credit] but need 1.\" As you can see here:\r\n\r\n![need_more_than-exact_change](https://user-images.githubusercontent.com/15022396/38905901-1509399e-4279-11e8-8473-1650b7a48248.jpg)\r\n\r\nSelling an item for 0.2 credit allowed me to purchase.\r\n\r\n**Steps to Reproduce:**\r\n\r\n1. Have exact change to make a purchase.\r\n2. Attempt to make a purchase that would result in credit remaining.\r\n(I only observed this with 1 even credit, so it might work with other numbers. Don't know)\r\n\r\n**Expected behavior:**\r\n\r\nIf I have exact change to make a purchase it should allow me to end up with zero money.\r\n\r\n**Actual behavior:**\r\n\r\nOnce credit is acquired it's impossible to have zero since some seems to be required to be left over no matter what. This could also skew people into thinking a currency has more acceptance than it does. My guess is that it's probably a very slight logic error where a zero is incorrectly handled.\r\n"}}
{"actor":{"display_login":"Elliander"}}