Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes boris preventing law display on round end #7358

Merged
merged 3 commits into from
Dec 25, 2019

Conversation

Lostlarry
Copy link
Contributor

fixes couple of UI problems with AI

馃啈
bugfix: boris module no longer prevents laws displayn on round end
bugfix: borgs no longer have the PDA verbs
tweak: AI alert UI made look better
/:cl:

@yogstation13-bot yogstation13-bot added the Tweak This PR contains changes to the game. label Dec 18, 2019
@@ -359,7 +359,10 @@
if(aiPlayer.mind)
parts += "<b>[aiPlayer.name]</b> (Played by: <b>[aiPlayer.mind.key]</b>)'s laws [aiPlayer.stat != DEAD ? "at the end of the round" : "when it was <span class='redtext'>deactivated</span>"] were:"
parts += aiPlayer.laws.get_law_list(include_zeroth=TRUE)

else if(aiPlayer.deployed_shell)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
else if(aiPlayer.deployed_shell)
else if(aiPlayer?.deployed_shell?.mind)

Just a tiny improvement, makes it take less code, else if leading into an if is yucky

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aiPlayer will always be reference to object unless the global AI list got fucked up

@alexkar598 alexkar598 merged commit 85fe774 into yogstation13:master Dec 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Tweak This PR contains changes to the game.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants