{"action":"closed","number":44,"pull_request":{"url":"https://api.github.com/repos/29988122/Fate-Grand-Order_Lua/pulls/44","id":196953834,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk2OTUzODM0","html_url":"https://github.com/29988122/Fate-Grand-Order_Lua/pull/44","diff_url":"https://github.com/29988122/Fate-Grand-Order_Lua/pull/44.diff","patch_url":"https://github.com/29988122/Fate-Grand-Order_Lua/pull/44.patch","issue_url":"https://api.github.com/repos/29988122/Fate-Grand-Order_Lua/issues/44","number":44,"state":"closed","locked":false,"title":"Added cards priorization","user":{"login":"potchy","id":4316326,"node_id":"MDQ6VXNlcjQzMTYzMjY=","avatar_url":"https://avatars0.githubusercontent.com/u/4316326?v=4","gravatar_id":"","url":"https://api.github.com/users/potchy","html_url":"https://github.com/potchy","followers_url":"https://api.github.com/users/potchy/followers","following_url":"https://api.github.com/users/potchy/following{/other_user}","gists_url":"https://api.github.com/users/potchy/gists{/gist_id}","starred_url":"https://api.github.com/users/potchy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/potchy/subscriptions","organizations_url":"https://api.github.com/users/potchy/orgs","repos_url":"https://api.github.com/users/potchy/repos","events_url":"https://api.github.com/users/potchy/events{/privacy}","received_events_url":"https://api.github.com/users/potchy/received_events","type":"User","site_admin":false},"body":"My computer died, so this feature got delayed a bit. 😄 \r\n\r\nIn response to #36, this commit introduces a new option: `Battle_CardPriority`.\r\nThe order of the cards can be setup in any way the user wants it:\r\n- Buster, Arts, Quick (default)\r\n- Arts, Buster, Quick\r\n- Quick, Buster, Arts\r\n- etc.\r\n\r\nEffective cards are automatically placed first.\r\nFor example, considering `Battle_CardPriority` is set to \"BAQ\", cards will be priorized like this:\r\nEffective Buster -> Buster -> Weak Buster -> Effective Arts -> Arts -> Weak Arts -> Effective Quick -> Quick -> Weak Quick.\r\n\r\nI also moved initialization methods to a `init()` function.","created_at":"2018-06-24T14:56:28Z","updated_at":"2018-06-26T05:39:38Z","closed_at":"2018-06-26T05:39:38Z","merged_at":"2018-06-26T05:39:38Z","merge_commit_sha":"515b27074cea94bc827090a1a4f45d386a4f32f9","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/29988122/Fate-Grand-Order_Lua/pulls/44/commits","review_comments_url":"https://api.github.com/repos/29988122/Fate-Grand-Order_Lua/pulls/44/comments","review_comment_url":"https://api.github.com/repos/29988122/Fate-Grand-Order_Lua/pulls/comments{/number}","comments_url":"https://api.github.com/repos/29988122/Fate-Grand-Order_Lua/issues/44/comments","statuses_url":"https://api.github.com/repos/29988122/Fate-Grand-Order_Lua/statuses/4ab656b31759f5a9a5ed73eaeccfeafcebc1c31b","head":{"label":"potchy:cards-priorization","ref":"cards-priorization","sha":"4ab656b31759f5a9a5ed73eaeccfeafcebc1c31b","user":{"login":"potchy","id":4316326,"node_id":"MDQ6VXNlcjQzMTYzMjY=","avatar_url":"https://avatars0.githubusercontent.com/u/4316326?v=4","gravatar_id":"","url":"https://api.github.com/users/potchy","html_url":"https://github.com/potchy","followers_url":"https://api.github.com/users/potchy/followers","following_url":"https://api.github.com/users/potchy/following{/other_user}","gists_url":"https://api.github.com/users/potchy/gists{/gist_id}","starred_url":"https://api.github.com/users/potchy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/potchy/subscriptions","organizations_url":"https://api.github.com/users/potchy/orgs","repos_url":"https://api.github.com/users/potchy/repos","events_url":"https://api.github.com/users/potchy/events{/privacy}","received_events_url":"https://api.github.com/users/potchy/received_events","type":"User","site_admin":false},"repo":{"id":135727711,"node_id":"MDEwOlJlcG9zaXRvcnkxMzU3Mjc3MTE=","name":"Fate-Grand-Order_Lua","full_name":"potchy/Fate-Grand-Order_Lua","owner":{"login":"potchy","id":4316326,"node_id":"MDQ6VXNlcjQzMTYzMjY=","avatar_url":"https://avatars0.githubusercontent.com/u/4316326?v=4","gravatar_id":"","url":"https://api.github.com/users/potchy","html_url":"https://github.com/potchy","followers_url":"https://api.github.com/users/potchy/followers","following_url":"https://api.github.com/users/potchy/following{/other_user}","gists_url":"https://api.github.com/users/potchy/gists{/gist_id}","starred_url":"https://api.github.com/users/potchy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/potchy/subscriptions","organizations_url":"https://api.github.com/users/potchy/orgs","repos_url":"https://api.github.com/users/potchy/repos","events_url":"https://api.github.com/users/potchy/events{/privacy}","received_events_url":"https://api.github.com/users/potchy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/potchy/Fate-Grand-Order_Lua","description":"Fate Grand Order auto battle script - no root needed, for Android use only","fork":true,"url":"https://api.github.com/repos/potchy/Fate-Grand-Order_Lua","forks_url":"https://api.github.com/repos/potchy/Fate-Grand-Order_Lua/forks","keys_url":"https://api.github.com/repos/potchy/Fate-Grand-Order_Lua/keys{/key_id}","collaborators_url":"https://api.github.com/repos/potchy/Fate-Grand-Order_Lua/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/potchy/Fate-Grand-Order_Lua/teams","hooks_url":"https://api.github.com/repos/potchy/Fate-Grand-Order_Lua/hooks","issue_events_url":"https://api.github.com/repos/potchy/Fate-Grand-Order_Lua/issues/events{/number}","events_url":"https://api.github.com/repos/potchy/Fate-Grand-Order_Lua/events","assignees_url":"https://api.github.com/repos/potchy/Fate-Grand-Order_Lua/assignees{/user}","branches_url":"https://api.github.com/repos/potchy/Fate-Grand-Order_Lua/branches{/branch}","tags_url":"https://api.github.com/repos/potchy/Fate-Grand-Order_Lua/tags","blobs_url":"https://api.github.com/repos/potchy/Fate-Grand-Order_Lua/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/potchy/Fate-Grand-Order_Lua/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/potchy/Fate-Grand-Order_Lua/git/refs{/sha}","trees_url":"https://api.github.com/repos/potchy/Fate-Grand-Order_Lua/git/trees{/sha}","statuses_url":"https://api.github.com/repos/potchy/Fate-Grand-Order_Lua/statuses/{sha}","languages_url":"https://api.github.com/repos/potchy/Fate-Grand-Order_Lua/languages","stargazers_url":"https://api.github.com/repos/potchy/Fate-Grand-Order_Lua/stargazers","contributors_url":"https://api.github.com/repos/potchy/Fate-Grand-Order_Lua/contributors","subscribers_url":"https://api.github.com/repos/potchy/Fate-Grand-Order_Lua/subscribers","subscription_url":"https://api.github.com/repos/potchy/Fate-Grand-Order_Lua/subscription","commits_url":"https://api.github.com/repos/potchy/Fate-Grand-Order_Lua/commits{/sha}","git_commits_url":"https://api.github.com/repos/potchy/Fate-Grand-Order_Lua/git/commits{/sha}","comments_url":"https://api.github.com/repos/potchy/Fate-Grand-Order_Lua/comments{/number}","issue_comment_url":"https://api.github.com/repos/potchy/Fate-Grand-Order_Lua/issues/comments{/number}","contents_url":"https://api.github.com/repos/potchy/Fate-Grand-Order_Lua/contents/{+path}","compare_url":"https://api.github.com/repos/potchy/Fate-Grand-Order_Lua/compare/{base}...{head}","merges_url":"https://api.github.com/repos/potchy/Fate-Grand-Order_Lua/merges","archive_url":"https://api.github.com/repos/potchy/Fate-Grand-Order_Lua/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/potchy/Fate-Grand-Order_Lua/downloads","issues_url":"https://api.github.com/repos/potchy/Fate-Grand-Order_Lua/issues{/number}","pulls_url":"https://api.github.com/repos/potchy/Fate-Grand-Order_Lua/pulls{/number}","milestones_url":"https://api.github.com/repos/potchy/Fate-Grand-Order_Lua/milestones{/number}","notifications_url":"https://api.github.com/repos/potchy/Fate-Grand-Order_Lua/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/potchy/Fate-Grand-Order_Lua/labels{/name}","releases_url":"https://api.github.com/repos/potchy/Fate-Grand-Order_Lua/releases{/id}","deployments_url":"https://api.github.com/repos/potchy/Fate-Grand-Order_Lua/deployments","created_at":"2018-06-01T14:27:40Z","updated_at":"2018-06-23T20:50:36Z","pushed_at":"2018-06-24T14:44:46Z","git_url":"git://github.com/potchy/Fate-Grand-Order_Lua.git","ssh_url":"git@github.com:potchy/Fate-Grand-Order_Lua.git","clone_url":"https://github.com/potchy/Fate-Grand-Order_Lua.git","svn_url":"https://github.com/potchy/Fate-Grand-Order_Lua","homepage":"","size":35522,"stargazers_count":0,"watchers_count":0,"language":"Lua","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"29988122:master","ref":"master","sha":"c4b4c235e6ac5ceb1cbfc5e95aa59ce293e10102","user":{"login":"29988122","id":5474709,"node_id":"MDQ6VXNlcjU0NzQ3MDk=","avatar_url":"https://avatars3.githubusercontent.com/u/5474709?v=4","gravatar_id":"","url":"https://api.github.com/users/29988122","html_url":"https://github.com/29988122","followers_url":"https://api.github.com/users/29988122/followers","following_url":"https://api.github.com/users/29988122/following{/other_user}","gists_url":"https://api.github.com/users/29988122/gists{/gist_id}","starred_url":"https://api.github.com/users/29988122/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/29988122/subscriptions","organizations_url":"https://api.github.com/users/29988122/orgs","repos_url":"https://api.github.com/users/29988122/repos","events_url":"https://api.github.com/users/29988122/events{/privacy}","received_events_url":"https://api.github.com/users/29988122/received_events","type":"User","site_admin":false},"repo":{"id":80001337,"node_id":"MDEwOlJlcG9zaXRvcnk4MDAwMTMzNw==","name":"Fate-Grand-Order_Lua","full_name":"29988122/Fate-Grand-Order_Lua","owner":{"login":"29988122","id":5474709,"node_id":"MDQ6VXNlcjU0NzQ3MDk=","avatar_url":"https://avatars3.githubusercontent.com/u/5474709?v=4","gravatar_id":"","url":"https://api.github.com/users/29988122","html_url":"https://github.com/29988122","followers_url":"https://api.github.com/users/29988122/followers","following_url":"https://api.github.com/users/29988122/following{/other_user}","gists_url":"https://api.github.com/users/29988122/gists{/gist_id}","starred_url":"https://api.github.com/users/29988122/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/29988122/subscriptions","organizations_url":"https://api.github.com/users/29988122/orgs","repos_url":"https://api.github.com/users/29988122/repos","events_url":"https://api.github.com/users/29988122/events{/privacy}","received_events_url":"https://api.github.com/users/29988122/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/29988122/Fate-Grand-Order_Lua","description":"Fate Grand Order auto battle script - no root needed, for Android use only","fork":false,"url":"https://api.github.com/repos/29988122/Fate-Grand-Order_Lua","forks_url":"https://api.github.com/repos/29988122/Fate-Grand-Order_Lua/forks","keys_url":"https://api.github.com/repos/29988122/Fate-Grand-Order_Lua/keys{/key_id}","collaborators_url":"https://api.github.com/repos/29988122/Fate-Grand-Order_Lua/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/29988122/Fate-Grand-Order_Lua/teams","hooks_url":"https://api.github.com/repos/29988122/Fate-Grand-Order_Lua/hooks","issue_events_url":"https://api.github.com/repos/29988122/Fate-Grand-Order_Lua/issues/events{/number}","events_url":"https://api.github.com/repos/29988122/Fate-Grand-Order_Lua/events","assignees_url":"https://api.github.com/repos/29988122/Fate-Grand-Order_Lua/assignees{/user}","branches_url":"https://api.github.com/repos/29988122/Fate-Grand-Order_Lua/branches{/branch}","tags_url":"https://api.github.com/repos/29988122/Fate-Grand-Order_Lua/tags","blobs_url":"https://api.github.com/repos/29988122/Fate-Grand-Order_Lua/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/29988122/Fate-Grand-Order_Lua/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/29988122/Fate-Grand-Order_Lua/git/refs{/sha}","trees_url":"https://api.github.com/repos/29988122/Fate-Grand-Order_Lua/git/trees{/sha}","statuses_url":"https://api.github.com/repos/29988122/Fate-Grand-Order_Lua/statuses/{sha}","languages_url":"https://api.github.com/repos/29988122/Fate-Grand-Order_Lua/languages","stargazers_url":"https://api.github.com/repos/29988122/Fate-Grand-Order_Lua/stargazers","contributors_url":"https://api.github.com/repos/29988122/Fate-Grand-Order_Lua/contributors","subscribers_url":"https://api.github.com/repos/29988122/Fate-Grand-Order_Lua/subscribers","subscription_url":"https://api.github.com/repos/29988122/Fate-Grand-Order_Lua/subscription","commits_url":"https://api.github.com/repos/29988122/Fate-Grand-Order_Lua/commits{/sha}","git_commits_url":"https://api.github.com/repos/29988122/Fate-Grand-Order_Lua/git/commits{/sha}","comments_url":"https://api.github.com/repos/29988122/Fate-Grand-Order_Lua/comments{/number}","issue_comment_url":"https://api.github.com/repos/29988122/Fate-Grand-Order_Lua/issues/comments{/number}","contents_url":"https://api.github.com/repos/29988122/Fate-Grand-Order_Lua/contents/{+path}","compare_url":"https://api.github.com/repos/29988122/Fate-Grand-Order_Lua/compare/{base}...{head}","merges_url":"https://api.github.com/repos/29988122/Fate-Grand-Order_Lua/merges","archive_url":"https://api.github.com/repos/29988122/Fate-Grand-Order_Lua/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/29988122/Fate-Grand-Order_Lua/downloads","issues_url":"https://api.github.com/repos/29988122/Fate-Grand-Order_Lua/issues{/number}","pulls_url":"https://api.github.com/repos/29988122/Fate-Grand-Order_Lua/pulls{/number}","milestones_url":"https://api.github.com/repos/29988122/Fate-Grand-Order_Lua/milestones{/number}","notifications_url":"https://api.github.com/repos/29988122/Fate-Grand-Order_Lua/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/29988122/Fate-Grand-Order_Lua/labels{/name}","releases_url":"https://api.github.com/repos/29988122/Fate-Grand-Order_Lua/releases{/id}","deployments_url":"https://api.github.com/repos/29988122/Fate-Grand-Order_Lua/deployments","created_at":"2017-01-25T09:45:43Z","updated_at":"2018-06-20T08:54:38Z","pushed_at":"2018-06-26T05:39:38Z","git_url":"git://github.com/29988122/Fate-Grand-Order_Lua.git","ssh_url":"git@github.com:29988122/Fate-Grand-Order_Lua.git","clone_url":"https://github.com/29988122/Fate-Grand-Order_Lua.git","svn_url":"https://github.com/29988122/Fate-Grand-Order_Lua","homepage":"","size":35517,"stargazers_count":57,"watchers_count":57,"language":"Lua","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"archived":false,"open_issues_count":8,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":15,"open_issues":8,"watchers":57,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/29988122/Fate-Grand-Order_Lua/pulls/44"},"html":{"href":"https://github.com/29988122/Fate-Grand-Order_Lua/pull/44"},"issue":{"href":"https://api.github.com/repos/29988122/Fate-Grand-Order_Lua/issues/44"},"comments":{"href":"https://api.github.com/repos/29988122/Fate-Grand-Order_Lua/issues/44/comments"},"review_comments":{"href":"https://api.github.com/repos/29988122/Fate-Grand-Order_Lua/pulls/44/comments"},"review_comment":{"href":"https://api.github.com/repos/29988122/Fate-Grand-Order_Lua/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/29988122/Fate-Grand-Order_Lua/pulls/44/commits"},"statuses":{"href":"https://api.github.com/repos/29988122/Fate-Grand-Order_Lua/statuses/4ab656b31759f5a9a5ed73eaeccfeafcebc1c31b"}},"author_association":"NONE","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"29988122","id":5474709,"node_id":"MDQ6VXNlcjU0NzQ3MDk=","avatar_url":"https://avatars3.githubusercontent.com/u/5474709?v=4","gravatar_id":"","url":"https://api.github.com/users/29988122","html_url":"https://github.com/29988122","followers_url":"https://api.github.com/users/29988122/followers","following_url":"https://api.github.com/users/29988122/following{/other_user}","gists_url":"https://api.github.com/users/29988122/gists{/gist_id}","starred_url":"https://api.github.com/users/29988122/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/29988122/subscriptions","organizations_url":"https://api.github.com/users/29988122/orgs","repos_url":"https://api.github.com/users/29988122/repos","events_url":"https://api.github.com/users/29988122/events{/privacy}","received_events_url":"https://api.github.com/users/29988122/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":2,"additions":71,"deletions":55,"changed_files":5}}
{"actor":{"display_login":"29988122"}}