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

✨ Stop a moving Citizens NPC when in a conversation #188

Merged
merged 6 commits into from
Feb 21, 2023

Conversation

Alessevan
Copy link
Collaborator

All is in the title.

Minecraft_.1.19.2.-.Multiplayer.3rd-party.Server.2023-02-17.18-32-32.mp4

Signed-off-by: BakaAless <44125445+BakaAless@users.noreply.github.com>
@@ -55,6 +52,9 @@
import rocks.gravili.notquests.paper.structs.variables.VariableDataType;

public class ConversationManager {

public static final Map<Integer, List<UUID>> CONVERSATIONS_IN_PROGRESS = new HashMap<>();
Copy link
Owner

Choose a reason for hiding this comment

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

hmm what this does is not quite clear from the naming (that it stores npc IDs). Also, is it necessary, considering all open conversations are already stored in "openConversations"?

Also make sure not to use static here (or pretty much anywhere in notquests)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Just to easily retrieve all the conversations that involve this NPC: the conversations can have several speakers and it is much more complex to retrieve the one that involves the current NPC.

Signed-off-by: BakaAless <44125445+BakaAless@users.noreply.github.com>
Signed-off-by: BakaAless <44125445+BakaAless@users.noreply.github.com>
Signed-off-by: BakaAless <44125445+BakaAless@users.noreply.github.com>
Signed-off-by: BakaAless <44125445+BakaAless@users.noreply.github.com>
Signed-off-by: BakaAless <44125445+BakaAless@users.noreply.github.com>
@AlessioGr AlessioGr merged commit 1856bc5 into AlessioGr:main Feb 21, 2023
@AlessioGr
Copy link
Owner

Thank you so much for this cool PR again <3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants