{"action":"created","comment":{"url":"https://api.github.com/repos/Capstrong/Godlands/pulls/comments/25227379","id":25227379,"diff_hunk":"@@ -4,11 +4,14 @@\n public class BuddyStats : MonoBehaviour\n {\n \tpublic Stat statType = Stat.Invalid;\n-\t[SerializeField] int startingApples = 10;\n-\t[SerializeField] int apples = 0;\n+\t[SerializeField] bool canDecreaseStat = true;","path":"Assets/Scripts/Buddy/BuddyStats.cs","position":6,"original_position":6,"commit_id":"93dfbce5606d84d39c7cbfcf8f8d39608310dd58","original_commit_id":"93dfbce5606d84d39c7cbfcf8f8d39608310dd58","user":{"login":"brickman1444","id":598011,"avatar_url":"https://avatars.githubusercontent.com/u/598011?v=3","gravatar_id":"","url":"https://api.github.com/users/brickman1444","html_url":"https://github.com/brickman1444","followers_url":"https://api.github.com/users/brickman1444/followers","following_url":"https://api.github.com/users/brickman1444/following{/other_user}","gists_url":"https://api.github.com/users/brickman1444/gists{/gist_id}","starred_url":"https://api.github.com/users/brickman1444/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brickman1444/subscriptions","organizations_url":"https://api.github.com/users/brickman1444/orgs","repos_url":"https://api.github.com/users/brickman1444/repos","events_url":"https://api.github.com/users/brickman1444/events{/privacy}","received_events_url":"https://api.github.com/users/brickman1444/received_events","type":"User","site_admin":false},"body":"done","created_at":"2015-02-24T04:02:46Z","updated_at":"2015-02-24T04:02:46Z","html_url":"https://github.com/Capstrong/Godlands/pull/59#discussion_r25227379","pull_request_url":"https://api.github.com/repos/Capstrong/Godlands/pulls/59","_links":{"self":{"href":"https://api.github.com/repos/Capstrong/Godlands/pulls/comments/25227379"},"html":{"href":"https://github.com/Capstrong/Godlands/pull/59#discussion_r25227379"},"pull_request":{"href":"https://api.github.com/repos/Capstrong/Godlands/pulls/59"}}},"pull_request":{"url":"https://api.github.com/repos/Capstrong/Godlands/pulls/59","id":29782966,"html_url":"https://github.com/Capstrong/Godlands/pull/59","diff_url":"https://github.com/Capstrong/Godlands/pull/59.diff","patch_url":"https://github.com/Capstrong/Godlands/pull/59.patch","issue_url":"https://api.github.com/repos/Capstrong/Godlands/issues/59","number":59,"state":"open","locked":false,"title":"Day/Night Mechanics","user":{"login":"brickman1444","id":598011,"avatar_url":"https://avatars.githubusercontent.com/u/598011?v=3","gravatar_id":"","url":"https://api.github.com/users/brickman1444","html_url":"https://github.com/brickman1444","followers_url":"https://api.github.com/users/brickman1444/followers","following_url":"https://api.github.com/users/brickman1444/following{/other_user}","gists_url":"https://api.github.com/users/brickman1444/gists{/gist_id}","starred_url":"https://api.github.com/users/brickman1444/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brickman1444/subscriptions","organizations_url":"https://api.github.com/users/brickman1444/orgs","repos_url":"https://api.github.com/users/brickman1444/repos","events_url":"https://api.github.com/users/brickman1444/events{/privacy}","received_events_url":"https://api.github.com/users/brickman1444/received_events","type":"User","site_admin":false},"body":"Buddies all lose resources at midnight. The player is teleported back to the start at midnight. This code should actually be good.\r\n\r\nScene Changes required:\r\nBuddyManager, DayCycleManager and RenderSettingsManager are all prefabs. Make sure that they are present in the scene and that the instances in the scenes are instances of these prefabs.\r\nIn Prefabs/UI is a prefab called Black Overlay. Put this in the scene under the UICanvas. Drag a reference to this object into the DayNightCycleManager for the Midnight Overlay slot.\r\nDrag a reference to the play into the DayNightCycleManager for the PlayerControls slot.\r\nDouble check that the RenderSettingsManager has a reference to the directional light in the scene.","created_at":"2015-02-23T02:30:57Z","updated_at":"2015-02-24T04:02:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f45f6920ff8c5d4011c4e3a62da970c007f14c80","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Capstrong/Godlands/pulls/59/commits","review_comments_url":"https://api.github.com/repos/Capstrong/Godlands/pulls/59/comments","review_comment_url":"https://api.github.com/repos/Capstrong/Godlands/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Capstrong/Godlands/issues/59/comments","statuses_url":"https://api.github.com/repos/Capstrong/Godlands/statuses/93dfbce5606d84d39c7cbfcf8f8d39608310dd58","head":{"label":"Capstrong:DayNightMechanics","ref":"DayNightMechanics","sha":"93dfbce5606d84d39c7cbfcf8f8d39608310dd58","user":{"login":"Capstrong","id":10466570,"avatar_url":"https://avatars.githubusercontent.com/u/10466570?v=3","gravatar_id":"","url":"https://api.github.com/users/Capstrong","html_url":"https://github.com/Capstrong","followers_url":"https://api.github.com/users/Capstrong/followers","following_url":"https://api.github.com/users/Capstrong/following{/other_user}","gists_url":"https://api.github.com/users/Capstrong/gists{/gist_id}","starred_url":"https://api.github.com/users/Capstrong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Capstrong/subscriptions","organizations_url":"https://api.github.com/users/Capstrong/orgs","repos_url":"https://api.github.com/users/Capstrong/repos","events_url":"https://api.github.com/users/Capstrong/events{/privacy}","received_events_url":"https://api.github.com/users/Capstrong/received_events","type":"Organization","site_admin":false},"repo":{"id":29553492,"name":"Godlands","full_name":"Capstrong/Godlands","owner":{"login":"Capstrong","id":10466570,"avatar_url":"https://avatars.githubusercontent.com/u/10466570?v=3","gravatar_id":"","url":"https://api.github.com/users/Capstrong","html_url":"https://github.com/Capstrong","followers_url":"https://api.github.com/users/Capstrong/followers","following_url":"https://api.github.com/users/Capstrong/following{/other_user}","gists_url":"https://api.github.com/users/Capstrong/gists{/gist_id}","starred_url":"https://api.github.com/users/Capstrong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Capstrong/subscriptions","organizations_url":"https://api.github.com/users/Capstrong/orgs","repos_url":"https://api.github.com/users/Capstrong/repos","events_url":"https://api.github.com/users/Capstrong/events{/privacy}","received_events_url":"https://api.github.com/users/Capstrong/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Capstrong/Godlands","description":"Actual game for the Capstrong DePaul capstone team","fork":false,"url":"https://api.github.com/repos/Capstrong/Godlands","forks_url":"https://api.github.com/repos/Capstrong/Godlands/forks","keys_url":"https://api.github.com/repos/Capstrong/Godlands/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Capstrong/Godlands/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Capstrong/Godlands/teams","hooks_url":"https://api.github.com/repos/Capstrong/Godlands/hooks","issue_events_url":"https://api.github.com/repos/Capstrong/Godlands/issues/events{/number}","events_url":"https://api.github.com/repos/Capstrong/Godlands/events","assignees_url":"https://api.github.com/repos/Capstrong/Godlands/assignees{/user}","branches_url":"https://api.github.com/repos/Capstrong/Godlands/branches{/branch}","tags_url":"https://api.github.com/repos/Capstrong/Godlands/tags","blobs_url":"https://api.github.com/repos/Capstrong/Godlands/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Capstrong/Godlands/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Capstrong/Godlands/git/refs{/sha}","trees_url":"https://api.github.com/repos/Capstrong/Godlands/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Capstrong/Godlands/statuses/{sha}","languages_url":"https://api.github.com/repos/Capstrong/Godlands/languages","stargazers_url":"https://api.github.com/repos/Capstrong/Godlands/stargazers","contributors_url":"https://api.github.com/repos/Capstrong/Godlands/contributors","subscribers_url":"https://api.github.com/repos/Capstrong/Godlands/subscribers","subscription_url":"https://api.github.com/repos/Capstrong/Godlands/subscription","commits_url":"https://api.github.com/repos/Capstrong/Godlands/commits{/sha}","git_commits_url":"https://api.github.com/repos/Capstrong/Godlands/git/commits{/sha}","comments_url":"https://api.github.com/repos/Capstrong/Godlands/comments{/number}","issue_comment_url":"https://api.github.com/repos/Capstrong/Godlands/issues/comments{/number}","contents_url":"https://api.github.com/repos/Capstrong/Godlands/contents/{+path}","compare_url":"https://api.github.com/repos/Capstrong/Godlands/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Capstrong/Godlands/merges","archive_url":"https://api.github.com/repos/Capstrong/Godlands/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Capstrong/Godlands/downloads","issues_url":"https://api.github.com/repos/Capstrong/Godlands/issues{/number}","pulls_url":"https://api.github.com/repos/Capstrong/Godlands/pulls{/number}","milestones_url":"https://api.github.com/repos/Capstrong/Godlands/milestones{/number}","notifications_url":"https://api.github.com/repos/Capstrong/Godlands/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Capstrong/Godlands/labels{/name}","releases_url":"https://api.github.com/repos/Capstrong/Godlands/releases{/id}","created_at":"2015-01-20T21:37:50Z","updated_at":"2015-02-24T03:30:18Z","pushed_at":"2015-02-24T03:47:19Z","git_url":"git://github.com/Capstrong/Godlands.git","ssh_url":"git@github.com:Capstrong/Godlands.git","clone_url":"https://github.com/Capstrong/Godlands.git","svn_url":"https://github.com/Capstrong/Godlands","homepage":null,"size":193004,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":16,"forks":0,"open_issues":16,"watchers":0,"default_branch":"master"}},"base":{"label":"Capstrong:master","ref":"master","sha":"af12996f4e6fa8594805393a62ed8440e0f6b3bb","user":{"login":"Capstrong","id":10466570,"avatar_url":"https://avatars.githubusercontent.com/u/10466570?v=3","gravatar_id":"","url":"https://api.github.com/users/Capstrong","html_url":"https://github.com/Capstrong","followers_url":"https://api.github.com/users/Capstrong/followers","following_url":"https://api.github.com/users/Capstrong/following{/other_user}","gists_url":"https://api.github.com/users/Capstrong/gists{/gist_id}","starred_url":"https://api.github.com/users/Capstrong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Capstrong/subscriptions","organizations_url":"https://api.github.com/users/Capstrong/orgs","repos_url":"https://api.github.com/users/Capstrong/repos","events_url":"https://api.github.com/users/Capstrong/events{/privacy}","received_events_url":"https://api.github.com/users/Capstrong/received_events","type":"Organization","site_admin":false},"repo":{"id":29553492,"name":"Godlands","full_name":"Capstrong/Godlands","owner":{"login":"Capstrong","id":10466570,"avatar_url":"https://avatars.githubusercontent.com/u/10466570?v=3","gravatar_id":"","url":"https://api.github.com/users/Capstrong","html_url":"https://github.com/Capstrong","followers_url":"https://api.github.com/users/Capstrong/followers","following_url":"https://api.github.com/users/Capstrong/following{/other_user}","gists_url":"https://api.github.com/users/Capstrong/gists{/gist_id}","starred_url":"https://api.github.com/users/Capstrong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Capstrong/subscriptions","organizations_url":"https://api.github.com/users/Capstrong/orgs","repos_url":"https://api.github.com/users/Capstrong/repos","events_url":"https://api.github.com/users/Capstrong/events{/privacy}","received_events_url":"https://api.github.com/users/Capstrong/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Capstrong/Godlands","description":"Actual game for the Capstrong DePaul capstone team","fork":false,"url":"https://api.github.com/repos/Capstrong/Godlands","forks_url":"https://api.github.com/repos/Capstrong/Godlands/forks","keys_url":"https://api.github.com/repos/Capstrong/Godlands/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Capstrong/Godlands/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Capstrong/Godlands/teams","hooks_url":"https://api.github.com/repos/Capstrong/Godlands/hooks","issue_events_url":"https://api.github.com/repos/Capstrong/Godlands/issues/events{/number}","events_url":"https://api.github.com/repos/Capstrong/Godlands/events","assignees_url":"https://api.github.com/repos/Capstrong/Godlands/assignees{/user}","branches_url":"https://api.github.com/repos/Capstrong/Godlands/branches{/branch}","tags_url":"https://api.github.com/repos/Capstrong/Godlands/tags","blobs_url":"https://api.github.com/repos/Capstrong/Godlands/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Capstrong/Godlands/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Capstrong/Godlands/git/refs{/sha}","trees_url":"https://api.github.com/repos/Capstrong/Godlands/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Capstrong/Godlands/statuses/{sha}","languages_url":"https://api.github.com/repos/Capstrong/Godlands/languages","stargazers_url":"https://api.github.com/repos/Capstrong/Godlands/stargazers","contributors_url":"https://api.github.com/repos/Capstrong/Godlands/contributors","subscribers_url":"https://api.github.com/repos/Capstrong/Godlands/subscribers","subscription_url":"https://api.github.com/repos/Capstrong/Godlands/subscription","commits_url":"https://api.github.com/repos/Capstrong/Godlands/commits{/sha}","git_commits_url":"https://api.github.com/repos/Capstrong/Godlands/git/commits{/sha}","comments_url":"https://api.github.com/repos/Capstrong/Godlands/comments{/number}","issue_comment_url":"https://api.github.com/repos/Capstrong/Godlands/issues/comments{/number}","contents_url":"https://api.github.com/repos/Capstrong/Godlands/contents/{+path}","compare_url":"https://api.github.com/repos/Capstrong/Godlands/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Capstrong/Godlands/merges","archive_url":"https://api.github.com/repos/Capstrong/Godlands/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Capstrong/Godlands/downloads","issues_url":"https://api.github.com/repos/Capstrong/Godlands/issues{/number}","pulls_url":"https://api.github.com/repos/Capstrong/Godlands/pulls{/number}","milestones_url":"https://api.github.com/repos/Capstrong/Godlands/milestones{/number}","notifications_url":"https://api.github.com/repos/Capstrong/Godlands/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Capstrong/Godlands/labels{/name}","releases_url":"https://api.github.com/repos/Capstrong/Godlands/releases{/id}","created_at":"2015-01-20T21:37:50Z","updated_at":"2015-02-24T03:30:18Z","pushed_at":"2015-02-24T03:47:19Z","git_url":"git://github.com/Capstrong/Godlands.git","ssh_url":"git@github.com:Capstrong/Godlands.git","clone_url":"https://github.com/Capstrong/Godlands.git","svn_url":"https://github.com/Capstrong/Godlands","homepage":null,"size":193004,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":16,"forks":0,"open_issues":16,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Capstrong/Godlands/pulls/59"},"html":{"href":"https://github.com/Capstrong/Godlands/pull/59"},"issue":{"href":"https://api.github.com/repos/Capstrong/Godlands/issues/59"},"comments":{"href":"https://api.github.com/repos/Capstrong/Godlands/issues/59/comments"},"review_comments":{"href":"https://api.github.com/repos/Capstrong/Godlands/pulls/59/comments"},"review_comment":{"href":"https://api.github.com/repos/Capstrong/Godlands/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Capstrong/Godlands/pulls/59/commits"},"statuses":{"href":"https://api.github.com/repos/Capstrong/Godlands/statuses/93dfbce5606d84d39c7cbfcf8f8d39608310dd58"}}}}