mirror of
https://github.com/modernuo/ModernUO
synced 2026-08-11 22:23:06 -04:00
23 lines
554 B
C#
23 lines
554 B
C#
using ModernUO.Serialization;
|
|
|
|
namespace Server.Items;
|
|
|
|
[SerializationGenerator(0, false)]
|
|
public partial class LocalMap : MapItem
|
|
{
|
|
[Constructible]
|
|
public LocalMap()
|
|
{
|
|
SetDisplay(0, 0, 5119, 4095, 400, 400);
|
|
}
|
|
|
|
public override int LabelNumber => 1015230; // local map
|
|
|
|
public override void CraftInit(Mobile from)
|
|
{
|
|
var skillValue = from.Skills.Cartography.Value;
|
|
var dist = 64 + (int)(skillValue * 2);
|
|
|
|
SetDisplay(from.X - dist, from.Y - dist, from.X + dist, from.Y + dist, 200, 200);
|
|
}
|
|
}
|