All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2008-2016 TrinityCore <>
3  * Copyright (C) 2005-2009 MaNGOS <>
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms of the GNU General Public License as published by the
7  * Free Software Foundation; either version 2 of the License, or (at your
8  * option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful, but WITHOUT
11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13  * more details.
14  *
15  * You should have received a copy of the GNU General Public License along
16  * with this program. If not, see <>.
17  */
22 #include "Common.h"
24 // predef classes used in functions
25 class Player;
27 // returns true and sets the appropriate info if the player can create a perfect item with the given spellId
28 TC_GAME_API bool CanCreatePerfectItem(Player* player, uint32 spellId, float &perfectCreateChance, uint32 &perfectItemType);
29 // load perfection proc info from DB
31 // returns true and sets the appropriate info if the player can create extra items with the given spellId
32 TC_GAME_API bool CanCreateExtraItems(Player* player, uint32 spellId, float &additionalChance, uint8 &additionalMax);
33 // function to load the extra item creation info from DB
36 #endif
TC_GAME_API bool CanCreateExtraItems(Player *player, uint32 spellId, float &additionalChance, uint8 &additionalMax)
Definition: SkillExtraItems.cpp:226
TC_GAME_API void LoadSkillExtraItemTable()
Definition: SkillExtraItems.cpp:139
uint32_t uint32
Definition: Define.h:150
TC_GAME_API void LoadSkillPerfectItemTable()
Definition: SkillExtraItems.cpp:52
TC_GAME_API bool CanCreatePerfectItem(Player *player, uint32 spellId, float &perfectCreateChance, uint32 &perfectItemType)
Definition: SkillExtraItems.cpp:202
#define TC_GAME_API
Definition: Define.h:134
uint8_t uint8
Definition: Define.h:152