Dawn of Light - Class documentation 2900
This is the Dawn of Light project
DOL.GS.SpellCrafting Class Reference
Inheritance diagram for DOL.GS.SpellCrafting:
DOL.GS.AdvancedCraftingSkill DOL.GS.AbstractProfession DOL.GS.AbstractCraftingSkill

List of all members.

Public Member Functions

override void GainCraftingSkillPoints (GamePlayer player, DBCraftedItem recipe, IList< DBCraftedXItem > rawMaterials)
 Gain a point in the appropriate skills for a recipe and materials.
override bool IsAllowedToCombine (GamePlayer player, InventoryItem item)
 This function is called when player accept the combine.
virtual void ShowSpellCraftingInfos (GamePlayer player, InventoryItem item)
 Shaw to player all infos about the current spellcraft.

Protected Member Functions

override bool CheckForTools (GamePlayer player, DBCraftedItem recipe, ItemTemplate itemToCraft, IList< DBCraftedXItem > rawMaterials)
 Check if the player is near the needed tools (forge, lathe, etc)
override void ApplyMagicalEffect (GamePlayer player, InventoryItem item)
 Apply all needed magical bonus to the item.
int CalculateChanceToOverchargeItem (GamePlayer player, InventoryItem item, int maxBonusLevel, int bonusLevel)
int GetItemMaxImbuePoints (InventoryItem item)
 Get the maximum bonus level the item can hold.
int GetTotalImbuePoints (GamePlayer player, InventoryItem item)
 Get gems bonus level.
int GetGemImbuePoints (int bonusType, int bonusValue)
 Get how much the gem use like bonus point.
int GetOverchargePenality (int maxBonusLevel, int bonusLevel)
 Get the % overcharge penality.
int CalculateChanceToPreserveItem (GamePlayer player, InventoryItem item, int maxBonusLevel, int bonusLevel)

Properties

override String Profession [get]

Member Function Documentation

override void DOL.GS.SpellCrafting.ApplyMagicalEffect ( GamePlayer  player,
InventoryItem  item 
) [protected, virtual]

Apply all needed magical bonus to the item.

Parameters:
player
item
Returns:

Implements DOL.GS.AdvancedCraftingSkill.

int DOL.GS.SpellCrafting.CalculateChanceToOverchargeItem ( GamePlayer  player,
InventoryItem  item,
int  maxBonusLevel,
int  bonusLevel 
) [protected]

Get the sucess chance to overcharge the item

Parameters:
player
item
maxBonusLevel
bonusLevel
Returns:
int DOL.GS.SpellCrafting.CalculateChanceToPreserveItem ( GamePlayer  player,
InventoryItem  item,
int  maxBonusLevel,
int  bonusLevel 
) [protected]

Get the chance to preserve item while overcharging

Parameters:
player
item
maxBonusLevel
bonusLevel
Returns:
override bool DOL.GS.SpellCrafting.CheckForTools ( GamePlayer  player,
DBCraftedItem  recipe,
ItemTemplate  itemToCraft,
IList< DBCraftedXItem >  rawMaterials 
) [protected, virtual]

Check if the player is near the needed tools (forge, lathe, etc)

Parameters:
playerthe crafting player
recipethe recipe being used
itemToCraftthe item to make
rawMaterialsa list of raw materials needed to create this item
Returns:
true if required tools are found

Reimplemented from DOL.GS.AdvancedCraftingSkill.

override void DOL.GS.SpellCrafting.GainCraftingSkillPoints ( GamePlayer  player,
DBCraftedItem  recipe,
IList< DBCraftedXItem >  rawMaterials 
) [virtual]

Gain a point in the appropriate skills for a recipe and materials.

Reimplemented from DOL.GS.AbstractCraftingSkill.

int DOL.GS.SpellCrafting.GetGemImbuePoints ( int  bonusType,
int  bonusValue 
) [protected]

Get how much the gem use like bonus point.

Parameters:
bonusType
bonusValue
Returns:
int DOL.GS.SpellCrafting.GetItemMaxImbuePoints ( InventoryItem  item) [protected]

Get the maximum bonus level the item can hold.

Parameters:
item
Returns:
int DOL.GS.SpellCrafting.GetOverchargePenality ( int  maxBonusLevel,
int  bonusLevel 
) [protected]

Get the % overcharge penality.

Parameters:
maxBonusLevel
bonusLevel
Returns:
int DOL.GS.SpellCrafting.GetTotalImbuePoints ( GamePlayer  player,
InventoryItem  item 
) [protected]

Get gems bonus level.

Parameters:
playerplayer spellcrafting
itemitem to calculate imbues for
Returns:
override bool DOL.GS.SpellCrafting.IsAllowedToCombine ( GamePlayer  player,
InventoryItem  item 
) [virtual]

This function is called when player accept the combine.

Parameters:
player
item

Reimplemented from DOL.GS.AdvancedCraftingSkill.

virtual void DOL.GS.SpellCrafting.ShowSpellCraftingInfos ( GamePlayer  player,
InventoryItem  item 
) [virtual]

Shaw to player all infos about the current spellcraft.

Parameters:
player
item

The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Enumerations Properties Events