do not link Quests that have not been taken on decisions
This commit is contained in:
parent
3fdaa772df
commit
88213c94d2
2 changed files with 26 additions and 2 deletions
|
|
@ -200,11 +200,20 @@
|
|||
|
||||
// Next Quest/Questgroup
|
||||
$nextQuests = null;
|
||||
$charactedHasChoosenNextQuest = false;
|
||||
$nextQuestgroup = null;
|
||||
if($questtexttypeUrl == 'Epilog' || $solved)
|
||||
{
|
||||
// Next Quest
|
||||
$nextQuests = $this->Quests->getNextQuests($quest['id']);
|
||||
foreach($nextQuests as &$nextQuest)
|
||||
{
|
||||
// Set entered status of Quest
|
||||
$nextQuest['entered'] = $this->Quests->hasCharacterEnteredQuest($nextQuest['id'], $character['id']);
|
||||
if($nextQuest['entered']) {
|
||||
$charactedHasChoosenNextQuest = true;
|
||||
}
|
||||
}
|
||||
|
||||
// Next Questgroup
|
||||
if(empty($nextQuests))
|
||||
|
|
@ -233,6 +242,7 @@
|
|||
$this->set('queststatustext', $questStatusText);
|
||||
$this->set('relatedquesttext', $relatedQuesttext);
|
||||
$this->set('nextquests', $nextQuests);
|
||||
$this->set('charactedHasChoosenNextQuest', $charactedHasChoosenNextQuest);
|
||||
$this->set('nextquestgroup', $nextQuestgroup);
|
||||
$this->set('task', $task);
|
||||
$this->set('media', $questmedia);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue