{"action":"created","issue":{"url":"https://api.github.com/repos/dasilva333/TowerGhostForDestiny/issues/220","labels_url":"https://api.github.com/repos/dasilva333/TowerGhostForDestiny/issues/220/labels{/name}","comments_url":"https://api.github.com/repos/dasilva333/TowerGhostForDestiny/issues/220/comments","events_url":"https://api.github.com/repos/dasilva333/TowerGhostForDestiny/issues/220/events","html_url":"https://github.com/dasilva333/TowerGhostForDestiny/issues/220","id":79545499,"number":220,"title":"Moving multiple stacked items results in wrong number displayed","user":{"login":"M3Rocket","id":3769123,"avatar_url":"https://avatars.githubusercontent.com/u/3769123?v=3","gravatar_id":"","url":"https://api.github.com/users/M3Rocket","html_url":"https://github.com/M3Rocket","followers_url":"https://api.github.com/users/M3Rocket/followers","following_url":"https://api.github.com/users/M3Rocket/following{/other_user}","gists_url":"https://api.github.com/users/M3Rocket/gists{/gist_id}","starred_url":"https://api.github.com/users/M3Rocket/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/M3Rocket/subscriptions","organizations_url":"https://api.github.com/users/M3Rocket/orgs","repos_url":"https://api.github.com/users/M3Rocket/repos","events_url":"https://api.github.com/users/M3Rocket/events{/privacy}","received_events_url":"https://api.github.com/users/M3Rocket/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dasilva333/TowerGhostForDestiny/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"Mulchman","id":11757993,"avatar_url":"https://avatars.githubusercontent.com/u/11757993?v=3","gravatar_id":"","url":"https://api.github.com/users/Mulchman","html_url":"https://github.com/Mulchman","followers_url":"https://api.github.com/users/Mulchman/followers","following_url":"https://api.github.com/users/Mulchman/following{/other_user}","gists_url":"https://api.github.com/users/Mulchman/gists{/gist_id}","starred_url":"https://api.github.com/users/Mulchman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mulchman/subscriptions","organizations_url":"https://api.github.com/users/Mulchman/orgs","repos_url":"https://api.github.com/users/Mulchman/repos","events_url":"https://api.github.com/users/Mulchman/events{/privacy}","received_events_url":"https://api.github.com/users/Mulchman/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-05-22T17:46:26Z","updated_at":"2015-06-19T20:13:25Z","closed_at":null,"body":"I think it's more a display problem than the actual calculation, but when you move items from multiple stacks to another, it results in the number shown incorrectly when the stack is reduced below the max stack size. Refreshing restores the correct number. \r\n\r\nExample, moving 63 Spinmetal from two stacks of 233 on left to single 26 right:\r\n![image](https://cloud.githubusercontent.com/assets/3769123/7776283/9f9ea6c0-006e-11e5-83a2-1452bdda74f8.png)\r\n\r\nTransfer box dialog:\r\n![image](https://cloud.githubusercontent.com/assets/3769123/7776301/af902b4e-006e-11e5-8d92-daae4054407c.png)\r\n\r\nResults:\r\n![image](https://cloud.githubusercontent.com/assets/3769123/7776311/d086080a-006e-11e5-92fd-a2f5f5f5c5c2.png)\r\n\r\nWhen transferring an amount into a stack that isn't maxed (transfer 50 to a stack of 160), the opposite occurs where instead showing two stacks (one at 200, the other at 10), it shows one stack of 210. Refresh solves the problematic display. \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/dasilva333/TowerGhostForDestiny/issues/comments/113629732","html_url":"https://github.com/dasilva333/TowerGhostForDestiny/issues/220#issuecomment-113629732","issue_url":"https://api.github.com/repos/dasilva333/TowerGhostForDestiny/issues/220","id":113629732,"user":{"login":"Mulchman","id":11757993,"avatar_url":"https://avatars.githubusercontent.com/u/11757993?v=3","gravatar_id":"","url":"https://api.github.com/users/Mulchman","html_url":"https://github.com/Mulchman","followers_url":"https://api.github.com/users/Mulchman/followers","following_url":"https://api.github.com/users/Mulchman/following{/other_user}","gists_url":"https://api.github.com/users/Mulchman/gists{/gist_id}","starred_url":"https://api.github.com/users/Mulchman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mulchman/subscriptions","organizations_url":"https://api.github.com/users/Mulchman/orgs","repos_url":"https://api.github.com/users/Mulchman/repos","events_url":"https://api.github.com/users/Mulchman/events{/privacy}","received_events_url":"https://api.github.com/users/Mulchman/received_events","type":"User","site_admin":false},"created_at":"2015-06-19T20:13:25Z","updated_at":"2015-06-19T20:13:25Z","body":"Thanks @M3Rocket \r\n\r\nFound a bug due to not checking for -1 return value of _.indexOf(). Fix will be in soon."}}