|
|
|
@ -86,17 +86,17 @@ void Monster::STRATEGY::NPC(Monster&m,float fElapsedTime,std::string strategy){ |
|
|
|
|
Menu::OpenMenu(MenuType::MERCHANT); |
|
|
|
|
}else |
|
|
|
|
if(m.npcData.function=="Artificer"){ |
|
|
|
|
bool locked=!Unlock::IsUnlocked("NPCs.Artificer.Enchant Crafting Unlock Condition"_S); |
|
|
|
|
std::string enchantButtonLabel="Enchant"; |
|
|
|
|
if(locked)enchantButtonLabel="???"; |
|
|
|
|
Component<MenuComponent>(ARTIFICER,"Enchant Button")->SetGrayedOut(locked); |
|
|
|
|
Component<MenuComponent>(ARTIFICER,"Enchant Button")->SetLabel(enchantButtonLabel); |
|
|
|
|
|
|
|
|
|
if(!Tutorial::TaskIsComplete(TutorialTaskName::ARTIFICER_INTRO)){ |
|
|
|
|
Tutorial::CompleteTask(TutorialTaskName::ARTIFICER_INTRO); |
|
|
|
|
VisualNovel::LoadDialog("ARTIFICER_INTRO",[](){Menu::OpenMenu(MenuType::ARTIFICER);}); |
|
|
|
|
}else{ |
|
|
|
|
Menu::OpenMenu(MenuType::ARTIFICER); |
|
|
|
|
|
|
|
|
|
bool locked=!Unlock::IsUnlocked("NPCs.Artificer.Enchant Crafting Unlock Condition"_S); |
|
|
|
|
std::string enchantButtonLabel="Enchant"; |
|
|
|
|
if(locked)enchantButtonLabel="???"; |
|
|
|
|
Component<MenuComponent>(ARTIFICER,"Enchant Button")->SetGrayedOut(locked); |
|
|
|
|
Component<MenuComponent>(ARTIFICER,"Enchant Button")->SetLabel(enchantButtonLabel); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|