{"action":"opened","issue":{"url":"https://api.github.com/repos/LoneGazebo/Community-Patch-DLL/issues/4776","repository_url":"https://api.github.com/repos/LoneGazebo/Community-Patch-DLL","labels_url":"https://api.github.com/repos/LoneGazebo/Community-Patch-DLL/issues/4776/labels{/name}","comments_url":"https://api.github.com/repos/LoneGazebo/Community-Patch-DLL/issues/4776/comments","events_url":"https://api.github.com/repos/LoneGazebo/Community-Patch-DLL/issues/4776/events","html_url":"https://github.com/LoneGazebo/Community-Patch-DLL/issues/4776","id":365146525,"node_id":"MDU6SXNzdWUzNjUxNDY1MjU=","number":4776,"title":"GameEvent.PlayerCanPropose on Enacted Sphere of Influences and Enacted Open Doors","user":{"login":"TechpriestEnginseer","id":13937047,"node_id":"MDQ6VXNlcjEzOTM3MDQ3","avatar_url":"https://avatars2.githubusercontent.com/u/13937047?v=4","gravatar_id":"","url":"https://api.github.com/users/TechpriestEnginseer","html_url":"https://github.com/TechpriestEnginseer","followers_url":"https://api.github.com/users/TechpriestEnginseer/followers","following_url":"https://api.github.com/users/TechpriestEnginseer/following{/other_user}","gists_url":"https://api.github.com/users/TechpriestEnginseer/gists{/gist_id}","starred_url":"https://api.github.com/users/TechpriestEnginseer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TechpriestEnginseer/subscriptions","organizations_url":"https://api.github.com/users/TechpriestEnginseer/orgs","repos_url":"https://api.github.com/users/TechpriestEnginseer/repos","events_url":"https://api.github.com/users/TechpriestEnginseer/events{/privacy}","received_events_url":"https://api.github.com/users/TechpriestEnginseer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-29T16:32:03Z","updated_at":"2018-09-29T16:32:03Z","closed_at":null,"author_association":"COLLABORATOR","body":"After doing a few more print tests, I've noticed that these two resolutions are \"picked up\" in being unable to be restricted once they are enacted.\r\n\r\n````\r\nfunction Nonono(iPlayer, iResolution, iChoice, bEnact)\r\n\tif iResolution == GameInfoTypes.RESOLUTION_SPHERE_OF_INFLUENCE then\r\n\t\treturn false\r\n\tend\r\n\treturn true \r\nend\r\n\r\nfunction Nonono2(iPlayer, iResolution, iChoice, bEnact)\r\n\tif iResolution == GameInfoTypes.RESOLUTION_OPEN_DOOR then\r\n\t\treturn false\r\n\tend\r\n\treturn true \r\nend\r\n\r\nGameEvents.PlayerCanPropose.Add(Nonono)\r\nGameEvents.PlayerCanPropose.Add(Nonono2)\r\n````\r\nWhen I apply this code, then I should assume that all resolutions of Open Door Policy and Sphere of Influence, whenever enacted or not, should be unable to be proposed.\r\n\r\nBut when testing this simple function, all enacted resolutions of Open Door Policy and Sphere of Influence are still able to be proposed, while the un-enacted versions are unproposable. This lead me to do some testing with PlayerCanPropose and the results were shocking with this code:\r\n\r\n````\r\nfunction Nonono3(iPlayer, iResolution, iChoice, bEnact)\r\n\tprint(\"The iPlayer in question is... \" .. iPlayer)\r\n\tprint(\"The iResolution in question is... \" .. iResolution)\r\n\tprint(\"The iChoice in question is... \" .. iChoice)\r\n\tprint(bEnact)\r\n\treturn true \r\nend\r\n\r\nGameEvents.PlayerCanPropose.Add(Nonono3)\r\n````\r\nThis code should pick up on all possible resolutions and print them out, but when it came to the enacted resolution in question, it never picked them up making me wonder if they exist at all!\r\n"}}
{"actor":{"display_login":"TechpriestEnginseer"}}