{"action":"created","issue":{"url":"https://api.github.com/repos/MineMaarten/MinesweeperMod/issues/1","labels_url":"https://api.github.com/repos/MineMaarten/MinesweeperMod/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/MineMaarten/MinesweeperMod/issues/1/comments","events_url":"https://api.github.com/repos/MineMaarten/MinesweeperMod/issues/1/events","html_url":"https://github.com/MineMaarten/MinesweeperMod/pull/1","id":73819188,"number":1,"title":"Configurable reward system","user":{"login":"blodgett-donald","id":3877212,"avatar_url":"https://avatars.githubusercontent.com/u/3877212?v=3","gravatar_id":"","url":"https://api.github.com/users/blodgett-donald","html_url":"https://github.com/blodgett-donald","followers_url":"https://api.github.com/users/blodgett-donald/followers","following_url":"https://api.github.com/users/blodgett-donald/following{/other_user}","gists_url":"https://api.github.com/users/blodgett-donald/gists{/gist_id}","starred_url":"https://api.github.com/users/blodgett-donald/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blodgett-donald/subscriptions","organizations_url":"https://api.github.com/users/blodgett-donald/orgs","repos_url":"https://api.github.com/users/blodgett-donald/repos","events_url":"https://api.github.com/users/blodgett-donald/events{/privacy}","received_events_url":"https://api.github.com/users/blodgett-donald/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-07T03:09:23Z","updated_at":"2015-05-08T01:12:20Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/MineMaarten/MinesweeperMod/pulls/1","html_url":"https://github.com/MineMaarten/MinesweeperMod/pull/1","diff_url":"https://github.com/MineMaarten/MinesweeperMod/pull/1.diff","patch_url":"https://github.com/MineMaarten/MinesweeperMod/pull/1.patch"},"body":"- Fixed issue with duplicate rewards being generated due to the click handler for a creative player. I also brought the code inline with the comment which states that creative players should use a sword to play the minesweeper game.\r\n\r\n- I added a configuration based rewards system. The default rewards are the same as they were previously. The system works as follows:\r\n  - Each difficulty level has a separate list of reward tiers, tiers are determined by the number of tiles on the board. These can all be customized to any number of tiles, by default it uses the same values as before.\r\n  - Each tier as a weighted list of rewards, a higher weight results in a higher chance of getting that reward for that tier.\r\n  - Each reward can have one or more items, specified by ModId, item name and meta/damage value.\r\n  - Each item can also specify a minimum and maximum count, which is randomly selected."},"comment":{"url":"https://api.github.com/repos/MineMaarten/MinesweeperMod/issues/comments/100058922","html_url":"https://github.com/MineMaarten/MinesweeperMod/pull/1#issuecomment-100058922","issue_url":"https://api.github.com/repos/MineMaarten/MinesweeperMod/issues/1","id":100058922,"user":{"login":"blodgett-donald","id":3877212,"avatar_url":"https://avatars.githubusercontent.com/u/3877212?v=3","gravatar_id":"","url":"https://api.github.com/users/blodgett-donald","html_url":"https://github.com/blodgett-donald","followers_url":"https://api.github.com/users/blodgett-donald/followers","following_url":"https://api.github.com/users/blodgett-donald/following{/other_user}","gists_url":"https://api.github.com/users/blodgett-donald/gists{/gist_id}","starred_url":"https://api.github.com/users/blodgett-donald/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blodgett-donald/subscriptions","organizations_url":"https://api.github.com/users/blodgett-donald/orgs","repos_url":"https://api.github.com/users/blodgett-donald/repos","events_url":"https://api.github.com/users/blodgett-donald/events{/privacy}","received_events_url":"https://api.github.com/users/blodgett-donald/received_events","type":"User","site_admin":false},"created_at":"2015-05-08T01:12:20Z","updated_at":"2015-05-08T01:12:20Z","body":"I changed the shovel to a sword, I feel really embarrassed about that one. I also added sanity checking to the configuration on start. I really appreciate the feedback, thanks."}}