{"action":"created","comment":{"url":"https://api.github.com/repos/Interkarma/daggerfall-unity/pulls/comments/173758032","pull_request_review_id":102997045,"id":173758032,"diff_hunk":"@@ -574,14 +574,18 @@ private void DonationMsgBox_OnGotUserInput(DaggerfallInputMessageBox sender, str\n             {\n                 if (playerEntity.GetGoldAmount() > amount)\n                 {\n-                    // Deduct gold, change reputation and apply blessing\n+                    // Deduct gold, and apply blessing if member\n                     playerEntity.DeductGoldAmount(amount);\n                     int factionId = guild.GetFactionId();\n                     if (guild.IsMember() && guild.GetType() == typeof(Temple))\n                         ((Temple)guild).Blessing(playerEntity, amount);     // TODO what happens when blessing is applied in classic? a message?\n                     else\n                         factionId = (int)Temple.GetDivine(buildingFactionId);\n-                    playerEntity.FactionData.ChangeReputation(factionId, 1, true);\n+\n+                    // Change reputation\n+                    int rep = Math.Abs(playerEntity.FactionData.GetReputation(factionId));\n+                    if (UnityEngine.Random.Range(1, 100) <= (2 * amount / rep + 1))","path":"Assets/Scripts/Game/UserInterfaceWindows/DaggerfallGuildServicePopupWindow.cs","position":null,"original_position":16,"commit_id":"b616d35bf460b76b89d7aff63cdd6cff6ba583cc","original_commit_id":"6f99a581b4224aff78f3ff6065d9b15739cd7a39","user":{"login":"Allofich","id":19624336,"avatar_url":"https://avatars2.githubusercontent.com/u/19624336?v=4","gravatar_id":"","url":"https://api.github.com/users/Allofich","html_url":"https://github.com/Allofich","followers_url":"https://api.github.com/users/Allofich/followers","following_url":"https://api.github.com/users/Allofich/following{/other_user}","gists_url":"https://api.github.com/users/Allofich/gists{/gist_id}","starred_url":"https://api.github.com/users/Allofich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Allofich/subscriptions","organizations_url":"https://api.github.com/users/Allofich/orgs","repos_url":"https://api.github.com/users/Allofich/repos","events_url":"https://api.github.com/users/Allofich/events{/privacy}","received_events_url":"https://api.github.com/users/Allofich/received_events","type":"User","site_admin":false},"body":"Maybe they expect the most common use of it to be something like UnityEngine.Random.Range(array[0], array.length).\r\nThe \"int\" example on https://docs.unity3d.com/ScriptReference/Random.Range.html looks like it may be the same way. I'm guessing (have not actually looked into it) that if \"SceneCount\" was 3, you would want to give \"LoadScene\" either 0, 1, or 2.","created_at":"2018-03-12T10:59:59Z","updated_at":"2018-03-12T10:59:59Z","html_url":"https://github.com/Interkarma/daggerfall-unity/pull/651#discussion_r173758032","pull_request_url":"https://api.github.com/repos/Interkarma/daggerfall-unity/pulls/651","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/Interkarma/daggerfall-unity/pulls/comments/173758032"},"html":{"href":"https://github.com/Interkarma/daggerfall-unity/pull/651#discussion_r173758032"},"pull_request":{"href":"https://api.github.com/repos/Interkarma/daggerfall-unity/pulls/651"}},"in_reply_to_id":173742316},"pull_request":{"url":"https://api.github.com/repos/Interkarma/daggerfall-unity/pulls/651","id":174187262,"html_url":"https://github.com/Interkarma/daggerfall-unity/pull/651","diff_url":"https://github.com/Interkarma/daggerfall-unity/pull/651.diff","patch_url":"https://github.com/Interkarma/daggerfall-unity/pull/651.patch","issue_url":"https://api.github.com/repos/Interkarma/daggerfall-unity/issues/651","number":651,"state":"open","locked":false,"title":"Add donation and cure disease guild services","user":{"login":"ajrb","id":2278830,"avatar_url":"https://avatars2.githubusercontent.com/u/2278830?v=4","gravatar_id":"","url":"https://api.github.com/users/ajrb","html_url":"https://github.com/ajrb","followers_url":"https://api.github.com/users/ajrb/followers","following_url":"https://api.github.com/users/ajrb/following{/other_user}","gists_url":"https://api.github.com/users/ajrb/gists{/gist_id}","starred_url":"https://api.github.com/users/ajrb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajrb/subscriptions","organizations_url":"https://api.github.com/users/ajrb/orgs","repos_url":"https://api.github.com/users/ajrb/repos","events_url":"https://api.github.com/users/ajrb/events{/privacy}","received_events_url":"https://api.github.com/users/ajrb/received_events","type":"User","site_admin":false},"body":"Cure is very skeleton for now, Allofich and I will flesh out soon.","created_at":"2018-03-10T20:08:57Z","updated_at":"2018-03-12T10:59:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"23ba866092a423adb84673ccaf3649c34510ae6f","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Interkarma/daggerfall-unity/pulls/651/commits","review_comments_url":"https://api.github.com/repos/Interkarma/daggerfall-unity/pulls/651/comments","review_comment_url":"https://api.github.com/repos/Interkarma/daggerfall-unity/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Interkarma/daggerfall-unity/issues/651/comments","statuses_url":"https://api.github.com/repos/Interkarma/daggerfall-unity/statuses/b616d35bf460b76b89d7aff63cdd6cff6ba583cc","head":{"label":"ajrb:master","ref":"master","sha":"b616d35bf460b76b89d7aff63cdd6cff6ba583cc","user":{"login":"ajrb","id":2278830,"avatar_url":"https://avatars2.githubusercontent.com/u/2278830?v=4","gravatar_id":"","url":"https://api.github.com/users/ajrb","html_url":"https://github.com/ajrb","followers_url":"https://api.github.com/users/ajrb/followers","following_url":"https://api.github.com/users/ajrb/following{/other_user}","gists_url":"https://api.github.com/users/ajrb/gists{/gist_id}","starred_url":"https://api.github.com/users/ajrb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajrb/subscriptions","organizations_url":"https://api.github.com/users/ajrb/orgs","repos_url":"https://api.github.com/users/ajrb/repos","events_url":"https://api.github.com/users/ajrb/events{/privacy}","received_events_url":"https://api.github.com/users/ajrb/received_events","type":"User","site_admin":false},"repo":{"id":101489647,"name":"daggerfall-unity","full_name":"ajrb/daggerfall-unity","owner":{"login":"ajrb","id":2278830,"avatar_url":"https://avatars2.githubusercontent.com/u/2278830?v=4","gravatar_id":"","url":"https://api.github.com/users/ajrb","html_url":"https://github.com/ajrb","followers_url":"https://api.github.com/users/ajrb/followers","following_url":"https://api.github.com/users/ajrb/following{/other_user}","gists_url":"https://api.github.com/users/ajrb/gists{/gist_id}","starred_url":"https://api.github.com/users/ajrb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajrb/subscriptions","organizations_url":"https://api.github.com/users/ajrb/orgs","repos_url":"https://api.github.com/users/ajrb/repos","events_url":"https://api.github.com/users/ajrb/events{/privacy}","received_events_url":"https://api.github.com/users/ajrb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ajrb/daggerfall-unity","description":"Open source recreation of Daggerfall in the Unity engine","fork":true,"url":"https://api.github.com/repos/ajrb/daggerfall-unity","forks_url":"https://api.github.com/repos/ajrb/daggerfall-unity/forks","keys_url":"https://api.github.com/repos/ajrb/daggerfall-unity/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ajrb/daggerfall-unity/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ajrb/daggerfall-unity/teams","hooks_url":"https://api.github.com/repos/ajrb/daggerfall-unity/hooks","issue_events_url":"https://api.github.com/repos/ajrb/daggerfall-unity/issues/events{/number}","events_url":"https://api.github.com/repos/ajrb/daggerfall-unity/events","assignees_url":"https://api.github.com/repos/ajrb/daggerfall-unity/assignees{/user}","branches_url":"https://api.github.com/repos/ajrb/daggerfall-unity/branches{/branch}","tags_url":"https://api.github.com/repos/ajrb/daggerfall-unity/tags","blobs_url":"https://api.github.com/repos/ajrb/daggerfall-unity/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ajrb/daggerfall-unity/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ajrb/daggerfall-unity/git/refs{/sha}","trees_url":"https://api.github.com/repos/ajrb/daggerfall-unity/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ajrb/daggerfall-unity/statuses/{sha}","languages_url":"https://api.github.com/repos/ajrb/daggerfall-unity/languages","stargazers_url":"https://api.github.com/repos/ajrb/daggerfall-unity/stargazers","contributors_url":"https://api.github.com/repos/ajrb/daggerfall-unity/contributors","subscribers_url":"https://api.github.com/repos/ajrb/daggerfall-unity/subscribers","subscription_url":"https://api.github.com/repos/ajrb/daggerfall-unity/subscription","commits_url":"https://api.github.com/repos/ajrb/daggerfall-unity/commits{/sha}","git_commits_url":"https://api.github.com/repos/ajrb/daggerfall-unity/git/commits{/sha}","comments_url":"https://api.github.com/repos/ajrb/daggerfall-unity/comments{/number}","issue_comment_url":"https://api.github.com/repos/ajrb/daggerfall-unity/issues/comments{/number}","contents_url":"https://api.github.com/repos/ajrb/daggerfall-unity/contents/{+path}","compare_url":"https://api.github.com/repos/ajrb/daggerfall-unity/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ajrb/daggerfall-unity/merges","archive_url":"https://api.github.com/repos/ajrb/daggerfall-unity/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ajrb/daggerfall-unity/downloads","issues_url":"https://api.github.com/repos/ajrb/daggerfall-unity/issues{/number}","pulls_url":"https://api.github.com/repos/ajrb/daggerfall-unity/pulls{/number}","milestones_url":"https://api.github.com/repos/ajrb/daggerfall-unity/milestones{/number}","notifications_url":"https://api.github.com/repos/ajrb/daggerfall-unity/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ajrb/daggerfall-unity/labels{/name}","releases_url":"https://api.github.com/repos/ajrb/daggerfall-unity/releases{/id}","deployments_url":"https://api.github.com/repos/ajrb/daggerfall-unity/deployments","created_at":"2017-08-26T14:06:11Z","updated_at":"2017-08-26T14:06:16Z","pushed_at":"2018-03-12T10:28:38Z","git_url":"git://github.com/ajrb/daggerfall-unity.git","ssh_url":"git@github.com:ajrb/daggerfall-unity.git","clone_url":"https://github.com/ajrb/daggerfall-unity.git","svn_url":"https://github.com/ajrb/daggerfall-unity","homepage":"http://www.dfworkshop.net","size":85927,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"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":"Interkarma:master","ref":"master","sha":"b79645771ed96151ad75f4e095727274a243adef","user":{"login":"Interkarma","id":10426244,"avatar_url":"https://avatars3.githubusercontent.com/u/10426244?v=4","gravatar_id":"","url":"https://api.github.com/users/Interkarma","html_url":"https://github.com/Interkarma","followers_url":"https://api.github.com/users/Interkarma/followers","following_url":"https://api.github.com/users/Interkarma/following{/other_user}","gists_url":"https://api.github.com/users/Interkarma/gists{/gist_id}","starred_url":"https://api.github.com/users/Interkarma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Interkarma/subscriptions","organizations_url":"https://api.github.com/users/Interkarma/orgs","repos_url":"https://api.github.com/users/Interkarma/repos","events_url":"https://api.github.com/users/Interkarma/events{/privacy}","received_events_url":"https://api.github.com/users/Interkarma/received_events","type":"User","site_admin":false},"repo":{"id":28884050,"name":"daggerfall-unity","full_name":"Interkarma/daggerfall-unity","owner":{"login":"Interkarma","id":10426244,"avatar_url":"https://avatars3.githubusercontent.com/u/10426244?v=4","gravatar_id":"","url":"https://api.github.com/users/Interkarma","html_url":"https://github.com/Interkarma","followers_url":"https://api.github.com/users/Interkarma/followers","following_url":"https://api.github.com/users/Interkarma/following{/other_user}","gists_url":"https://api.github.com/users/Interkarma/gists{/gist_id}","starred_url":"https://api.github.com/users/Interkarma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Interkarma/subscriptions","organizations_url":"https://api.github.com/users/Interkarma/orgs","repos_url":"https://api.github.com/users/Interkarma/repos","events_url":"https://api.github.com/users/Interkarma/events{/privacy}","received_events_url":"https://api.github.com/users/Interkarma/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Interkarma/daggerfall-unity","description":"Open source recreation of Daggerfall in the Unity engine","fork":false,"url":"https://api.github.com/repos/Interkarma/daggerfall-unity","forks_url":"https://api.github.com/repos/Interkarma/daggerfall-unity/forks","keys_url":"https://api.github.com/repos/Interkarma/daggerfall-unity/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Interkarma/daggerfall-unity/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Interkarma/daggerfall-unity/teams","hooks_url":"https://api.github.com/repos/Interkarma/daggerfall-unity/hooks","issue_events_url":"https://api.github.com/repos/Interkarma/daggerfall-unity/issues/events{/number}","events_url":"https://api.github.com/repos/Interkarma/daggerfall-unity/events","assignees_url":"https://api.github.com/repos/Interkarma/daggerfall-unity/assignees{/user}","branches_url":"https://api.github.com/repos/Interkarma/daggerfall-unity/branches{/branch}","tags_url":"https://api.github.com/repos/Interkarma/daggerfall-unity/tags","blobs_url":"https://api.github.com/repos/Interkarma/daggerfall-unity/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Interkarma/daggerfall-unity/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Interkarma/daggerfall-unity/git/refs{/sha}","trees_url":"https://api.github.com/repos/Interkarma/daggerfall-unity/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Interkarma/daggerfall-unity/statuses/{sha}","languages_url":"https://api.github.com/repos/Interkarma/daggerfall-unity/languages","stargazers_url":"https://api.github.com/repos/Interkarma/daggerfall-unity/stargazers","contributors_url":"https://api.github.com/repos/Interkarma/daggerfall-unity/contributors","subscribers_url":"https://api.github.com/repos/Interkarma/daggerfall-unity/subscribers","subscription_url":"https://api.github.com/repos/Interkarma/daggerfall-unity/subscription","commits_url":"https://api.github.com/repos/Interkarma/daggerfall-unity/commits{/sha}","git_commits_url":"https://api.github.com/repos/Interkarma/daggerfall-unity/git/commits{/sha}","comments_url":"https://api.github.com/repos/Interkarma/daggerfall-unity/comments{/number}","issue_comment_url":"https://api.github.com/repos/Interkarma/daggerfall-unity/issues/comments{/number}","contents_url":"https://api.github.com/repos/Interkarma/daggerfall-unity/contents/{+path}","compare_url":"https://api.github.com/repos/Interkarma/daggerfall-unity/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Interkarma/daggerfall-unity/merges","archive_url":"https://api.github.com/repos/Interkarma/daggerfall-unity/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Interkarma/daggerfall-unity/downloads","issues_url":"https://api.github.com/repos/Interkarma/daggerfall-unity/issues{/number}","pulls_url":"https://api.github.com/repos/Interkarma/daggerfall-unity/pulls{/number}","milestones_url":"https://api.github.com/repos/Interkarma/daggerfall-unity/milestones{/number}","notifications_url":"https://api.github.com/repos/Interkarma/daggerfall-unity/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Interkarma/daggerfall-unity/labels{/name}","releases_url":"https://api.github.com/repos/Interkarma/daggerfall-unity/releases{/id}","deployments_url":"https://api.github.com/repos/Interkarma/daggerfall-unity/deployments","created_at":"2015-01-06T21:18:36Z","updated_at":"2018-03-09T22:38:41Z","pushed_at":"2018-03-12T10:28:39Z","git_url":"git://github.com/Interkarma/daggerfall-unity.git","ssh_url":"git@github.com:Interkarma/daggerfall-unity.git","clone_url":"https://github.com/Interkarma/daggerfall-unity.git","svn_url":"https://github.com/Interkarma/daggerfall-unity","homepage":"http://www.dfworkshop.net","size":85002,"stargazers_count":330,"watchers_count":330,"language":"C#","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":61,"mirror_url":null,"archived":false,"open_issues_count":7,"license":null,"forks":61,"open_issues":7,"watchers":330,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Interkarma/daggerfall-unity/pulls/651"},"html":{"href":"https://github.com/Interkarma/daggerfall-unity/pull/651"},"issue":{"href":"https://api.github.com/repos/Interkarma/daggerfall-unity/issues/651"},"comments":{"href":"https://api.github.com/repos/Interkarma/daggerfall-unity/issues/651/comments"},"review_comments":{"href":"https://api.github.com/repos/Interkarma/daggerfall-unity/pulls/651/comments"},"review_comment":{"href":"https://api.github.com/repos/Interkarma/daggerfall-unity/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Interkarma/daggerfall-unity/pulls/651/commits"},"statuses":{"href":"https://api.github.com/repos/Interkarma/daggerfall-unity/statuses/b616d35bf460b76b89d7aff63cdd6cff6ba583cc"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"Allofich"}}