{"comment":{"url":"https://api.github.com/repos/speedis/BrowserQuest/comments/13144094","html_url":"https://github.com/speedis/BrowserQuest/commit/d72a1dee9db8492ac543217699facb023e5d3707#commitcomment-13144094","id":13144094,"user":{"login":"speedis","id":528554,"avatar_url":"https://avatars.githubusercontent.com/u/528554?v=3","gravatar_id":"","url":"https://api.github.com/users/speedis","html_url":"https://github.com/speedis","followers_url":"https://api.github.com/users/speedis/followers","following_url":"https://api.github.com/users/speedis/following{/other_user}","gists_url":"https://api.github.com/users/speedis/gists{/gist_id}","starred_url":"https://api.github.com/users/speedis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/speedis/subscriptions","organizations_url":"https://api.github.com/users/speedis/orgs","repos_url":"https://api.github.com/users/speedis/repos","events_url":"https://api.github.com/users/speedis/events{/privacy}","received_events_url":"https://api.github.com/users/speedis/received_events","type":"User","site_admin":false},"position":null,"line":null,"path":"","commit_id":"d72a1dee9db8492ac543217699facb023e5d3707","created_at":"2015-09-09T19:14:37Z","updated_at":"2015-09-09T19:14:37Z","body":"I believe an easy fix for always having pvp on is to set all \"game.pvpFlag\" to true;\r\n\r\nSo change these lines:\r\nclient/js/main.js:311:                \t    game.pvpFlag = event.shiftKey;\r\nclient/js/main.js:363:            \t    game.pvpFlag = event.shiftKey;\r\nclient/js/main.js:468:                    game.pvpFlag = false;\r\n\r\nTo:\r\nclient/js/main.js:311:                \t    game.pvpFlag = true;\r\nclient/js/main.js:363:            \t    game.pvpFlag = true;\r\nclient/js/main.js:468:                    game.pvpFlag = true;\r\n\r\nI don't have an environment running now to try it out though, but it should hopefully work for you."}}