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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: making players invulnerable before game round starts #250

Merged
merged 1 commit into from
Nov 29, 2021

Conversation

ujjman
Copy link
Member

@ujjman ujjman commented Nov 21, 2021

This PR adds InvulnerableComponent to the players before the match to prevent the players from accidentally dying or killing each other before the actual game rounds start

This PR fixes the NPE when player dies on fool's platform either by getting killed by other player or by falling because this PR adds `InvulnerableComponent` to the player as soon as it gets spawned
Copy link
Member

@jdrueckert jdrueckert left a comment

Choose a reason for hiding this comment

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

Please note, that this PR is not actually fixing the NPE. It only results in the side effect that players won't die and, thus, won't run into the NPE situation. This is an important difference.

So please adjust the PR title and description to reflect that this PR is about making players invulnerable before the game actually starts to avoid players killing each other or accidentally dying before the start of an LaS round.

@ujjman ujjman changed the title fix: fixes NPE when player dies on fool's platform making players invulnerable before game round starts Nov 21, 2021
@jdrueckert jdrueckert changed the title making players invulnerable before game round starts feat: making players invulnerable before game round starts Nov 21, 2021
@jdrueckert jdrueckert added Category: Gameplay Content Requests, Issues and Changes targeting gameplay mechanics and content Good First Issue Good for learners that are new to Terasology Size: S Small effort likely only affecting a single area and requiring little to no research Status: Needs Testing Requires to be tested in-game Type: Improvement Request for or addition/enhancement of a feature labels Nov 21, 2021
Copy link
Member

@jdrueckert jdrueckert left a comment

Choose a reason for hiding this comment

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

Approved "code"-wise, but this still needs testing which unfortunately I cannot do at the moment.

Copy link
Member

@jdrueckert jdrueckert left a comment

Choose a reason for hiding this comment

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

Tests out fine 👍

@jdrueckert jdrueckert merged commit 81897b2 into develop Nov 29, 2021
@jdrueckert jdrueckert deleted the fix/fix-NPE branch November 29, 2021 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Gameplay Content Requests, Issues and Changes targeting gameplay mechanics and content Good First Issue Good for learners that are new to Terasology Size: S Small effort likely only affecting a single area and requiring little to no research Status: Needs Testing Requires to be tested in-game Type: Improvement Request for or addition/enhancement of a feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants