Skip to content

Ajout du milestone des rêves#1143

Draft
gab4000 wants to merge 13 commits intoServerOpenMC:masterfrom
gab4000:feat/dream_milestone
Draft

Ajout du milestone des rêves#1143
gab4000 wants to merge 13 commits intoServerOpenMC:masterfrom
gab4000:feat/dream_milestone

Conversation

@gab4000
Copy link
Copy Markdown
Contributor

@gab4000 gab4000 commented Feb 10, 2026

Petit résumé de la PR:

Ajout de la milestone des rêves (merci rylo pour la structure)

Étape nécessaire afin que la PR soit fini (si PR en draft)

  • Suivre le Code de Conduite
  • Enlever tous les imports non utilisés
  • Bien documenter la feature
  • Fournir un profileur (si besoin/demandé par un admin)
  • Avoir une milestone associée à la PR
  • Valider tout les checks
  • Tester et valider la feature/changement
  • Les Issues corrigée(s) en commun : Aucune

Decrivez vos changements

@gab4000 gab4000 marked this pull request as draft February 10, 2026 10:54
gab4000 and others added 4 commits February 10, 2026 11:54
# Conflicts:
#	src/main/java/fr/openmc/core/OMCPlugin.java
#	src/main/java/fr/openmc/core/features/milestones/MilestoneModel.java
#	src/main/java/fr/openmc/core/features/milestones/MilestoneType.java
#	src/main/java/fr/openmc/core/features/milestones/MilestoneUtils.java
#	src/main/java/fr/openmc/core/features/milestones/MilestonesManager.java
#	src/main/java/fr/openmc/core/features/milestones/menus/MainMilestonesMenu.java
#	src/main/java/fr/openmc/core/features/milestones/menus/MilestoneMenu.java
#	src/main/java/fr/openmc/core/features/milestones/tutorial/quests/BreakAyweniteQuest.java
#	src/main/java/fr/openmc/core/features/milestones/tutorial/quests/CityCreateQuest.java
#	src/main/java/fr/openmc/core/features/milestones/tutorial/quests/CityLevelTwoQuest.java
#	src/main/java/fr/openmc/core/features/milestones/tutorial/quests/ClaimLetterQuest.java
#	src/main/java/fr/openmc/core/features/milestones/tutorial/quests/FinishQuestQuest.java
#	src/main/java/fr/openmc/core/features/milestones/tutorial/quests/HomeCreateQuest.java
#	src/main/java/fr/openmc/core/features/milestones/tutorial/quests/HomeUpgradeQuest.java
#	src/main/java/fr/openmc/core/features/milestones/tutorial/quests/OpenAdminShopMenuQuest.java
#	src/main/java/fr/openmc/core/features/milestones/tutorial/quests/OpenContestMenuQuest.java
#	src/main/java/fr/openmc/core/features/milestones/tutorial/quests/OpenQuestMenuQuest.java
#	src/main/java/fr/openmc/core/features/milestones/tutorial/quests/OpenSettingsMenuQuest.java
#	src/main/java/fr/openmc/core/features/milestones/tutorial/quests/SellBuyQuest.java
#	src/main/java/fr/openmc/core/features/milestones/tutorial/quests/SpareBankQuest.java
#	src/main/java/fr/openmc/core/features/quests/objects/Quest.java
@iambibi
Copy link
Copy Markdown
Member

iambibi commented Feb 15, 2026

#1036
todo: voir si cette pr fix ce bug la avec la quete du tuto d'aywenite (voir MilestoneModel ajout de progress)

@iambibi iambibi added this to the 2.2.8 milestone Feb 15, 2026
@iambibi iambibi added the 📦 Feature Ajout d'une fonctionnalité label Feb 15, 2026
@gab4000
Copy link
Copy Markdown
Contributor Author

gab4000 commented Feb 16, 2026

#1036
todo: voir si cette pr fix ce bug la avec la quete du tuto d'aywenite (voir MilestoneModel ajout de progress)

Normalement oui

--global and others added 5 commits February 16, 2026 13:06
# Conflicts:
#	src/main/java/fr/openmc/core/OMCPlugin.java
#	src/main/java/fr/openmc/core/features/dream/DreamManager.java
#	src/main/java/fr/openmc/core/features/dream/listeners/dream/PlayerSleepListener.java
#	src/main/java/fr/openmc/core/features/dream/models/registry/items/DreamItem.java
#	src/main/java/fr/openmc/core/features/dream/registries/items/armors/dream/DreamBoots.java
#	src/main/java/fr/openmc/core/features/dream/registries/items/armors/dream/DreamChestplate.java
#	src/main/java/fr/openmc/core/features/dream/registries/items/armors/dream/DreamHelmet.java
#	src/main/java/fr/openmc/core/features/dream/registries/items/armors/dream/DreamLeggings.java
@gab4000
Copy link
Copy Markdown
Contributor Author

gab4000 commented Mar 19, 2026

Je pense refaire une PR pour cette feature afin de la merge dans v2.5 et pas master, vous êtes d'accord ?

@iambibi
Copy link
Copy Markdown
Member

iambibi commented Mar 19, 2026

Non, inutile la branche va être delete bientôt

@gab4000
Copy link
Copy Markdown
Contributor Author

gab4000 commented Mar 19, 2026

A bon ? Pk ?

@iambibi
Copy link
Copy Markdown
Member

iambibi commented Mar 19, 2026

J'ai pas a répondre à cette question ici

@iambibi
Copy link
Copy Markdown
Member

iambibi commented Mar 19, 2026

Puis si tu fais ça tu te suicides tout seul (le nombre de conflit va te détruire

@iambibi
Copy link
Copy Markdown
Member

iambibi commented Mar 20, 2026

PR ne devra pas passer ces components en #1161.
Je le ferais lorsque je traduirais toute la dimension des reves

@gab4000 gab4000 changed the title Ajout de la milestone des rêves Ajout du milestone des rêves Mar 23, 2026
@iambibi iambibi modified the milestones: 2.2.9, 2.2.10 Mar 26, 2026

if (hasEnoughSpace) {
reward.giveReward(player);
System.out.println(reward);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

print

player.playSound(player.getLocation(), Sound.ENTITY_PLAYER_LEVELUP, 1.0F, 1.2F);
player.playSound(player.getLocation(), Sound.UI_TOAST_CHALLENGE_COMPLETE, 0.7F, 1.1F);
MessagesManager.sendMessage(player, Component.text(message), Prefix.QUEST, MessageType.SUCCESS, true);
System.out.println("title");
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

print

return;
}
if (clickInPlayerInv) return;
if (clickInPlayerInv) return; // Laisser
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

? pourquoi // laisser?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

A vrai dire je ne sais plus, peut-être que j'avais prévu de faire un event DropInSingularity ?!


@Override
public String getName() {
return "Tutoriel de la Dream Dim";
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Dream Dim => Dimension des Reves

Comment on lines -56 to +59
if (milestone.getType().equals(MilestoneType.TUTORIAL)) {
inventory.put(10, new ItemBuilder(this, milestone.getIcon(), itemMeta -> {
itemMeta.displayName(Component.text(milestone.getName()));
itemMeta.lore(milestone.getDescription());
itemMeta.setEnchantmentGlintOverride(MilestonesManager.getPlayerStep(milestone.getType(), player) + 1 >= milestone.getSteps().size());
}).setOnClick(event -> {
milestone.getMenu(player).open();
}));
}
inventory.put(10 + (milestone.getType().ordinal() * 2), new ItemBuilder(this, milestone.getIcon(), itemMeta -> {
itemMeta.displayName(Component.text(milestone.getName()));
itemMeta.lore(milestone.getDescription());
itemMeta.setEnchantmentGlintOverride(MilestonesManager.getPlayerStep(milestone.getType(), player) + 1 >= milestone.getSteps().size());
}).setOnClick(event -> milestone.getMenu(player).open()));
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Pourquoi, en sachant que ça va dépasser a un moment ou un autre

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

  • tu laisses les boutons en dessous

import java.util.ArrayList;
import java.util.List;

public class MilestoneDialog {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Innutile d'appeller ça MilestoneDialog si ça peut etre utiliser que par le milestone des reves...

@@ -16,6 +19,11 @@ public class MilestoneQuest extends Quest {
protected final Enum step;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

evite de mettre Enum tt seul, ou sinon mets //TODO: a fix dans #1209

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Comment ça ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Faut mettre un type indéfini ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

📦 Feature Ajout d'une fonctionnalité

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants