#### Back to Server.Engines.Craft

## CraftSystem

#### Derived Types: DefAlchemy, DefBlacksmithy, DefBowFletching, DefCarpentry, DefCartography, DefCooking, DefGlassblowing, DefInscription, DefMasonry, DefTailoring, DefTinkering

(ctor) CraftSystem( int minCraftEffect, int maxCraftEffect, double delay )
bool CanEnhance( get; set; )
CraftGroupCol CraftGroups( get; )
CraftItemCol CraftItems( get; )
CraftSubResCol CraftSubRes( get; )
CraftSubResCol CraftSubRes2( get; )
double Delay( get; )
CraftECA ECA( get; )
int GumpTitleNumber( get; )
string GumpTitleString( get; )
SkillName MainSkill( get; )
bool MarkOption( get; set; )
int MaxCraftEffect( get; )
int MinCraftEffect( get; )
bool Repair( get; set; )
bool Resmelt( get; set; )
int AddCraft( Type typeItem, TextDefinition group, TextDefinition name, double minSkill, double maxSkill, Type typeRes, TextDefinition nameRes, int amount )
int AddCraft( Type typeItem, TextDefinition group, TextDefinition name, double minSkill, double maxSkill, Type typeRes, TextDefinition nameRes, int amount, TextDefinition message )
int AddCraft( Type typeItem, TextDefinition group, TextDefinition name, SkillName skillToMake, double minSkill, double maxSkill, Type typeRes, TextDefinition nameRes, int amount )
int AddCraft( Type typeItem, TextDefinition group, TextDefinition name, SkillName skillToMake, double minSkill, double maxSkill, Type typeRes, TextDefinition nameRes, int amount, TextDefinition message )
void AddRecipe( int index, int id )
void AddRes( int index, Type type, TextDefinition name, int amount )
void AddRes( int index, Type type, TextDefinition name, int amount, TextDefinition message )
void AddSkill( int index, SkillName skillToMake, double minSkill, double maxSkill )
void AddSubRes( Type type, int name, double reqSkill, object message )
void AddSubRes( Type type, string name, double reqSkill, object message )
void AddSubRes( Type type, int name, double reqSkill, int genericName, object message )
void AddSubRes2( Type type, int name, double reqSkill, object message )
void AddSubRes2( Type type, string name, double reqSkill, object message )
void AddSubRes2( Type type, int name, double reqSkill, int genericName, object message )
virtual int CanCraft( Mobile from, BaseTool tool, Type itemType )
virtual bool ConsumeOnFailure( Mobile from, Type resourceType, CraftItem craftItem )
void CreateItem( Mobile from, Type type, Type typeRes, BaseTool tool, CraftItem realCraftItem )
void DoGroup( TextDefinition groupName, CraftItem craftItem )
void ForceNonExceptional( int index )
virtual double GetChanceAtMin( CraftItem item )
CraftContext GetContext( Mobile m )
virtual void InitCraftList()
void OnMade( Mobile m, CraftItem item )
virtual void PlayCraftEffect( Mobile from )
virtual int PlayEndingEffect( Mobile from, bool failed, bool lostMaterial, bool toolBroken, int quality, bool makersMark, CraftItem item )
virtual bool RetainsColorFrom( CraftItem item, Type type )
void SetHitsReq( int index, int hits )
void SetManaReq( int index, int mana )
void SetNeededExpansion( int index, Expansion expansion )
void SetNeedHeat( int index, bool needHeat )
void SetNeedMill( int index, bool needMill )
void SetNeedOven( int index, bool needOven )
void SetStamReq( int index, int stam )
void SetSubRes( Type type, string name )
void SetSubRes( Type type, int name )
void SetSubRes2( Type type, string name )
void SetSubRes2( Type type, int name )
void SetUseAllRes( int index, bool useAll )
void SetUseSubRes2( int index, bool val )