Remove internal phase comments and format code
Strip all Phase references, TODO/FUTURE roadmap notes, and internal planning comments from the codebase. Run Prettier for consistent formatting across all Java files.
This commit is contained in:
@@ -16,18 +16,17 @@ import java.util.Map;
|
||||
import java.util.Set;
|
||||
import java.util.UUID;
|
||||
import java.util.stream.Collectors;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
import net.minecraft.resources.ResourceKey;
|
||||
import net.minecraft.server.level.ServerPlayer;
|
||||
import net.minecraft.world.entity.player.Player;
|
||||
import net.minecraft.world.level.Level;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
/**
|
||||
* Manages interactive conversations between players and NPCs.
|
||||
* Handles topic availability, dialogue retrieval, conversation state,
|
||||
* cooldowns, refusals, and topic effects.
|
||||
*
|
||||
* Phase 5: Enhanced Conversation System
|
||||
*/
|
||||
public class ConversationManager {
|
||||
|
||||
@@ -344,7 +343,10 @@ public class ConversationManager {
|
||||
}
|
||||
|
||||
// Apply effects for action topics
|
||||
if (speaker.asEntity() instanceof EntityDamsel damsel && NpcTypeHelper.isDamselOnly(speaker.asEntity())) {
|
||||
if (
|
||||
speaker.asEntity() instanceof EntityDamsel damsel &&
|
||||
NpcTypeHelper.isDamselOnly(speaker.asEntity())
|
||||
) {
|
||||
applyTopicEffects(damsel, player, topic);
|
||||
}
|
||||
|
||||
|
||||
@@ -4,7 +4,6 @@ package com.tiedup.remake.dialogue.conversation;
|
||||
* Reasons why an NPC might refuse to engage in conversation.
|
||||
* Each reason has a corresponding dialogue ID for personality-specific responses.
|
||||
*
|
||||
* Phase 5: Enhanced Conversation System
|
||||
*/
|
||||
public enum ConversationRefusalReason {
|
||||
/** No refusal - NPC will talk */
|
||||
|
||||
@@ -9,7 +9,6 @@ import java.util.Set;
|
||||
* Simplified conversation topics for interactive dialogue.
|
||||
* 8 core topics with significant effects, organized in 2 categories.
|
||||
*
|
||||
* Phase 5: Enhanced Conversation System
|
||||
*/
|
||||
public enum ConversationTopic {
|
||||
// === ACTIONS (Always visible) ===
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
package com.tiedup.remake.dialogue.conversation;
|
||||
|
||||
import com.tiedup.remake.core.TiedUpMod;
|
||||
import com.tiedup.remake.v2.BodyRegionV2;
|
||||
import com.tiedup.remake.dialogue.DialogueBridge;
|
||||
import com.tiedup.remake.entities.EntityMaster;
|
||||
import com.tiedup.remake.entities.ai.master.MasterPlaceBlockGoal;
|
||||
@@ -11,6 +10,7 @@ import com.tiedup.remake.items.base.BindVariant;
|
||||
import com.tiedup.remake.network.ModNetwork;
|
||||
import com.tiedup.remake.network.master.PacketOpenPetRequestMenu;
|
||||
import com.tiedup.remake.state.PlayerBindState;
|
||||
import com.tiedup.remake.v2.BodyRegionV2;
|
||||
import net.minecraft.network.chat.Component;
|
||||
import net.minecraft.server.level.ServerPlayer;
|
||||
import net.minecraft.world.item.ItemStack;
|
||||
@@ -58,10 +58,7 @@ public class PetRequestManager {
|
||||
|
||||
// Send packet to open GUI on client
|
||||
ModNetwork.sendToPlayer(
|
||||
new PacketOpenPetRequestMenu(
|
||||
master.getId(),
|
||||
master.getNpcName()
|
||||
),
|
||||
new PacketOpenPetRequestMenu(master.getId(), master.getNpcName()),
|
||||
pet
|
||||
);
|
||||
|
||||
|
||||
@@ -6,7 +6,6 @@ import com.tiedup.remake.personality.PersonalityType;
|
||||
* Represents the effects of a conversation topic on an NPC's state.
|
||||
* Effects are applied with personality modifiers.
|
||||
*
|
||||
* Phase 5: Enhanced Conversation System
|
||||
*/
|
||||
public record TopicEffect(
|
||||
/** Mood change (-20 to +20) */
|
||||
|
||||
Reference in New Issue
Block a user