{"action":"created","comment":{"url":"https://api.github.com/repos/rpherbig/dr-scripts/pulls/comments/73980237","id":73980237,"diff_hunk":"@@ -284,6 +276,21 @@ class LootProcess\n     pause 0.2 until DRRoom.dead_npcs.empty?\n   end\n \n+  def consume(mob_noun, game_state, wounds)\n+    check_thanatology(DRRoom.dead_npcs.first, 'consume', game_state)\n+    # Flags.add('necro-spellcast', '^You feel fully prepared to cast your spell\\.')\n+    if game_state.casting\n+      bput('release spell', '')\n+      game_state.casting = false\n+    end\n+    bput(\"prepare cf\", @settings.prep_messages)\n+    game_state.casting = true\n+    waitcastrt?","path":"combat-trainer.lic","position":null,"original_position":60,"commit_id":"f9d1583dea2d8b5ef565454d50da0a8c10b74d60","original_commit_id":"11876647933dc89b239d6d8d0a97b62ad8e7a57e","user":{"login":"rpherbig","id":1181607,"avatar_url":"https://avatars.githubusercontent.com/u/1181607?v=3","gravatar_id":"","url":"https://api.github.com/users/rpherbig","html_url":"https://github.com/rpherbig","followers_url":"https://api.github.com/users/rpherbig/followers","following_url":"https://api.github.com/users/rpherbig/following{/other_user}","gists_url":"https://api.github.com/users/rpherbig/gists{/gist_id}","starred_url":"https://api.github.com/users/rpherbig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rpherbig/subscriptions","organizations_url":"https://api.github.com/users/rpherbig/orgs","repos_url":"https://api.github.com/users/rpherbig/repos","events_url":"https://api.github.com/users/rpherbig/events{/privacy}","received_events_url":"https://api.github.com/users/rpherbig/received_events","type":"User","site_admin":false},"body":"How long does this wait typically take? Are you ok not taking any other actions in the meantime?\r\n\r\nSince you've released the currently casting spell and inserted consume flesh (you should also insert a custom cast message), an alternative would be to exit the Process here and let SpellProcess take over the spellcasting. That would let other actions be taken while you wait for the spell to prep.","created_at":"2016-08-09T00:22:19Z","updated_at":"2016-08-09T00:22:19Z","html_url":"https://github.com/rpherbig/dr-scripts/pull/570#discussion_r73980237","pull_request_url":"https://api.github.com/repos/rpherbig/dr-scripts/pulls/570","_links":{"self":{"href":"https://api.github.com/repos/rpherbig/dr-scripts/pulls/comments/73980237"},"html":{"href":"https://github.com/rpherbig/dr-scripts/pull/570#discussion_r73980237"},"pull_request":{"href":"https://api.github.com/repos/rpherbig/dr-scripts/pulls/570"}}},"pull_request":{"url":"https://api.github.com/repos/rpherbig/dr-scripts/pulls/570","id":79592003,"html_url":"https://github.com/rpherbig/dr-scripts/pull/570","diff_url":"https://github.com/rpherbig/dr-scripts/pull/570.diff","patch_url":"https://github.com/rpherbig/dr-scripts/pull/570.patch","issue_url":"https://api.github.com/repos/rpherbig/dr-scripts/issues/570","number":570,"state":"open","locked":false,"title":"Necromancer Healing in Combat-Trainer","user":{"login":"jandersson","id":606225,"avatar_url":"https://avatars.githubusercontent.com/u/606225?v=3","gravatar_id":"","url":"https://api.github.com/users/jandersson","html_url":"https://github.com/jandersson","followers_url":"https://api.github.com/users/jandersson/followers","following_url":"https://api.github.com/users/jandersson/following{/other_user}","gists_url":"https://api.github.com/users/jandersson/gists{/gist_id}","starred_url":"https://api.github.com/users/jandersson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jandersson/subscriptions","organizations_url":"https://api.github.com/users/jandersson/orgs","repos_url":"https://api.github.com/users/jandersson/repos","events_url":"https://api.github.com/users/jandersson/events{/privacy}","received_events_url":"https://api.github.com/users/jandersson/received_events","type":"User","site_admin":false},"body":"This is a draft of a working healing implementation. Would appreciate any feedback on how to improve. I copied a lot of the logic from HealMe.lic. I'm going to fill out the rest of the severity hash, update the vitality list, deal with nerve damage, and try to make the spellcasting logic more robust. I'm concerned the check_wounds method is in the wrong process (should I try to move it to safety process?).","created_at":"2016-08-01T15:55:19Z","updated_at":"2016-08-09T00:22:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2e7075f5a14396ab8185ec7221342be1e1e714d1","assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/rpherbig/dr-scripts/milestones/6","html_url":"https://github.com/rpherbig/dr-scripts/milestones/v7","labels_url":"https://api.github.com/repos/rpherbig/dr-scripts/milestones/6/labels","id":1794395,"number":6,"title":"v7","description":"","creator":{"login":"rpherbig","id":1181607,"avatar_url":"https://avatars.githubusercontent.com/u/1181607?v=3","gravatar_id":"","url":"https://api.github.com/users/rpherbig","html_url":"https://github.com/rpherbig","followers_url":"https://api.github.com/users/rpherbig/followers","following_url":"https://api.github.com/users/rpherbig/following{/other_user}","gists_url":"https://api.github.com/users/rpherbig/gists{/gist_id}","starred_url":"https://api.github.com/users/rpherbig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rpherbig/subscriptions","organizations_url":"https://api.github.com/users/rpherbig/orgs","repos_url":"https://api.github.com/users/rpherbig/repos","events_url":"https://api.github.com/users/rpherbig/events{/privacy}","received_events_url":"https://api.github.com/users/rpherbig/received_events","type":"User","site_admin":false},"open_issues":80,"closed_issues":2,"state":"open","created_at":"2016-05-29T11:36:30Z","updated_at":"2016-08-09T00:05:07Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/rpherbig/dr-scripts/pulls/570/commits","review_comments_url":"https://api.github.com/repos/rpherbig/dr-scripts/pulls/570/comments","review_comment_url":"https://api.github.com/repos/rpherbig/dr-scripts/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rpherbig/dr-scripts/issues/570/comments","statuses_url":"https://api.github.com/repos/rpherbig/dr-scripts/statuses/f9d1583dea2d8b5ef565454d50da0a8c10b74d60","head":{"label":"jandersson:necro_heal","ref":"necro_heal","sha":"f9d1583dea2d8b5ef565454d50da0a8c10b74d60","user":{"login":"jandersson","id":606225,"avatar_url":"https://avatars.githubusercontent.com/u/606225?v=3","gravatar_id":"","url":"https://api.github.com/users/jandersson","html_url":"https://github.com/jandersson","followers_url":"https://api.github.com/users/jandersson/followers","following_url":"https://api.github.com/users/jandersson/following{/other_user}","gists_url":"https://api.github.com/users/jandersson/gists{/gist_id}","starred_url":"https://api.github.com/users/jandersson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jandersson/subscriptions","organizations_url":"https://api.github.com/users/jandersson/orgs","repos_url":"https://api.github.com/users/jandersson/repos","events_url":"https://api.github.com/users/jandersson/events{/privacy}","received_events_url":"https://api.github.com/users/jandersson/received_events","type":"User","site_admin":false},"repo":{"id":61384122,"name":"dr-scripts","full_name":"jandersson/dr-scripts","owner":{"login":"jandersson","id":606225,"avatar_url":"https://avatars.githubusercontent.com/u/606225?v=3","gravatar_id":"","url":"https://api.github.com/users/jandersson","html_url":"https://github.com/jandersson","followers_url":"https://api.github.com/users/jandersson/followers","following_url":"https://api.github.com/users/jandersson/following{/other_user}","gists_url":"https://api.github.com/users/jandersson/gists{/gist_id}","starred_url":"https://api.github.com/users/jandersson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jandersson/subscriptions","organizations_url":"https://api.github.com/users/jandersson/orgs","repos_url":"https://api.github.com/users/jandersson/repos","events_url":"https://api.github.com/users/jandersson/events{/privacy}","received_events_url":"https://api.github.com/users/jandersson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jandersson/dr-scripts","description":"A series of Lich (https://lichproject.org/) scripts for use in DragonRealms (http://www.play.net/dr/).","fork":true,"url":"https://api.github.com/repos/jandersson/dr-scripts","forks_url":"https://api.github.com/repos/jandersson/dr-scripts/forks","keys_url":"https://api.github.com/repos/jandersson/dr-scripts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jandersson/dr-scripts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jandersson/dr-scripts/teams","hooks_url":"https://api.github.com/repos/jandersson/dr-scripts/hooks","issue_events_url":"https://api.github.com/repos/jandersson/dr-scripts/issues/events{/number}","events_url":"https://api.github.com/repos/jandersson/dr-scripts/events","assignees_url":"https://api.github.com/repos/jandersson/dr-scripts/assignees{/user}","branches_url":"https://api.github.com/repos/jandersson/dr-scripts/branches{/branch}","tags_url":"https://api.github.com/repos/jandersson/dr-scripts/tags","blobs_url":"https://api.github.com/repos/jandersson/dr-scripts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jandersson/dr-scripts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jandersson/dr-scripts/git/refs{/sha}","trees_url":"https://api.github.com/repos/jandersson/dr-scripts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jandersson/dr-scripts/statuses/{sha}","languages_url":"https://api.github.com/repos/jandersson/dr-scripts/languages","stargazers_url":"https://api.github.com/repos/jandersson/dr-scripts/stargazers","contributors_url":"https://api.github.com/repos/jandersson/dr-scripts/contributors","subscribers_url":"https://api.github.com/repos/jandersson/dr-scripts/subscribers","subscription_url":"https://api.github.com/repos/jandersson/dr-scripts/subscription","commits_url":"https://api.github.com/repos/jandersson/dr-scripts/commits{/sha}","git_commits_url":"https://api.github.com/repos/jandersson/dr-scripts/git/commits{/sha}","comments_url":"https://api.github.com/repos/jandersson/dr-scripts/comments{/number}","issue_comment_url":"https://api.github.com/repos/jandersson/dr-scripts/issues/comments{/number}","contents_url":"https://api.github.com/repos/jandersson/dr-scripts/contents/{+path}","compare_url":"https://api.github.com/repos/jandersson/dr-scripts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jandersson/dr-scripts/merges","archive_url":"https://api.github.com/repos/jandersson/dr-scripts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jandersson/dr-scripts/downloads","issues_url":"https://api.github.com/repos/jandersson/dr-scripts/issues{/number}","pulls_url":"https://api.github.com/repos/jandersson/dr-scripts/pulls{/number}","milestones_url":"https://api.github.com/repos/jandersson/dr-scripts/milestones{/number}","notifications_url":"https://api.github.com/repos/jandersson/dr-scripts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jandersson/dr-scripts/labels{/name}","releases_url":"https://api.github.com/repos/jandersson/dr-scripts/releases{/id}","deployments_url":"https://api.github.com/repos/jandersson/dr-scripts/deployments","created_at":"2016-06-17T15:35:12Z","updated_at":"2016-06-17T15:35:13Z","pushed_at":"2016-08-08T23:59:11Z","git_url":"git://github.com/jandersson/dr-scripts.git","ssh_url":"git@github.com:jandersson/dr-scripts.git","clone_url":"https://github.com/jandersson/dr-scripts.git","svn_url":"https://github.com/jandersson/dr-scripts","homepage":"","size":3106,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"rpherbig:master","ref":"master","sha":"5f42bda8840137feaba386ff2611d5e919c1dbf4","user":{"login":"rpherbig","id":1181607,"avatar_url":"https://avatars.githubusercontent.com/u/1181607?v=3","gravatar_id":"","url":"https://api.github.com/users/rpherbig","html_url":"https://github.com/rpherbig","followers_url":"https://api.github.com/users/rpherbig/followers","following_url":"https://api.github.com/users/rpherbig/following{/other_user}","gists_url":"https://api.github.com/users/rpherbig/gists{/gist_id}","starred_url":"https://api.github.com/users/rpherbig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rpherbig/subscriptions","organizations_url":"https://api.github.com/users/rpherbig/orgs","repos_url":"https://api.github.com/users/rpherbig/repos","events_url":"https://api.github.com/users/rpherbig/events{/privacy}","received_events_url":"https://api.github.com/users/rpherbig/received_events","type":"User","site_admin":false},"repo":{"id":44390324,"name":"dr-scripts","full_name":"rpherbig/dr-scripts","owner":{"login":"rpherbig","id":1181607,"avatar_url":"https://avatars.githubusercontent.com/u/1181607?v=3","gravatar_id":"","url":"https://api.github.com/users/rpherbig","html_url":"https://github.com/rpherbig","followers_url":"https://api.github.com/users/rpherbig/followers","following_url":"https://api.github.com/users/rpherbig/following{/other_user}","gists_url":"https://api.github.com/users/rpherbig/gists{/gist_id}","starred_url":"https://api.github.com/users/rpherbig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rpherbig/subscriptions","organizations_url":"https://api.github.com/users/rpherbig/orgs","repos_url":"https://api.github.com/users/rpherbig/repos","events_url":"https://api.github.com/users/rpherbig/events{/privacy}","received_events_url":"https://api.github.com/users/rpherbig/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rpherbig/dr-scripts","description":"A series of Lich (https://lichproject.org/) scripts for use in DragonRealms (http://www.play.net/dr/).","fork":false,"url":"https://api.github.com/repos/rpherbig/dr-scripts","forks_url":"https://api.github.com/repos/rpherbig/dr-scripts/forks","keys_url":"https://api.github.com/repos/rpherbig/dr-scripts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rpherbig/dr-scripts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rpherbig/dr-scripts/teams","hooks_url":"https://api.github.com/repos/rpherbig/dr-scripts/hooks","issue_events_url":"https://api.github.com/repos/rpherbig/dr-scripts/issues/events{/number}","events_url":"https://api.github.com/repos/rpherbig/dr-scripts/events","assignees_url":"https://api.github.com/repos/rpherbig/dr-scripts/assignees{/user}","branches_url":"https://api.github.com/repos/rpherbig/dr-scripts/branches{/branch}","tags_url":"https://api.github.com/repos/rpherbig/dr-scripts/tags","blobs_url":"https://api.github.com/repos/rpherbig/dr-scripts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rpherbig/dr-scripts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rpherbig/dr-scripts/git/refs{/sha}","trees_url":"https://api.github.com/repos/rpherbig/dr-scripts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rpherbig/dr-scripts/statuses/{sha}","languages_url":"https://api.github.com/repos/rpherbig/dr-scripts/languages","stargazers_url":"https://api.github.com/repos/rpherbig/dr-scripts/stargazers","contributors_url":"https://api.github.com/repos/rpherbig/dr-scripts/contributors","subscribers_url":"https://api.github.com/repos/rpherbig/dr-scripts/subscribers","subscription_url":"https://api.github.com/repos/rpherbig/dr-scripts/subscription","commits_url":"https://api.github.com/repos/rpherbig/dr-scripts/commits{/sha}","git_commits_url":"https://api.github.com/repos/rpherbig/dr-scripts/git/commits{/sha}","comments_url":"https://api.github.com/repos/rpherbig/dr-scripts/comments{/number}","issue_comment_url":"https://api.github.com/repos/rpherbig/dr-scripts/issues/comments{/number}","contents_url":"https://api.github.com/repos/rpherbig/dr-scripts/contents/{+path}","compare_url":"https://api.github.com/repos/rpherbig/dr-scripts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rpherbig/dr-scripts/merges","archive_url":"https://api.github.com/repos/rpherbig/dr-scripts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rpherbig/dr-scripts/downloads","issues_url":"https://api.github.com/repos/rpherbig/dr-scripts/issues{/number}","pulls_url":"https://api.github.com/repos/rpherbig/dr-scripts/pulls{/number}","milestones_url":"https://api.github.com/repos/rpherbig/dr-scripts/milestones{/number}","notifications_url":"https://api.github.com/repos/rpherbig/dr-scripts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rpherbig/dr-scripts/labels{/name}","releases_url":"https://api.github.com/repos/rpherbig/dr-scripts/releases{/id}","deployments_url":"https://api.github.com/repos/rpherbig/dr-scripts/deployments","created_at":"2015-10-16T14:28:28Z","updated_at":"2016-07-24T17:33:56Z","pushed_at":"2016-08-08T23:59:12Z","git_url":"git://github.com/rpherbig/dr-scripts.git","ssh_url":"git@github.com:rpherbig/dr-scripts.git","clone_url":"https://github.com/rpherbig/dr-scripts.git","svn_url":"https://github.com/rpherbig/dr-scripts","homepage":"","size":3210,"stargazers_count":9,"watchers_count":9,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":137,"forks":10,"open_issues":137,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rpherbig/dr-scripts/pulls/570"},"html":{"href":"https://github.com/rpherbig/dr-scripts/pull/570"},"issue":{"href":"https://api.github.com/repos/rpherbig/dr-scripts/issues/570"},"comments":{"href":"https://api.github.com/repos/rpherbig/dr-scripts/issues/570/comments"},"review_comments":{"href":"https://api.github.com/repos/rpherbig/dr-scripts/pulls/570/comments"},"review_comment":{"href":"https://api.github.com/repos/rpherbig/dr-scripts/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rpherbig/dr-scripts/pulls/570/commits"},"statuses":{"href":"https://api.github.com/repos/rpherbig/dr-scripts/statuses/f9d1583dea2d8b5ef565454d50da0a8c10b74d60"}}}}
{"actor":{"display_login":"rpherbig"}}