ModernUO/Scripts/Items/Maps/WorldMap.cs
Kamron Batman 20ae1b3989
Fixes lots more spelling errors (#5)
* Renames constructable to constructible
* Fixes project references.
* Fixes BaseEquippableLight file name
* Replaces payed with paid.
* Fixes various other spelling errors
2018-02-20 16:01:41 -08:00

50 lines
No EOL
1 KiB
C#

using System;
using Server;
namespace Server.Items
{
public class WorldMap : MapItem
{
[Constructible]
public WorldMap()
{
SetDisplay( 0, 0, 5119, 4095, 400, 400 );
}
public override void CraftInit( Mobile from )
{
// Unlike the others, world map is not based on crafted location
double skillValue = from.Skills[SkillName.Cartography].Value;
int x20 = (int)(skillValue * 20);
int size = 25 + (int)(skillValue * 6.6);
if ( size < 200 )
size = 200;
else if ( size > 400 )
size = 400;
SetDisplay( 1344 - x20, 1600 - x20, 1472 + x20, 1728 + x20, size, size );
}
public override int LabelNumber{ get{ return 1015233; } } // world map
public WorldMap( Serial serial ) : base( serial )
{
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 );
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
}