{"action":"created","comment":{"url":"https://api.github.com/repos/otland/forgottenserver/pulls/comments/61669945","id":61669945,"diff_hunk":"@@ -27,132 +72,90 @@ function onUse(player, item, fromPosition, target, toPosition, isHotkey)\n \tif target == nil or not target:isPlayer() then\n \t\treturn true\n \tend\n-\n+\t\n \tif player:getCondition(CONDITION_EXHAUST_HEAL) then\n \t\tplayer:sendTextMessage(MESSAGE_STATUS_SMALL, Game.getReturnMessage(RETURNVALUE_YOUAREEXHAUSTED))\n \t\treturn true\n \tend\n \n-\tlocal itemId = item:getId()\n-\tif itemId == antidotePot then\n-\t\tif not antidote:execute(target, numberToVariant(target:getId())) then\n-\t\t\treturn false\n-\t\tend\n-\n+\tlocal stats = potions[item:getId()]","path":"data/actions/scripts/other/potions.lua","position":100,"original_position":100,"commit_id":"f8d17f31414c31d03099eeaf991b4a45d8d4ccf6","original_commit_id":"f8d17f31414c31d03099eeaf991b4a45d8d4ccf6","user":{"login":"raymondtfr","id":6445979,"avatar_url":"https://avatars.githubusercontent.com/u/6445979?v=3","gravatar_id":"","url":"https://api.github.com/users/raymondtfr","html_url":"https://github.com/raymondtfr","followers_url":"https://api.github.com/users/raymondtfr/followers","following_url":"https://api.github.com/users/raymondtfr/following{/other_user}","gists_url":"https://api.github.com/users/raymondtfr/gists{/gist_id}","starred_url":"https://api.github.com/users/raymondtfr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raymondtfr/subscriptions","organizations_url":"https://api.github.com/users/raymondtfr/orgs","repos_url":"https://api.github.com/users/raymondtfr/repos","events_url":"https://api.github.com/users/raymondtfr/events{/privacy}","received_events_url":"https://api.github.com/users/raymondtfr/received_events","type":"User","site_admin":false},"body":"A better name for this could be: **potionId**, **isPotion** or just **potion**.\r\nI mean it is easier to understand what **stats** mean by looking at the right side of its assignment.","created_at":"2016-04-30T13:56:19Z","updated_at":"2016-04-30T13:56:19Z","html_url":"https://github.com/otland/forgottenserver/pull/1779#discussion_r61669945","pull_request_url":"https://api.github.com/repos/otland/forgottenserver/pulls/1779","_links":{"self":{"href":"https://api.github.com/repos/otland/forgottenserver/pulls/comments/61669945"},"html":{"href":"https://github.com/otland/forgottenserver/pull/1779#discussion_r61669945"},"pull_request":{"href":"https://api.github.com/repos/otland/forgottenserver/pulls/1779"}}},"pull_request":{"url":"https://api.github.com/repos/otland/forgottenserver/pulls/1779","id":67978851,"html_url":"https://github.com/otland/forgottenserver/pull/1779","diff_url":"https://github.com/otland/forgottenserver/pull/1779.diff","patch_url":"https://github.com/otland/forgottenserver/pull/1779.patch","issue_url":"https://api.github.com/repos/otland/forgottenserver/issues/1779","number":1779,"state":"open","locked":false,"title":"Update potions.lua","user":{"login":"slavidodo","id":14849657,"avatar_url":"https://avatars.githubusercontent.com/u/14849657?v=3","gravatar_id":"","url":"https://api.github.com/users/slavidodo","html_url":"https://github.com/slavidodo","followers_url":"https://api.github.com/users/slavidodo/followers","following_url":"https://api.github.com/users/slavidodo/following{/other_user}","gists_url":"https://api.github.com/users/slavidodo/gists{/gist_id}","starred_url":"https://api.github.com/users/slavidodo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slavidodo/subscriptions","organizations_url":"https://api.github.com/users/slavidodo/orgs","repos_url":"https://api.github.com/users/slavidodo/repos","events_url":"https://api.github.com/users/slavidodo/events{/privacy}","received_events_url":"https://api.github.com/users/slavidodo/received_events","type":"User","site_admin":false},"body":"Easy customization for potions.\r\n\r\nCan be used to add new potions.\r\nCan add new stats, (sameway I added antidote potion).","created_at":"2016-04-27T00:20:24Z","updated_at":"2016-04-30T13:56:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"416a8ccced0097146fce3bdf9e43f1bdade42225","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/otland/forgottenserver/pulls/1779/commits","review_comments_url":"https://api.github.com/repos/otland/forgottenserver/pulls/1779/comments","review_comment_url":"https://api.github.com/repos/otland/forgottenserver/pulls/comments{/number}","comments_url":"https://api.github.com/repos/otland/forgottenserver/issues/1779/comments","statuses_url":"https://api.github.com/repos/otland/forgottenserver/statuses/f8d17f31414c31d03099eeaf991b4a45d8d4ccf6","head":{"label":"slavidodo:patch-2","ref":"patch-2","sha":"f8d17f31414c31d03099eeaf991b4a45d8d4ccf6","user":{"login":"slavidodo","id":14849657,"avatar_url":"https://avatars.githubusercontent.com/u/14849657?v=3","gravatar_id":"","url":"https://api.github.com/users/slavidodo","html_url":"https://github.com/slavidodo","followers_url":"https://api.github.com/users/slavidodo/followers","following_url":"https://api.github.com/users/slavidodo/following{/other_user}","gists_url":"https://api.github.com/users/slavidodo/gists{/gist_id}","starred_url":"https://api.github.com/users/slavidodo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slavidodo/subscriptions","organizations_url":"https://api.github.com/users/slavidodo/orgs","repos_url":"https://api.github.com/users/slavidodo/repos","events_url":"https://api.github.com/users/slavidodo/events{/privacy}","received_events_url":"https://api.github.com/users/slavidodo/received_events","type":"User","site_admin":false},"repo":{"id":52136137,"name":"forgottenserver","full_name":"slavidodo/forgottenserver","owner":{"login":"slavidodo","id":14849657,"avatar_url":"https://avatars.githubusercontent.com/u/14849657?v=3","gravatar_id":"","url":"https://api.github.com/users/slavidodo","html_url":"https://github.com/slavidodo","followers_url":"https://api.github.com/users/slavidodo/followers","following_url":"https://api.github.com/users/slavidodo/following{/other_user}","gists_url":"https://api.github.com/users/slavidodo/gists{/gist_id}","starred_url":"https://api.github.com/users/slavidodo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slavidodo/subscriptions","organizations_url":"https://api.github.com/users/slavidodo/orgs","repos_url":"https://api.github.com/users/slavidodo/repos","events_url":"https://api.github.com/users/slavidodo/events{/privacy}","received_events_url":"https://api.github.com/users/slavidodo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/slavidodo/forgottenserver","description":"A free and open-source MMORPG server emulator written in C++","fork":true,"url":"https://api.github.com/repos/slavidodo/forgottenserver","forks_url":"https://api.github.com/repos/slavidodo/forgottenserver/forks","keys_url":"https://api.github.com/repos/slavidodo/forgottenserver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/slavidodo/forgottenserver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/slavidodo/forgottenserver/teams","hooks_url":"https://api.github.com/repos/slavidodo/forgottenserver/hooks","issue_events_url":"https://api.github.com/repos/slavidodo/forgottenserver/issues/events{/number}","events_url":"https://api.github.com/repos/slavidodo/forgottenserver/events","assignees_url":"https://api.github.com/repos/slavidodo/forgottenserver/assignees{/user}","branches_url":"https://api.github.com/repos/slavidodo/forgottenserver/branches{/branch}","tags_url":"https://api.github.com/repos/slavidodo/forgottenserver/tags","blobs_url":"https://api.github.com/repos/slavidodo/forgottenserver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/slavidodo/forgottenserver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/slavidodo/forgottenserver/git/refs{/sha}","trees_url":"https://api.github.com/repos/slavidodo/forgottenserver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/slavidodo/forgottenserver/statuses/{sha}","languages_url":"https://api.github.com/repos/slavidodo/forgottenserver/languages","stargazers_url":"https://api.github.com/repos/slavidodo/forgottenserver/stargazers","contributors_url":"https://api.github.com/repos/slavidodo/forgottenserver/contributors","subscribers_url":"https://api.github.com/repos/slavidodo/forgottenserver/subscribers","subscription_url":"https://api.github.com/repos/slavidodo/forgottenserver/subscription","commits_url":"https://api.github.com/repos/slavidodo/forgottenserver/commits{/sha}","git_commits_url":"https://api.github.com/repos/slavidodo/forgottenserver/git/commits{/sha}","comments_url":"https://api.github.com/repos/slavidodo/forgottenserver/comments{/number}","issue_comment_url":"https://api.github.com/repos/slavidodo/forgottenserver/issues/comments{/number}","contents_url":"https://api.github.com/repos/slavidodo/forgottenserver/contents/{+path}","compare_url":"https://api.github.com/repos/slavidodo/forgottenserver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/slavidodo/forgottenserver/merges","archive_url":"https://api.github.com/repos/slavidodo/forgottenserver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/slavidodo/forgottenserver/downloads","issues_url":"https://api.github.com/repos/slavidodo/forgottenserver/issues{/number}","pulls_url":"https://api.github.com/repos/slavidodo/forgottenserver/pulls{/number}","milestones_url":"https://api.github.com/repos/slavidodo/forgottenserver/milestones{/number}","notifications_url":"https://api.github.com/repos/slavidodo/forgottenserver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/slavidodo/forgottenserver/labels{/name}","releases_url":"https://api.github.com/repos/slavidodo/forgottenserver/releases{/id}","deployments_url":"https://api.github.com/repos/slavidodo/forgottenserver/deployments","created_at":"2016-02-20T04:21:57Z","updated_at":"2016-02-20T04:22:00Z","pushed_at":"2016-04-30T08:06:15Z","git_url":"git://github.com/slavidodo/forgottenserver.git","ssh_url":"git@github.com:slavidodo/forgottenserver.git","clone_url":"https://github.com/slavidodo/forgottenserver.git","svn_url":"https://github.com/slavidodo/forgottenserver","homepage":"","size":13123,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"otland:master","ref":"master","sha":"7f47763a651c17e174c5c04eb835e96c7b0c49b4","user":{"login":"otland","id":4956302,"avatar_url":"https://avatars.githubusercontent.com/u/4956302?v=3","gravatar_id":"","url":"https://api.github.com/users/otland","html_url":"https://github.com/otland","followers_url":"https://api.github.com/users/otland/followers","following_url":"https://api.github.com/users/otland/following{/other_user}","gists_url":"https://api.github.com/users/otland/gists{/gist_id}","starred_url":"https://api.github.com/users/otland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/otland/subscriptions","organizations_url":"https://api.github.com/users/otland/orgs","repos_url":"https://api.github.com/users/otland/repos","events_url":"https://api.github.com/users/otland/events{/privacy}","received_events_url":"https://api.github.com/users/otland/received_events","type":"Organization","site_admin":false},"repo":{"id":11081909,"name":"forgottenserver","full_name":"otland/forgottenserver","owner":{"login":"otland","id":4956302,"avatar_url":"https://avatars.githubusercontent.com/u/4956302?v=3","gravatar_id":"","url":"https://api.github.com/users/otland","html_url":"https://github.com/otland","followers_url":"https://api.github.com/users/otland/followers","following_url":"https://api.github.com/users/otland/following{/other_user}","gists_url":"https://api.github.com/users/otland/gists{/gist_id}","starred_url":"https://api.github.com/users/otland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/otland/subscriptions","organizations_url":"https://api.github.com/users/otland/orgs","repos_url":"https://api.github.com/users/otland/repos","events_url":"https://api.github.com/users/otland/events{/privacy}","received_events_url":"https://api.github.com/users/otland/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/otland/forgottenserver","description":"A free and open-source MMORPG server emulator written in C++","fork":false,"url":"https://api.github.com/repos/otland/forgottenserver","forks_url":"https://api.github.com/repos/otland/forgottenserver/forks","keys_url":"https://api.github.com/repos/otland/forgottenserver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/otland/forgottenserver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/otland/forgottenserver/teams","hooks_url":"https://api.github.com/repos/otland/forgottenserver/hooks","issue_events_url":"https://api.github.com/repos/otland/forgottenserver/issues/events{/number}","events_url":"https://api.github.com/repos/otland/forgottenserver/events","assignees_url":"https://api.github.com/repos/otland/forgottenserver/assignees{/user}","branches_url":"https://api.github.com/repos/otland/forgottenserver/branches{/branch}","tags_url":"https://api.github.com/repos/otland/forgottenserver/tags","blobs_url":"https://api.github.com/repos/otland/forgottenserver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/otland/forgottenserver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/otland/forgottenserver/git/refs{/sha}","trees_url":"https://api.github.com/repos/otland/forgottenserver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/otland/forgottenserver/statuses/{sha}","languages_url":"https://api.github.com/repos/otland/forgottenserver/languages","stargazers_url":"https://api.github.com/repos/otland/forgottenserver/stargazers","contributors_url":"https://api.github.com/repos/otland/forgottenserver/contributors","subscribers_url":"https://api.github.com/repos/otland/forgottenserver/subscribers","subscription_url":"https://api.github.com/repos/otland/forgottenserver/subscription","commits_url":"https://api.github.com/repos/otland/forgottenserver/commits{/sha}","git_commits_url":"https://api.github.com/repos/otland/forgottenserver/git/commits{/sha}","comments_url":"https://api.github.com/repos/otland/forgottenserver/comments{/number}","issue_comment_url":"https://api.github.com/repos/otland/forgottenserver/issues/comments{/number}","contents_url":"https://api.github.com/repos/otland/forgottenserver/contents/{+path}","compare_url":"https://api.github.com/repos/otland/forgottenserver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/otland/forgottenserver/merges","archive_url":"https://api.github.com/repos/otland/forgottenserver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/otland/forgottenserver/downloads","issues_url":"https://api.github.com/repos/otland/forgottenserver/issues{/number}","pulls_url":"https://api.github.com/repos/otland/forgottenserver/pulls{/number}","milestones_url":"https://api.github.com/repos/otland/forgottenserver/milestones{/number}","notifications_url":"https://api.github.com/repos/otland/forgottenserver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/otland/forgottenserver/labels{/name}","releases_url":"https://api.github.com/repos/otland/forgottenserver/releases{/id}","deployments_url":"https://api.github.com/repos/otland/forgottenserver/deployments","created_at":"2013-07-01T01:57:06Z","updated_at":"2016-04-29T19:07:24Z","pushed_at":"2016-04-30T08:06:15Z","git_url":"git://github.com/otland/forgottenserver.git","ssh_url":"git@github.com:otland/forgottenserver.git","clone_url":"https://github.com/otland/forgottenserver.git","svn_url":"https://github.com/otland/forgottenserver","homepage":"","size":18158,"stargazers_count":324,"watchers_count":324,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":337,"mirror_url":null,"open_issues_count":137,"forks":337,"open_issues":137,"watchers":324,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/otland/forgottenserver/pulls/1779"},"html":{"href":"https://github.com/otland/forgottenserver/pull/1779"},"issue":{"href":"https://api.github.com/repos/otland/forgottenserver/issues/1779"},"comments":{"href":"https://api.github.com/repos/otland/forgottenserver/issues/1779/comments"},"review_comments":{"href":"https://api.github.com/repos/otland/forgottenserver/pulls/1779/comments"},"review_comment":{"href":"https://api.github.com/repos/otland/forgottenserver/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/otland/forgottenserver/pulls/1779/commits"},"statuses":{"href":"https://api.github.com/repos/otland/forgottenserver/statuses/f8d17f31414c31d03099eeaf991b4a45d8d4ccf6"}}}}