{"action":"created","issue":{"url":"https://api.github.com/repos/KC3Kai/KC3Kai/issues/1170","repository_url":"https://api.github.com/repos/KC3Kai/KC3Kai","labels_url":"https://api.github.com/repos/KC3Kai/KC3Kai/issues/1170/labels{/name}","comments_url":"https://api.github.com/repos/KC3Kai/KC3Kai/issues/1170/comments","events_url":"https://api.github.com/repos/KC3Kai/KC3Kai/issues/1170/events","html_url":"https://github.com/KC3Kai/KC3Kai/issues/1170","id":137010999,"number":1170,"title":"rework on quest tracking","user":{"login":"Javran","id":1096354,"avatar_url":"https://avatars.githubusercontent.com/u/1096354?v=3","gravatar_id":"","url":"https://api.github.com/users/Javran","html_url":"https://github.com/Javran","followers_url":"https://api.github.com/users/Javran/followers","following_url":"https://api.github.com/users/Javran/following{/other_user}","gists_url":"https://api.github.com/users/Javran/gists{/gist_id}","starred_url":"https://api.github.com/users/Javran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Javran/subscriptions","organizations_url":"https://api.github.com/users/Javran/orgs","repos_url":"https://api.github.com/users/Javran/repos","events_url":"https://api.github.com/users/Javran/events{/privacy}","received_events_url":"https://api.github.com/users/Javran/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/KC3Kai/KC3Kai/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/KC3Kai/KC3Kai/labels/enhancement","name":"enhancement","color":"bfe5bf"},{"url":"https://api.github.com/repos/KC3Kai/KC3Kai/labels/rework","name":"rework","color":"5319e7"},{"url":"https://api.github.com/repos/KC3Kai/KC3Kai/labels/verifying","name":"verifying","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-28T05:56:11Z","updated_at":"2016-03-01T05:36:48Z","closed_at":null,"body":"Despite #1117, there are still problems: if user choose to complete their Bw6 (Defeat 12 bosses in the World 4) on 4-4, we will have problem tracking it.\r\n\r\nI feel the code related to quest tracking:\r\n\r\nhttps://github.com/KC3Kai/KC3Kai/blob/5787ec93b497dd7bbdd294d442c16f2852609cec/src/library/modules/Kcsapi.js#L1528-L1607\r\n\r\nis a bit hard to understand, and using straightforward if-statements will be better for both understanding and maintenance.\r\n\r\nI'd like to ask if there are any advantages of using current structure (looping+switching)?\r\nif not I can assign myself working on this to make it look better. (and solve problems like #541 once and for all)"},"comment":{"url":"https://api.github.com/repos/KC3Kai/KC3Kai/issues/comments/190553556","html_url":"https://github.com/KC3Kai/KC3Kai/issues/1170#issuecomment-190553556","issue_url":"https://api.github.com/repos/KC3Kai/KC3Kai/issues/1170","id":190553556,"user":{"login":"Javran","id":1096354,"avatar_url":"https://avatars.githubusercontent.com/u/1096354?v=3","gravatar_id":"","url":"https://api.github.com/users/Javran","html_url":"https://github.com/Javran","followers_url":"https://api.github.com/users/Javran/followers","following_url":"https://api.github.com/users/Javran/following{/other_user}","gists_url":"https://api.github.com/users/Javran/gists{/gist_id}","starred_url":"https://api.github.com/users/Javran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Javran/subscriptions","organizations_url":"https://api.github.com/users/Javran/orgs","repos_url":"https://api.github.com/users/Javran/repos","events_url":"https://api.github.com/users/Javran/events{/privacy}","received_events_url":"https://api.github.com/users/Javran/received_events","type":"User","site_admin":false},"created_at":"2016-03-01T05:36:48Z","updated_at":"2016-03-01T05:36:48Z","body":"just discussed with @ReiFan49 on gitter channel. another alternative is #918 \r\n\r\n@ReiFan49 is more in favor of switch-looping and #918 and I'd recommend #1173 but is also good with #918 (with more  comments to explain). wondering what do you guys think?"}}