MCPcopy Create free account
hub / github.com/TurningWheel/Barony / playerKnowsRecipe

Function playerKnowsRecipe

src/interface/interface.cpp:16942–16954  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16940}
16941
16942bool playerKnowsRecipe(const int player, ItemType basePotion, ItemType secondaryPotion, ItemType result)
16943{
16944 for ( auto& entry : clientLearnedAlchemyRecipes[player] )
16945 {
16946 if ( entry.first == result
16947 && ((entry.second.first == basePotion && entry.second.second == secondaryPotion)
16948 || (entry.second.first == secondaryPotion && entry.second.second == basePotion)) )
16949 {
16950 return true;
16951 }
16952 }
16953 return false;
16954}
16955
16956void getInventoryItemAlchemyAnimSlotPos(Frame* slotFrame, Player* player, int itemx, int itemy, int& outPosX, int& outPosY, int yOffset)
16957{

Callers 1

updateAlchemyMenuMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected