Reorganizes Project (#41)
This commit is contained in:
parent
08bf44af9a
commit
3614a66aee
3499 changed files with 79 additions and 55 deletions
47
Projects/Scripts/Items/Maps/WorldMap.cs
Normal file
47
Projects/Scripts/Items/Maps/WorldMap.cs
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
namespace Server.Items
|
||||
{
|
||||
public class WorldMap : MapItem
|
||||
{
|
||||
[Constructible]
|
||||
public WorldMap()
|
||||
{
|
||||
SetDisplay(0, 0, 5119, 4095, 400, 400);
|
||||
}
|
||||
|
||||
public WorldMap(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override int LabelNumber => 1015233; // world map
|
||||
|
||||
public override void CraftInit(Mobile from)
|
||||
{
|
||||
// Unlike the others, world map is not based on crafted location
|
||||
|
||||
double skillValue = from.Skills.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 void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
|
||||
writer.Write(0);
|
||||
}
|
||||
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue