{"action":"created","issue":{"url":"https://api.github.com/repos/Beetrootmonkey/Moonstones/issues/2","repository_url":"https://api.github.com/repos/Beetrootmonkey/Moonstones","labels_url":"https://api.github.com/repos/Beetrootmonkey/Moonstones/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/Beetrootmonkey/Moonstones/issues/2/comments","events_url":"https://api.github.com/repos/Beetrootmonkey/Moonstones/issues/2/events","html_url":"https://github.com/Beetrootmonkey/Moonstones/issues/2","id":343215390,"node_id":"MDU6SXNzdWUzNDMyMTUzOTA=","number":2,"title":"Multiplayer only gives accessory moonstones","user":{"login":"Yangfu1000","id":24943398,"node_id":"MDQ6VXNlcjI0OTQzMzk4","avatar_url":"https://avatars0.githubusercontent.com/u/24943398?v=4","gravatar_id":"","url":"https://api.github.com/users/Yangfu1000","html_url":"https://github.com/Yangfu1000","followers_url":"https://api.github.com/users/Yangfu1000/followers","following_url":"https://api.github.com/users/Yangfu1000/following{/other_user}","gists_url":"https://api.github.com/users/Yangfu1000/gists{/gist_id}","starred_url":"https://api.github.com/users/Yangfu1000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yangfu1000/subscriptions","organizations_url":"https://api.github.com/users/Yangfu1000/orgs","repos_url":"https://api.github.com/users/Yangfu1000/repos","events_url":"https://api.github.com/users/Yangfu1000/events{/privacy}","received_events_url":"https://api.github.com/users/Yangfu1000/received_events","type":"User","site_admin":false},"labels":[{"id":991102542,"node_id":"MDU6TGFiZWw5OTExMDI1NDI=","url":"https://api.github.com/repos/Beetrootmonkey/Moonstones/labels/bug","name":"bug","color":"d73a4a","default":true},{"id":991102545,"node_id":"MDU6TGFiZWw5OTExMDI1NDU=","url":"https://api.github.com/repos/Beetrootmonkey/Moonstones/labels/help%20wanted","name":"help wanted","color":"008672","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-07-20T19:01:48Z","updated_at":"2018-08-11T18:14:22Z","closed_at":"2018-08-11T18:14:22Z","author_association":"NONE","body":"Hi Beetrootmonkey,\r\n\r\nI was doing a modded multiplayer playthrough with some friends. I noticed that every single time anyone clicked the dormant moonstone, it would always give an accessory. So, a full stack of dormant moonstones later, there was not a singular weapon moonstone...\r\n\r\nI'm also a coder, so I downloaded the mod files and did some debugging. I don't know if this is a mistake in the API or the mod but I found a solution to fix the bug.\r\n\r\nIn line 31 of MoonstoneBlank.cs I changed it to\r\n\r\nif (Main.rand.Next(2) == 1)\r\n\r\ninstead of\r\n\r\nif (Main.rand.Next(1) != 0)\r\n\r\nThat was the only change I found was needed.\r\nI tested the edited code with another full stack of dormant moonstones just to see if it was a 50 50 chance to get a weapon or accessory. It seemed to be successful having about a 50 50 chance give or take a few.\r\n\r\nI have not used this in Singleplayer, but I just wanted to let you know and give a suggestion how to fix it.\r\n\r\nIn the event that you accept my suggestion, I hope that it helps and possibly give me recognition?\r\n\r\n\r\nSincerely,\r\n\r\nYangfu1000- The Shy Coder"},"comment":{"url":"https://api.github.com/repos/Beetrootmonkey/Moonstones/issues/comments/412292495","html_url":"https://github.com/Beetrootmonkey/Moonstones/issues/2#issuecomment-412292495","issue_url":"https://api.github.com/repos/Beetrootmonkey/Moonstones/issues/2","id":412292495,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMjI5MjQ5NQ==","user":{"login":"Beetrootmonkey","id":12583297,"node_id":"MDQ6VXNlcjEyNTgzMjk3","avatar_url":"https://avatars0.githubusercontent.com/u/12583297?v=4","gravatar_id":"","url":"https://api.github.com/users/Beetrootmonkey","html_url":"https://github.com/Beetrootmonkey","followers_url":"https://api.github.com/users/Beetrootmonkey/followers","following_url":"https://api.github.com/users/Beetrootmonkey/following{/other_user}","gists_url":"https://api.github.com/users/Beetrootmonkey/gists{/gist_id}","starred_url":"https://api.github.com/users/Beetrootmonkey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Beetrootmonkey/subscriptions","organizations_url":"https://api.github.com/users/Beetrootmonkey/orgs","repos_url":"https://api.github.com/users/Beetrootmonkey/repos","events_url":"https://api.github.com/users/Beetrootmonkey/events{/privacy}","received_events_url":"https://api.github.com/users/Beetrootmonkey/received_events","type":"User","site_admin":false},"created_at":"2018-08-11T18:14:22Z","updated_at":"2018-08-11T18:14:22Z","author_association":"OWNER","body":"Fixed as of 1.0.6."}}
{"actor":{"display_login":"Beetrootmonkey"}}