{"action":"closed","issue":{"url":"https://api.github.com/repos/Hyphen-ated/RebirthItemTracker/issues/90","labels_url":"https://api.github.com/repos/Hyphen-ated/RebirthItemTracker/issues/90/labels{/name}","comments_url":"https://api.github.com/repos/Hyphen-ated/RebirthItemTracker/issues/90/comments","events_url":"https://api.github.com/repos/Hyphen-ated/RebirthItemTracker/issues/90/events","html_url":"https://github.com/Hyphen-ated/RebirthItemTracker/issues/90","id":127924620,"number":90,"title":"Add logic to check to see if the player has Black Candle","user":{"login":"Zamiell","id":5511220,"avatar_url":"https://avatars.githubusercontent.com/u/5511220?v=3","gravatar_id":"","url":"https://api.github.com/users/Zamiell","html_url":"https://github.com/Zamiell","followers_url":"https://api.github.com/users/Zamiell/followers","following_url":"https://api.github.com/users/Zamiell/following{/other_user}","gists_url":"https://api.github.com/users/Zamiell/gists{/gist_id}","starred_url":"https://api.github.com/users/Zamiell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zamiell/subscriptions","organizations_url":"https://api.github.com/users/Zamiell/orgs","repos_url":"https://api.github.com/users/Zamiell/repos","events_url":"https://api.github.com/users/Zamiell/events{/privacy}","received_events_url":"https://api.github.com/users/Zamiell/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-21T13:28:57Z","updated_at":"2016-01-22T09:52:29Z","closed_at":"2016-01-22T09:52:29Z","body":"Before assigning a curse to the current floor, there should be a check to see if the player has Black Candle in their inventory. If so, then it should NOT assign a curse.\r\n\r\nThe relevant code is in log_parser.py, line 157:\r\n\r\n```\r\n    def __parse_curse(self, line):\r\n        \"\"\" Parse the curse and add it to the last floor \"\"\"\r\n        if line.startswith(\"Curse of the Labyrinth!\"):\r\n            self.state.add_curse(Curse.Labyrinth)\r\n        if line.startswith(\"Curse of Blind\"):\r\n            self.state.add_curse(Curse.Blind)\r\n        if line.startswith(\"Curse of the Lost!\"):\r\n            self.state.add_curse(Curse.Lost)\r\n```\r\n\r\nFurthermore, if the player picks up Black Candle, it should remove the \"Curse of Blind\" curse state for the current floor if it is present."}}