This commit is contained in:
parent
4386cbac99
commit
71e80d5949
16 changed files with 63 additions and 103 deletions
|
|
@ -39,10 +39,8 @@ namespace Server.Engines.Craft
|
|||
if ( craftItem == null || craftItem.Ressources.Count == 0 )
|
||||
return EnhanceResult.BadItem;
|
||||
|
||||
int quality = 0;
|
||||
bool allRequiredSkills = false;
|
||||
|
||||
if ( !craftItem.CheckSkills( from, resType, craftSystem, ref quality, ref allRequiredSkills, false ) )
|
||||
if( craftItem.GetSuccessChance( from, resType, craftSystem, false, ref allRequiredSkills ) <= 0.0 )
|
||||
return EnhanceResult.NoSkill;
|
||||
|
||||
CraftResourceInfo info = CraftResources.GetInfo( resource );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue