{"action":"created","issue":{"url":"https://api.github.com/repos/mafagafogigante/dungeon/issues/83","labels_url":"https://api.github.com/repos/mafagafogigante/dungeon/issues/83/labels{/name}","comments_url":"https://api.github.com/repos/mafagafogigante/dungeon/issues/83/comments","events_url":"https://api.github.com/repos/mafagafogigante/dungeon/issues/83/events","html_url":"https://github.com/mafagafogigante/dungeon/pull/83","id":72543642,"number":83,"title":"Vary the weight of food items relative to their integrity.","user":{"login":"neurolytic","id":11023351,"avatar_url":"https://avatars.githubusercontent.com/u/11023351?v=3","gravatar_id":"","url":"https://api.github.com/users/neurolytic","html_url":"https://github.com/neurolytic","followers_url":"https://api.github.com/users/neurolytic/followers","following_url":"https://api.github.com/users/neurolytic/following{/other_user}","gists_url":"https://api.github.com/users/neurolytic/gists{/gist_id}","starred_url":"https://api.github.com/users/neurolytic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neurolytic/subscriptions","organizations_url":"https://api.github.com/users/neurolytic/orgs","repos_url":"https://api.github.com/users/neurolytic/repos","events_url":"https://api.github.com/users/neurolytic/events{/privacy}","received_events_url":"https://api.github.com/users/neurolytic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-01T23:04:51Z","updated_at":"2015-05-01T23:30:45Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mafagafogigante/dungeon/pulls/83","html_url":"https://github.com/mafagafogigante/dungeon/pull/83","diff_url":"https://github.com/mafagafogigante/dungeon/pull/83.diff","patch_url":"https://github.com/mafagafogigante/dungeon/pull/83.patch"},"body":"Closes #81.\r\n\r\nAdds percentageOf() to Weight.\r\nMakes Item.getWeight() return integrity-proportional weight for food.\r\n\r\nRaises possible issue of really long, ugly weight strings ONLY if future food items fail to have nice, evenly divisible integrity decrements. Seems unlikely, so putting in rounding preemptively seemed too heavy-handed."},"comment":{"url":"https://api.github.com/repos/mafagafogigante/dungeon/issues/comments/98260919","html_url":"https://github.com/mafagafogigante/dungeon/pull/83#issuecomment-98260919","issue_url":"https://api.github.com/repos/mafagafogigante/dungeon/issues/83","id":98260919,"user":{"login":"mafagafogigante","id":8271090,"avatar_url":"https://avatars.githubusercontent.com/u/8271090?v=3","gravatar_id":"","url":"https://api.github.com/users/mafagafogigante","html_url":"https://github.com/mafagafogigante","followers_url":"https://api.github.com/users/mafagafogigante/followers","following_url":"https://api.github.com/users/mafagafogigante/following{/other_user}","gists_url":"https://api.github.com/users/mafagafogigante/gists{/gist_id}","starred_url":"https://api.github.com/users/mafagafogigante/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mafagafogigante/subscriptions","organizations_url":"https://api.github.com/users/mafagafogigante/orgs","repos_url":"https://api.github.com/users/mafagafogigante/repos","events_url":"https://api.github.com/users/mafagafogigante/events{/privacy}","received_events_url":"https://api.github.com/users/mafagafogigante/received_events","type":"User","site_admin":false},"created_at":"2015-05-01T23:30:45Z","updated_at":"2015-05-01T23:30:45Z","body":"First of all, thanks a lot for the PR - a quite nice surprise, to be honest.\r\n\r\nDon't like percentageOf() [the name]. Any other suggestion, would like a verbal expression, such as ``multiplyBy()``. Not an issue, the rest seems pretty alright.\r\n\r\nAbout the ugly numbers, I have an idea."}}