{"comment":{"url":"https://api.github.com/repos/rathena/rathena/comments/10727928","html_url":"https://github.com/rathena/rathena/commit/df2f850c74cdc140423cd14acd2f50e77a81bd8f#commitcomment-10727928","id":10727928,"user":{"login":"cydh","id":4016864,"avatar_url":"https://avatars.githubusercontent.com/u/4016864?v=3","gravatar_id":"","url":"https://api.github.com/users/cydh","html_url":"https://github.com/cydh","followers_url":"https://api.github.com/users/cydh/followers","following_url":"https://api.github.com/users/cydh/following{/other_user}","gists_url":"https://api.github.com/users/cydh/gists{/gist_id}","starred_url":"https://api.github.com/users/cydh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cydh/subscriptions","organizations_url":"https://api.github.com/users/cydh/orgs","repos_url":"https://api.github.com/users/cydh/repos","events_url":"https://api.github.com/users/cydh/events{/privacy}","received_events_url":"https://api.github.com/users/cydh/received_events","type":"User","site_admin":false},"position":25,"line":10502,"path":"src/map/pc.c","commit_id":"df2f850c74cdc140423cd14acd2f50e77a81bd8f","created_at":"2015-04-15T03:19:12Z","updated_at":"2015-04-15T03:19:12Z","body":"I wonder if this check can be fancier, since it doesn't need to check each `if`\r\n````\r\n\tswitch (class_idx) {\r\n\t\tcase JOB_NINJA: if (level >= 10) base_sp -= 20; break;\r\n\t\tcase JOB_GUNSLINGER: if (level >= 10) base_sp -= 17; break;\r\n\t}\r\n````"}}