Browse Source

Fix empty "Identify all" storyteller flow

pull/8502/head
morfidon 7 days ago
parent
commit
f08ebcd9ce
  1. 36
      Source/stores.cpp

36
Source/stores.cpp

@ -1159,15 +1159,19 @@ void StartStorytellerIdentify()
}
}
if (!idok) {
HasScrollbar = false;
RenderGold = true;
AddSText(20, 1, _("You have nothing to identify."), UiFlags::ColorWhitegold, false);
AddSLine(3);
AddItemListBackButton(/*selectable=*/true);
return;
}
if (!idok) {
HasScrollbar = false;
RenderGold = true;
if (OldActiveStore == TalkID::StorytellerIdentifyAll) {
AddSText(20, 1, _("There are no items to identify."), UiFlags::ColorWhitegold, false);
} else {
AddSText(20, 1, _("You have nothing to identify."), UiFlags::ColorWhitegold, false);
}
AddSLine(3);
AddItemListBackButton(/*selectable=*/true);
return;
}
HasScrollbar = true;
ScrollPos = 0;
@ -1919,13 +1923,13 @@ void StorytellerEnter()
}
}
void StorytellerIdentifyEnter()
{
if (CurrentTextLine == BackButtonLine()) {
StartStore(TalkID::Storyteller);
CurrentTextLine = 14;
return;
}
void StorytellerIdentifyEnter()
{
if (CurrentTextLine == BackButtonLine()) {
StartStore(TalkID::Storyteller);
CurrentTextLine = OldActiveStore == TalkID::StorytellerIdentifyAll ? 16 : 14;
return;
}
OldActiveStore = TalkID::StorytellerIdentify;
OldTextLine = CurrentTextLine;

Loading…
Cancel
Save