Skip to content

Commit

Permalink
Added 'not leave important items' functionality for conversations
Browse files Browse the repository at this point in the history
  • Loading branch information
Pyrdacor committed Apr 14, 2021
1 parent a979553 commit e8d38b2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Ambermoon.Core/Game.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5249,7 +5249,12 @@ void Exit(bool showLeaveMessage = false)
{
if (showLeaveMessage)
{
// TODO: test if there are important items and if so deny and show info message instead
if (createdItems.HasAnyImportantItem(ItemManager))
{
SetText(DataNameProvider.DontForgetItems +
string.Join(", ", createdItems.GetImportantItemNames(ItemManager)) + ".");
return;
}

conversationEvent = GetFirstMatchingEvent(e => e.Interaction == InteractionType.Leave);

Expand Down

0 comments on commit e8d38b2

Please sign in to comment.