Fixes lots more spelling errors (#5)
* Renames constructable to constructible * Fixes project references. * Fixes BaseEquippableLight file name * Replaces payed with paid. * Fixes various other spelling errors
This commit is contained in:
parent
ca4e99c179
commit
20ae1b3989
2195 changed files with 4617 additions and 4617 deletions
|
|
@ -180,16 +180,16 @@ namespace Server.Commands
|
|||
|
||||
private static Type typeofItem = typeof( Item );
|
||||
private static Type typeofMobile = typeof( Mobile );
|
||||
private static Type typeofConstructable = typeof( ConstructableAttribute );
|
||||
private static Type typeofConstructible = typeof( ConstructibleAttribute );
|
||||
|
||||
private static bool IsConstructable( Type type )
|
||||
private static bool IsConstructible( Type type )
|
||||
{
|
||||
if ( !type.IsSubclassOf( typeofItem ) && !type.IsSubclassOf( typeofMobile ) )
|
||||
return false;
|
||||
|
||||
ConstructorInfo ctor = type.GetConstructor( Type.EmptyTypes );
|
||||
|
||||
return ( ctor != null && ctor.IsDefined( typeofConstructable, false ) );
|
||||
return ( ctor != null && ctor.IsDefined( typeofConstructible, false ) );
|
||||
}
|
||||
|
||||
private static void AddTypes( Assembly asm, ArrayList types )
|
||||
|
|
@ -203,7 +203,7 @@ namespace Server.Commands
|
|||
if ( type.IsAbstract )
|
||||
continue;
|
||||
|
||||
if ( IsConstructable( type ) )
|
||||
if ( IsConstructible( type ) )
|
||||
types.Add( type );
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue