44 lines
1.1 KiB
C#
44 lines
1.1 KiB
C#
using System;
|
|
|
|
namespace Server.Items
|
|
{
|
|
public class AcidWall : BaseWall
|
|
{
|
|
[Constructable]
|
|
public AcidWall()
|
|
: base(969)
|
|
{
|
|
Hue = 1828;
|
|
}
|
|
|
|
public AcidWall(Serial serial)
|
|
: base(serial)
|
|
{
|
|
}
|
|
|
|
public override void OnDoubleClick(Mobile from)
|
|
{
|
|
if (from.InRange(this.GetWorldLocation(), 1))
|
|
{
|
|
from.SendLocalizedMessage(1111659); // You try to examine the strange wall but the vines get in your way.
|
|
}
|
|
else if (!from.InRange(this.GetWorldLocation(), 1))
|
|
{
|
|
from.SendLocalizedMessage(1019045); // I can't reach that.
|
|
}
|
|
base.OnDoubleClick(from);
|
|
}
|
|
|
|
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();
|
|
}
|
|
}
|
|
} |