From 09a7717cbebd8c980ca67b5599415e3a7f99247f Mon Sep 17 00:00:00 2001 From: QuietusPlus Date: Sat, 9 Aug 2014 13:10:09 +0200 Subject: [PATCH] Add tag to dark mode items --- base_scripts/game/gui/guiUtils.ws | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/base_scripts/game/gui/guiUtils.ws b/base_scripts/game/gui/guiUtils.ws index 3f502cc..9ccf6b4 100644 --- a/base_scripts/game/gui/guiUtils.ws +++ b/base_scripts/game/gui/guiUtils.ws @@ -85,10 +85,13 @@ import class CGuiUtils extends CObject tagCreatedName = inventory.GetCraftedItemName( tagItemId ); tagCreatedId = inventory.AddItem( StringToName( tagCreatedName ), 1, false ); tagItemCategory = inventory.GetItemCategory( tagCreatedId ); + inventory.GetItemTags( tagCreatedId, tagItemTags ); tagCreatedItem = true; } - if ( tagItemTags.Contains('SortTypeQuest') || tagItemCategory == 'quest') { + if ( tagItemTags.Contains('DarkDiffA1')|| tagItemTags.Contains('DarkDiffA2') || tagItemTags.Contains('DarkDiffA3') ) { + tagLocTag = GetLocStringByKeyExt( "menudifficultyveryhard" ); + } else if ( tagItemTags.Contains('SortTypeQuest') || tagItemCategory == 'quest') { if ( tagItemCategory == 'key' ) { tagLocTag = GetLocStringByKeyExt( "type_key" ); } else {