Le quêtes sont désormais bien retirés quand choisis.
This commit is contained in:
parent
9f2e4c1063
commit
838f91ede7
7 changed files with 107 additions and 24 deletions
|
|
@ -24,12 +24,14 @@ namespace Decor.Runtime
|
|||
|
||||
void Awake()
|
||||
{
|
||||
_player = GetFact<PlayerClass>(GameManager.Instance.Profile);
|
||||
//
|
||||
}
|
||||
|
||||
void Start()
|
||||
{
|
||||
// Trigger an initial refresh
|
||||
_player = GetFact<PlayerClass>(GameManager.Instance.Profile);
|
||||
Info($"Player : {_player.GuildName}");
|
||||
|
||||
QuestManager.Instance.NotifyAvailableQuestsUpdated(_player.GuildLevel);
|
||||
UpdateParchmentState();
|
||||
}
|
||||
|
|
@ -72,8 +74,8 @@ namespace Decor.Runtime
|
|||
var allPossibleQuests = QuestManager.Instance.GetAvailableQuests(_player.GuildLevel);
|
||||
|
||||
// 2. Quêtes déjà démarrées (actives OU complétées)
|
||||
var startedQuests = QuestManager.Instance.ActiveQuests
|
||||
.Concat(QuestManager.Instance.CompletedQuests)
|
||||
var startedQuests = (QuestManager.Instance.ActiveQuests ?? new List<QuestClass>())
|
||||
.Concat(QuestManager.Instance.CompletedQuests ?? Enumerable.Empty<QuestClass>())
|
||||
.ToList();
|
||||
|
||||
// 3. Quêtes vraiment disponibles = possibles - déjà démarrées
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue