fix for dupe addition to recipes
This commit is contained in:
parent
bf6f1dc812
commit
e9b696064f
1 changed files with 7 additions and 7 deletions
|
|
@ -3738,18 +3738,18 @@ namespace Server.Mobiles
|
|||
return false;
|
||||
}
|
||||
|
||||
public virtual void AcquireRecipe( Recipe r )
|
||||
{
|
||||
if( r != null )
|
||||
AcquireRecipe( r.ID );
|
||||
}
|
||||
|
||||
public virtual void AcquireRecipe( int recipeID )
|
||||
{
|
||||
if( m_AcquiredRecipes == null )
|
||||
m_AcquiredRecipes = new Dictionary<int, bool>();
|
||||
|
||||
m_AcquiredRecipes.Add( recipeID, true );
|
||||
}
|
||||
|
||||
public virtual void AcquireRecipe( Recipe r )
|
||||
{
|
||||
if( r != null )
|
||||
AcquireRecipe( r.ID );
|
||||
m_AcquiredRecipes[recipeID] = true;
|
||||
}
|
||||
|
||||
public virtual void ResetRecipes()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue