#W# Source and Scripts added. Added Scripts/Settings.cs to expose some basic tweak able settings.
This commit is contained in:
parent
b51c58f514
commit
3045c83799
3512 changed files with 627673 additions and 0 deletions
79
Scripts/Items/Skill Items/Tools/RunicHammer.cs
Normal file
79
Scripts/Items/Skill Items/Tools/RunicHammer.cs
Normal file
|
|
@ -0,0 +1,79 @@
|
|||
using System;
|
||||
using Server;
|
||||
using Server.Engines.Craft;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
[FlipableAttribute( 0x13E4, 0x13E3 )]
|
||||
public class RunicHammer : BaseRunicTool
|
||||
{
|
||||
public override CraftSystem CraftSystem{ get{ return DefBlacksmithy.CraftSystem; } }
|
||||
|
||||
public override int LabelNumber
|
||||
{
|
||||
get
|
||||
{
|
||||
int index = CraftResources.GetIndex( Resource );
|
||||
|
||||
if ( index >= 1 && index <= 8 )
|
||||
return 1049019 + index;
|
||||
|
||||
return 1045128; // runic smithy hammer
|
||||
}
|
||||
}
|
||||
|
||||
public override void AddNameProperties( ObjectPropertyList list )
|
||||
{
|
||||
base.AddNameProperties( list );
|
||||
|
||||
int index = CraftResources.GetIndex( Resource );
|
||||
|
||||
if ( index >= 1 && index <= 8 )
|
||||
return;
|
||||
|
||||
if ( !CraftResources.IsStandard( Resource ) )
|
||||
{
|
||||
int num = CraftResources.GetLocalizationNumber( Resource );
|
||||
|
||||
if ( num > 0 )
|
||||
list.Add( num );
|
||||
else
|
||||
list.Add( CraftResources.GetName( Resource ) );
|
||||
}
|
||||
}
|
||||
|
||||
[Constructable]
|
||||
public RunicHammer( CraftResource resource ) : base( resource, 0x13E3 )
|
||||
{
|
||||
Weight = 8.0;
|
||||
Layer = Layer.OneHanded;
|
||||
Hue = CraftResources.GetHue( resource );
|
||||
}
|
||||
|
||||
[Constructable]
|
||||
public RunicHammer( CraftResource resource, int uses ) : base( resource, uses, 0x13E3 )
|
||||
{
|
||||
Weight = 8.0;
|
||||
Layer = Layer.OneHanded;
|
||||
Hue = CraftResources.GetHue( resource );
|
||||
}
|
||||
|
||||
public RunicHammer( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
|
||||
writer.Write( (int) 0 ); // version
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue