#W# Source and Scripts added. Added Scripts/Settings.cs to expose some basic tweak able settings.

This commit is contained in:
WarrentyExpired 2026-08-06 11:06:05 -04:00
parent b51c58f514
commit 3045c83799
3512 changed files with 627673 additions and 0 deletions

View file

@ -0,0 +1,47 @@
using System;
using Server.Items;
namespace Server.Items
{
[FlipableAttribute( 0x11EA, 0x11EB )]
public class Sand : Item, ICommodity
{
int ICommodity.DescriptionNumber { get { return LabelNumber; } }
bool ICommodity.IsDeedable { get { return true; } }
public override int LabelNumber{ get{ return 1044626; } } // sand
[Constructable]
public Sand() : this( 1 )
{
}
[Constructable]
public Sand( int amount ) : base( 0x11EA )
{
Stackable = Core.ML;
Weight = 1.0;
}
public Sand( Serial serial ) : base( serial )
{
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 1 ); // version
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
if ( version == 0 && this.Name == "sand" )
this.Name = null;
}
}
}