{"action":"created","comment":{"url":"https://api.github.com/repos/transhumandesign/kag-base/pulls/comments/192675314","pull_request_review_id":125493058,"id":192675314,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5MjY3NTMxNA==","diff_hunk":"@@ -603,42 +603,56 @@ shared class CTFCore : RulesCore\n \t\t\t}\n \t\t}\n \n-\t\tif(stalemate){\n-\t\t\tif(!rules.exists(\"stalemate_breaker\")){\n-\t\t\t\trules.set_s16(\"stalemate_breaker\",stalemateTime);\n-\t\t\t} else {\n-\t\t\t\trules.sub_s16(\"stalemate_breaker\",1);\n+\t\tif(stalemate)\n+\t\t{\n+\t\t\tif(!rules.exists(\"stalemate_breaker\"))\n+\t\t\t{\n+\t\t\t\trules.set_s16(\"stalemate_breaker\", stalemateTime);\n+\t\t\t} \n+\t\t\telse \n+\t\t\t{\n+\t\t\t\trules.sub_s16(\"stalemate_breaker\", 1);\n \t\t\t}\n \t\t\t\n-\t\t\tif((rules.get_s16(\"stalemate_breaker\")/30) > 0){\n+\t\t\tif((rules.get_s16(\"stalemate_breaker\")/30) > 0)\n+\t\t\t{\n \t\t\t\trules.SetGlobalMessage(\"Stalemate: both teams have no flags.\\nFlags respawning in: \"+(rules.get_s16(\"stalemate_breaker\")/30));\n-\t\t\t} else {\n-\t\t\t\trules.set_s16(\"stalemate_breaker\",-60);\n+\t\t\t} \n+\t\t\telse \n+\t\t\t{\n+\t\t\t\trules.set_s16(\"stalemate_breaker\", -60);\n \t\t\t\t\n-\t\t\t\tfor (uint i = 0; i < flags.length; i++)\n+\t\t\t\tif(isServer())\n \t\t\t\t{\n-\t\t\t\t\tCBlob @flag = flags[i];\n-\t\t\t\t\tif (flag !is null)\n+\t\t\t\t\tfor (uint i = 0; i < flags.length; i++)\n \t\t\t\t\t{\n-\t\t\t\t\t\tflag.Tag(\"stalemate_return\");\n-\t\t\t\t\t\tif(isServer())flag.Sync(\"stalemate_return\",true);\n+\t\t\t\t\t\tCBlob @flag = flags[i];\n+\t\t\t\t\t\tif (flag !is null)\n+\t\t\t\t\t\t{\n+\t\t\t\t\t\t\tflag.Tag(\"stalemate_return\");\n+\t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t\t\n-\t\t} else {\n+\t\t} \n+\t\telse \n+\t\t{\n \t\t\tint stalemate_timer = rules.get_s16(\"stalemate_breaker\");\n-\t\t\tif(stalemate_timer > -10 && stalemate_timer != stalemateTime){\n+\t\t\tif(stalemate_timer > -10 && stalemate_timer != stalemateTime)\n+\t\t\t{\n \t\t\t\trules.SetGlobalMessage(\"\");\n-\t\t\t\trules.set_s16(\"stalemate_breaker\",stalemateTime);\n-\t\t\t} else\n-\t\t\tif(stalemate_timer <= -10){\n+\t\t\t\trules.set_s16(\"stalemate_breaker\", stalemateTime);\n+\t\t\t} else ///??? how the hell are elses stylised if not like this?\n+\t\t\tif(stalemate_timer <= -10)","path":"Rules/CTF/Scripts/CTF.as","position":null,"original_position":72,"commit_id":"7fe6e5900bb758a4025b7ea9de7b7ac6f9c8d52e","original_commit_id":"7fe6e5900bb758a4025b7ea9de7b7ac6f9c8d52e","user":{"login":"1bardesign","id":24538638,"node_id":"MDQ6VXNlcjI0NTM4NjM4","avatar_url":"https://avatars0.githubusercontent.com/u/24538638?v=4","gravatar_id":"","url":"https://api.github.com/users/1bardesign","html_url":"https://github.com/1bardesign","followers_url":"https://api.github.com/users/1bardesign/followers","following_url":"https://api.github.com/users/1bardesign/following{/other_user}","gists_url":"https://api.github.com/users/1bardesign/gists{/gist_id}","starred_url":"https://api.github.com/users/1bardesign/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1bardesign/subscriptions","organizations_url":"https://api.github.com/users/1bardesign/orgs","repos_url":"https://api.github.com/users/1bardesign/repos","events_url":"https://api.github.com/users/1bardesign/events{/privacy}","received_events_url":"https://api.github.com/users/1bardesign/received_events","type":"User","site_admin":false},"body":"(for the record)\r\n```cpp\r\n} else if (condition) {\r\n```","created_at":"2018-06-04T09:18:04Z","updated_at":"2018-06-04T09:18:04Z","html_url":"https://github.com/transhumandesign/kag-base/pull/120#discussion_r192675314","pull_request_url":"https://api.github.com/repos/transhumandesign/kag-base/pulls/120","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/transhumandesign/kag-base/pulls/comments/192675314"},"html":{"href":"https://github.com/transhumandesign/kag-base/pull/120#discussion_r192675314"},"pull_request":{"href":"https://api.github.com/repos/transhumandesign/kag-base/pulls/120"}}},"pull_request":{"url":"https://api.github.com/repos/transhumandesign/kag-base/pulls/120","id":192066802,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkyMDY2ODAy","html_url":"https://github.com/transhumandesign/kag-base/pull/120","diff_url":"https://github.com/transhumandesign/kag-base/pull/120.diff","patch_url":"https://github.com/transhumandesign/kag-base/pull/120.patch","issue_url":"https://api.github.com/repos/transhumandesign/kag-base/issues/120","number":120,"state":"open","locked":false,"title":"Adds Stalemates to CTF","user":{"login":"Pirate-Rob","id":5071831,"node_id":"MDQ6VXNlcjUwNzE4MzE=","avatar_url":"https://avatars3.githubusercontent.com/u/5071831?v=4","gravatar_id":"","url":"https://api.github.com/users/Pirate-Rob","html_url":"https://github.com/Pirate-Rob","followers_url":"https://api.github.com/users/Pirate-Rob/followers","following_url":"https://api.github.com/users/Pirate-Rob/following{/other_user}","gists_url":"https://api.github.com/users/Pirate-Rob/gists{/gist_id}","starred_url":"https://api.github.com/users/Pirate-Rob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pirate-Rob/subscriptions","organizations_url":"https://api.github.com/users/Pirate-Rob/orgs","repos_url":"https://api.github.com/users/Pirate-Rob/repos","events_url":"https://api.github.com/users/Pirate-Rob/events{/privacy}","received_events_url":"https://api.github.com/users/Pirate-Rob/received_events","type":"User","site_admin":false},"body":"Upon both teams capturing eachother's flags at the same time, a timer will start which will return all flags after a configurable amount of time. The timer can also be disabled in cfgs.","created_at":"2018-06-01T15:22:41Z","updated_at":"2018-06-04T09:18:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"53a4075fa62916f40f5767ba597a23ce01110357","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/transhumandesign/kag-base/pulls/120/commits","review_comments_url":"https://api.github.com/repos/transhumandesign/kag-base/pulls/120/comments","review_comment_url":"https://api.github.com/repos/transhumandesign/kag-base/pulls/comments{/number}","comments_url":"https://api.github.com/repos/transhumandesign/kag-base/issues/120/comments","statuses_url":"https://api.github.com/repos/transhumandesign/kag-base/statuses/7fe6e5900bb758a4025b7ea9de7b7ac6f9c8d52e","head":{"label":"Pirate-Rob:CTF-Stalemate-Addition","ref":"CTF-Stalemate-Addition","sha":"7fe6e5900bb758a4025b7ea9de7b7ac6f9c8d52e","user":{"login":"Pirate-Rob","id":5071831,"node_id":"MDQ6VXNlcjUwNzE4MzE=","avatar_url":"https://avatars3.githubusercontent.com/u/5071831?v=4","gravatar_id":"","url":"https://api.github.com/users/Pirate-Rob","html_url":"https://github.com/Pirate-Rob","followers_url":"https://api.github.com/users/Pirate-Rob/followers","following_url":"https://api.github.com/users/Pirate-Rob/following{/other_user}","gists_url":"https://api.github.com/users/Pirate-Rob/gists{/gist_id}","starred_url":"https://api.github.com/users/Pirate-Rob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pirate-Rob/subscriptions","organizations_url":"https://api.github.com/users/Pirate-Rob/orgs","repos_url":"https://api.github.com/users/Pirate-Rob/repos","events_url":"https://api.github.com/users/Pirate-Rob/events{/privacy}","received_events_url":"https://api.github.com/users/Pirate-Rob/received_events","type":"User","site_admin":false},"repo":{"id":124669175,"node_id":"MDEwOlJlcG9zaXRvcnkxMjQ2NjkxNzU=","name":"kag-base","full_name":"Pirate-Rob/kag-base","owner":{"login":"Pirate-Rob","id":5071831,"node_id":"MDQ6VXNlcjUwNzE4MzE=","avatar_url":"https://avatars3.githubusercontent.com/u/5071831?v=4","gravatar_id":"","url":"https://api.github.com/users/Pirate-Rob","html_url":"https://github.com/Pirate-Rob","followers_url":"https://api.github.com/users/Pirate-Rob/followers","following_url":"https://api.github.com/users/Pirate-Rob/following{/other_user}","gists_url":"https://api.github.com/users/Pirate-Rob/gists{/gist_id}","starred_url":"https://api.github.com/users/Pirate-Rob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pirate-Rob/subscriptions","organizations_url":"https://api.github.com/users/Pirate-Rob/orgs","repos_url":"https://api.github.com/users/Pirate-Rob/repos","events_url":"https://api.github.com/users/Pirate-Rob/events{/privacy}","received_events_url":"https://api.github.com/users/Pirate-Rob/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Pirate-Rob/kag-base","description":"King Arthur's Gold base folder.","fork":true,"url":"https://api.github.com/repos/Pirate-Rob/kag-base","forks_url":"https://api.github.com/repos/Pirate-Rob/kag-base/forks","keys_url":"https://api.github.com/repos/Pirate-Rob/kag-base/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Pirate-Rob/kag-base/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Pirate-Rob/kag-base/teams","hooks_url":"https://api.github.com/repos/Pirate-Rob/kag-base/hooks","issue_events_url":"https://api.github.com/repos/Pirate-Rob/kag-base/issues/events{/number}","events_url":"https://api.github.com/repos/Pirate-Rob/kag-base/events","assignees_url":"https://api.github.com/repos/Pirate-Rob/kag-base/assignees{/user}","branches_url":"https://api.github.com/repos/Pirate-Rob/kag-base/branches{/branch}","tags_url":"https://api.github.com/repos/Pirate-Rob/kag-base/tags","blobs_url":"https://api.github.com/repos/Pirate-Rob/kag-base/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Pirate-Rob/kag-base/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Pirate-Rob/kag-base/git/refs{/sha}","trees_url":"https://api.github.com/repos/Pirate-Rob/kag-base/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Pirate-Rob/kag-base/statuses/{sha}","languages_url":"https://api.github.com/repos/Pirate-Rob/kag-base/languages","stargazers_url":"https://api.github.com/repos/Pirate-Rob/kag-base/stargazers","contributors_url":"https://api.github.com/repos/Pirate-Rob/kag-base/contributors","subscribers_url":"https://api.github.com/repos/Pirate-Rob/kag-base/subscribers","subscription_url":"https://api.github.com/repos/Pirate-Rob/kag-base/subscription","commits_url":"https://api.github.com/repos/Pirate-Rob/kag-base/commits{/sha}","git_commits_url":"https://api.github.com/repos/Pirate-Rob/kag-base/git/commits{/sha}","comments_url":"https://api.github.com/repos/Pirate-Rob/kag-base/comments{/number}","issue_comment_url":"https://api.github.com/repos/Pirate-Rob/kag-base/issues/comments{/number}","contents_url":"https://api.github.com/repos/Pirate-Rob/kag-base/contents/{+path}","compare_url":"https://api.github.com/repos/Pirate-Rob/kag-base/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Pirate-Rob/kag-base/merges","archive_url":"https://api.github.com/repos/Pirate-Rob/kag-base/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Pirate-Rob/kag-base/downloads","issues_url":"https://api.github.com/repos/Pirate-Rob/kag-base/issues{/number}","pulls_url":"https://api.github.com/repos/Pirate-Rob/kag-base/pulls{/number}","milestones_url":"https://api.github.com/repos/Pirate-Rob/kag-base/milestones{/number}","notifications_url":"https://api.github.com/repos/Pirate-Rob/kag-base/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Pirate-Rob/kag-base/labels{/name}","releases_url":"https://api.github.com/repos/Pirate-Rob/kag-base/releases{/id}","deployments_url":"https://api.github.com/repos/Pirate-Rob/kag-base/deployments","created_at":"2018-03-10T15:37:36Z","updated_at":"2018-06-01T15:21:13Z","pushed_at":"2018-06-04T02:11:47Z","git_url":"git://github.com/Pirate-Rob/kag-base.git","ssh_url":"git@github.com:Pirate-Rob/kag-base.git","clone_url":"https://github.com/Pirate-Rob/kag-base.git","svn_url":"https://github.com/Pirate-Rob/kag-base","homepage":null,"size":44298,"stargazers_count":0,"watchers_count":0,"language":"AngelScript","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":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"transhumandesign:master","ref":"master","sha":"024782817c29bd35f8df4a939c8ddbf5e48f7ca2","user":{"login":"transhumandesign","id":26709580,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI2NzA5NTgw","avatar_url":"https://avatars0.githubusercontent.com/u/26709580?v=4","gravatar_id":"","url":"https://api.github.com/users/transhumandesign","html_url":"https://github.com/transhumandesign","followers_url":"https://api.github.com/users/transhumandesign/followers","following_url":"https://api.github.com/users/transhumandesign/following{/other_user}","gists_url":"https://api.github.com/users/transhumandesign/gists{/gist_id}","starred_url":"https://api.github.com/users/transhumandesign/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/transhumandesign/subscriptions","organizations_url":"https://api.github.com/users/transhumandesign/orgs","repos_url":"https://api.github.com/users/transhumandesign/repos","events_url":"https://api.github.com/users/transhumandesign/events{/privacy}","received_events_url":"https://api.github.com/users/transhumandesign/received_events","type":"Organization","site_admin":false},"repo":{"id":86322619,"node_id":"MDEwOlJlcG9zaXRvcnk4NjMyMjYxOQ==","name":"kag-base","full_name":"transhumandesign/kag-base","owner":{"login":"transhumandesign","id":26709580,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI2NzA5NTgw","avatar_url":"https://avatars0.githubusercontent.com/u/26709580?v=4","gravatar_id":"","url":"https://api.github.com/users/transhumandesign","html_url":"https://github.com/transhumandesign","followers_url":"https://api.github.com/users/transhumandesign/followers","following_url":"https://api.github.com/users/transhumandesign/following{/other_user}","gists_url":"https://api.github.com/users/transhumandesign/gists{/gist_id}","starred_url":"https://api.github.com/users/transhumandesign/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/transhumandesign/subscriptions","organizations_url":"https://api.github.com/users/transhumandesign/orgs","repos_url":"https://api.github.com/users/transhumandesign/repos","events_url":"https://api.github.com/users/transhumandesign/events{/privacy}","received_events_url":"https://api.github.com/users/transhumandesign/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/transhumandesign/kag-base","description":"King Arthur's Gold base folder.","fork":false,"url":"https://api.github.com/repos/transhumandesign/kag-base","forks_url":"https://api.github.com/repos/transhumandesign/kag-base/forks","keys_url":"https://api.github.com/repos/transhumandesign/kag-base/keys{/key_id}","collaborators_url":"https://api.github.com/repos/transhumandesign/kag-base/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/transhumandesign/kag-base/teams","hooks_url":"https://api.github.com/repos/transhumandesign/kag-base/hooks","issue_events_url":"https://api.github.com/repos/transhumandesign/kag-base/issues/events{/number}","events_url":"https://api.github.com/repos/transhumandesign/kag-base/events","assignees_url":"https://api.github.com/repos/transhumandesign/kag-base/assignees{/user}","branches_url":"https://api.github.com/repos/transhumandesign/kag-base/branches{/branch}","tags_url":"https://api.github.com/repos/transhumandesign/kag-base/tags","blobs_url":"https://api.github.com/repos/transhumandesign/kag-base/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/transhumandesign/kag-base/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/transhumandesign/kag-base/git/refs{/sha}","trees_url":"https://api.github.com/repos/transhumandesign/kag-base/git/trees{/sha}","statuses_url":"https://api.github.com/repos/transhumandesign/kag-base/statuses/{sha}","languages_url":"https://api.github.com/repos/transhumandesign/kag-base/languages","stargazers_url":"https://api.github.com/repos/transhumandesign/kag-base/stargazers","contributors_url":"https://api.github.com/repos/transhumandesign/kag-base/contributors","subscribers_url":"https://api.github.com/repos/transhumandesign/kag-base/subscribers","subscription_url":"https://api.github.com/repos/transhumandesign/kag-base/subscription","commits_url":"https://api.github.com/repos/transhumandesign/kag-base/commits{/sha}","git_commits_url":"https://api.github.com/repos/transhumandesign/kag-base/git/commits{/sha}","comments_url":"https://api.github.com/repos/transhumandesign/kag-base/comments{/number}","issue_comment_url":"https://api.github.com/repos/transhumandesign/kag-base/issues/comments{/number}","contents_url":"https://api.github.com/repos/transhumandesign/kag-base/contents/{+path}","compare_url":"https://api.github.com/repos/transhumandesign/kag-base/compare/{base}...{head}","merges_url":"https://api.github.com/repos/transhumandesign/kag-base/merges","archive_url":"https://api.github.com/repos/transhumandesign/kag-base/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/transhumandesign/kag-base/downloads","issues_url":"https://api.github.com/repos/transhumandesign/kag-base/issues{/number}","pulls_url":"https://api.github.com/repos/transhumandesign/kag-base/pulls{/number}","milestones_url":"https://api.github.com/repos/transhumandesign/kag-base/milestones{/number}","notifications_url":"https://api.github.com/repos/transhumandesign/kag-base/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/transhumandesign/kag-base/labels{/name}","releases_url":"https://api.github.com/repos/transhumandesign/kag-base/releases{/id}","deployments_url":"https://api.github.com/repos/transhumandesign/kag-base/deployments","created_at":"2017-03-27T10:32:27Z","updated_at":"2018-06-04T01:40:35Z","pushed_at":"2018-06-04T08:57:42Z","git_url":"git://github.com/transhumandesign/kag-base.git","ssh_url":"git@github.com:transhumandesign/kag-base.git","clone_url":"https://github.com/transhumandesign/kag-base.git","svn_url":"https://github.com/transhumandesign/kag-base","homepage":null,"size":44635,"stargazers_count":58,"watchers_count":58,"language":"AngelScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":32,"mirror_url":null,"archived":false,"open_issues_count":30,"license":null,"forks":32,"open_issues":30,"watchers":58,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/transhumandesign/kag-base/pulls/120"},"html":{"href":"https://github.com/transhumandesign/kag-base/pull/120"},"issue":{"href":"https://api.github.com/repos/transhumandesign/kag-base/issues/120"},"comments":{"href":"https://api.github.com/repos/transhumandesign/kag-base/issues/120/comments"},"review_comments":{"href":"https://api.github.com/repos/transhumandesign/kag-base/pulls/120/comments"},"review_comment":{"href":"https://api.github.com/repos/transhumandesign/kag-base/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/transhumandesign/kag-base/pulls/120/commits"},"statuses":{"href":"https://api.github.com/repos/transhumandesign/kag-base/statuses/7fe6e5900bb758a4025b7ea9de7b7ac6f9c8d52e"}},"author_association":"NONE"}}
{"actor":{"display_login":"1bardesign"}}