servuo/Scripts/Items/Tools/WorldMap.cs
Dexter 119cef1b09 High Seas and bug fixes
- fixed label in PillarOfStrength
- DemonHuntersStandard now has Exorcism slayer
- Fixed Chicken Coop Crash
- Fixed instances where scale collar wasn't un-freezing on tame
- Scouring Toxin now wipes out plant hues
- Fixed Runic Tool Consolidation
- Maps can now be crafted in other facets
- Removed redundant DryReed class
- Added proper clilocs on reeds, pigments and plant clippings
- Basket weaving has been moved to Tinkering menu, per EA
- Added resource target to plant hue items crafting
- Fixed craft menu issues in Carpentry
- Fixed void pool spawn crash
- Damage Increase now counts as an imbuing Property
- Added buff icon for curse Weapon
- Strange buff is now removed properly
-
2016-08-12 20:54:29 -07:00

63 lines
No EOL
1.4 KiB
C#

using System;
using Server;
namespace Server.Items
{
public class WorldMap : MapItem
{
[Constructable]
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
Facet = from.Map;
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;
if (Facet == Map.Trammel || Facet == Map.Felucca)
{
if (Server.Spells.SpellHelper.IsAnyT2A(Facet, from.Location))
{
Bounds = new Rectangle2D(5120, 2304, 1024, 1792);
Width = size;
Height = size;
}
else
SetDisplay(1344 - x20, 1600 - x20, 1472 + x20, 1728 + x20, size, size);
}
else
SetDisplayByFacet();
}
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();
}
}
}