Some more trailing whitespace removal and minor ML code cleanup.

This commit is contained in:
eos 2012-01-07 04:39:54 +00:00
parent f4a7e8e283
commit 45bd3dba38
113 changed files with 365 additions and 410 deletions

View file

@ -7,17 +7,12 @@ namespace Server.Items
{ {
public override int LabelNumber{ get{ return 1072114; } } // Melisande's Fermented Wine public override int LabelNumber{ get{ return 1072114; } } // Melisande's Fermented Wine
private static int[] m_Hues = new int[]
{
0xB, 0xF, 0x48D // TODO update
};
[Constructable] [Constructable]
public MelisandesFermentedWine() : base() public MelisandesFermentedWine()
{ {
Stackable = false; Stackable = false;
ItemID = 0x99B; ItemID = 0x99B;
Hue = Utility.RandomList( m_Hues ); Hue = Utility.RandomList( 0xB, 0xF, 0x48D ); // TODO update
} }
public MelisandesFermentedWine( Serial serial ) : base( serial ) public MelisandesFermentedWine( Serial serial ) : base( serial )
@ -26,10 +21,8 @@ namespace Server.Items
public override void Drink( Mobile from ) public override void Drink( Mobile from )
{ {
if ( from.NetState.SupportsExpansion( Expansion.ML ) ) if ( MondainsLegacy.CheckML( from ) )
base.Drink( from ); base.Drink( from );
else
from.SendLocalizedMessage( 1072791 ); // You must upgrade to Mondain's Legacy in order to use that item.
} }
public override void GetProperties( ObjectPropertyList list ) public override void GetProperties( ObjectPropertyList list )

View file

@ -22,10 +22,8 @@ namespace Server.Items
{ {
if ( IsChildOf( from.Backpack ) ) if ( IsChildOf( from.Backpack ) )
{ {
if ( from.NetState.SupportsExpansion( Expansion.ML ) ) if ( MondainsLegacy.CheckML( from ) )
from.SendGump( new ConfirmGump( this ) ); from.SendGump( new ConfirmGump( this ) );
else
from.SendLocalizedMessage( 1072791 ); // You must upgrade to Mondain's Legacy in order to use that item.
} }
else else
from.SendLocalizedMessage( 1042001 ); // That must be in your pack for you to use it. from.SendLocalizedMessage( 1042001 ); // That must be in your pack for you to use it.
@ -66,7 +64,7 @@ namespace Server.Items
public override void Confirm( Mobile from ) public override void Confirm( Mobile from )
{ {
if ( m_Item != null && !m_Item.Deleted ) if ( m_Item != null && !m_Item.Deleted && m_Item.IsChildOf( from.Backpack ) )
{ {
if ( from.HairItemID != 0 ) if ( from.HairItemID != 0 )
{ {

View file

@ -6,15 +6,13 @@ namespace Server.Items
public class MinotaurArtifact : Item public class MinotaurArtifact : Item
{ {
public override int LabelNumber{ get{ return 1074826; } } // Minotaur Artifact public override int LabelNumber{ get{ return 1074826; } } // Minotaur Artifact
public override double DefaultWeight{ get{ return 5.0; } }
[Constructable] [Constructable]
public MinotaurArtifact() : base( Utility.RandomList( 0xB46, 0xB48, 0x9ED ) ) public MinotaurArtifact() : base( Utility.RandomList( 0xB46, 0xB48, 0x9ED ) )
{ {
switch ( ItemID ) if ( ItemID == 0x9ED )
{ Weight = 30;
case 0x9ED: Weight = 30; break;
default: Weight = 5; break;
}
LootType = LootType.Blessed; LootType = LootType.Blessed;
Hue = 0x100; Hue = 0x100;

View file

@ -8,7 +8,7 @@ namespace Server.Items
public override int LabelNumber{ get{ return 1075095; } } // Shimmering Crystals public override int LabelNumber{ get{ return 1075095; } } // Shimmering Crystals
public override bool ForceShowProperties{ get{ return true; } } public override bool ForceShowProperties{ get{ return true; } }
private static int[] m_ItemIDs = new int[] private static readonly int[] m_ItemIDs = new int[]
{ {
0x2206, 0x2207, 0x2208, 0x2209, 0x220A, 0x220B, 0x220C, 0x220D, 0x220E, 0x2206, 0x2207, 0x2208, 0x2209, 0x220A, 0x220B, 0x220C, 0x220D, 0x220E,
0x2210, 0x2211, 0x2212, 0x2213, 0x2214, 0x2215, 0x2216, 0x2217, 0x2218, 0x2210, 0x2211, 0x2212, 0x2213, 0x2214, 0x2215, 0x2216, 0x2217, 0x2218,

View file

@ -7,13 +7,8 @@ namespace Server.Items
public override int LabelNumber{ get{ return 1075088; } } // Dread Horn Tainted Mushroom public override int LabelNumber{ get{ return 1075088; } } // Dread Horn Tainted Mushroom
public override bool ForceShowProperties{ get{ return true; } } public override bool ForceShowProperties{ get{ return true; } }
private static int[] m_ItemIDs = new int[]
{
0x222E, 0x222F, 0x2230, 0x2231
};
[Constructable] [Constructable]
public TaintedMushroom() : base( Utility.RandomList( m_ItemIDs ) ) public TaintedMushroom() : base( Utility.RandomMinMax( 0x222E, 0x2231 ) )
{ {
} }

View file

@ -1,6 +1,5 @@
using System; using System;
using Server; using Server;
using Server.Mobiles;
namespace Server.Items namespace Server.Items
{ {

View file

@ -1,6 +1,5 @@
using System; using System;
using Server; using Server;
using Server.Mobiles;
namespace Server.Items namespace Server.Items
{ {
@ -15,7 +14,7 @@ namespace Server.Items
public override int BaseEnergyResistance{ get{ return 5; } } public override int BaseEnergyResistance{ get{ return 5; } }
[Constructable] [Constructable]
public ArmsOfArmstrong() : base() public ArmsOfArmstrong()
{ {
LootType = LootType.Blessed; LootType = LootType.Blessed;

View file

@ -1,18 +1,17 @@
using System; using System;
using Server; using Server;
using Server.Mobiles;
namespace Server.Items namespace Server.Items
{ {
public class BagOfNecromancerReagents : Bag public class BagOfNecromancerReagents : Bag
{ {
[Constructable] [Constructable]
public BagOfNecromancerReagents() : this( 100 ) public BagOfNecromancerReagents() : this( 50 )
{ {
} }
[Constructable] [Constructable]
public BagOfNecromancerReagents( int amount ) : base() public BagOfNecromancerReagents( int amount )
{ {
DropItem( new BatWing ( amount ) ); DropItem( new BatWing ( amount ) );
DropItem( new GraveDust ( amount ) ); DropItem( new GraveDust ( amount ) );

View file

@ -1,6 +1,5 @@
using System; using System;
using Server; using Server;
using Server.Mobiles;
namespace Server.Items namespace Server.Items
{ {
@ -12,9 +11,9 @@ namespace Server.Items
} }
[Constructable] [Constructable]
public BagOfSmokeBombs( int amount ) : base() public BagOfSmokeBombs( int amount )
{ {
for ( int a = amount; amount > 0; amount -- ) for ( int i = 0; i < amount; ++i )
DropItem( new SmokeBomb() ); DropItem( new SmokeBomb() );
} }

View file

@ -1,6 +1,5 @@
using System; using System;
using Server; using Server;
using Server.Mobiles;
namespace Server.Items namespace Server.Items
{ {

View file

@ -1,6 +1,5 @@
using System; using System;
using Server; using Server;
using Server.Mobiles;
namespace Server.Items namespace Server.Items
{ {
@ -15,7 +14,7 @@ namespace Server.Items
public override int BaseEnergyResistance{ get{ return 3; } } public override int BaseEnergyResistance{ get{ return 3; } }
[Constructable] [Constructable]
public BulwarkLeggings() : base() public BulwarkLeggings()
{ {
LootType = LootType.Blessed; LootType = LootType.Blessed;

View file

@ -1,6 +1,5 @@
using System; using System;
using Server; using Server;
using Server.Mobiles;
namespace Server.Items namespace Server.Items
{ {
@ -9,7 +8,7 @@ namespace Server.Items
public override int LabelNumber{ get{ return 1078062; } } // Churchill's War Mace public override int LabelNumber{ get{ return 1078062; } } // Churchill's War Mace
[Constructable] [Constructable]
public ChurchillsWarMace() : base() public ChurchillsWarMace()
{ {
LootType = LootType.Blessed; LootType = LootType.Blessed;

View file

@ -1,6 +1,5 @@
using System; using System;
using Server; using Server;
using Server.Mobiles;
namespace Server.Items namespace Server.Items
{ {

View file

@ -1,32 +0,0 @@
using System;
using Server;
using Server.Mobiles;
namespace Server.Items
{
public class CompleteNecromancerSpellbook : NecromancerSpellbook
{
[Constructable]
public CompleteNecromancerSpellbook() : base( (ulong) 0x1FFFF )
{
}
public CompleteNecromancerSpellbook( Serial serial ) : base( serial )
{
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.WriteEncodedInt( 0 ); // version
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadEncodedInt();
}
}
}

View file

@ -1,6 +1,5 @@
using System; using System;
using Server; using Server;
using Server.Mobiles;
namespace Server.Items namespace Server.Items
{ {

View file

@ -1,6 +1,5 @@
using System; using System;
using Server; using Server;
using Server.Mobiles;
namespace Server.Items namespace Server.Items
{ {
@ -14,7 +13,7 @@ namespace Server.Items
public override int AosStrReq{ get{ return 14; } } public override int AosStrReq{ get{ return 14; } }
[Constructable] [Constructable]
public EscutcheonDeAriadne() : base() public EscutcheonDeAriadne()
{ {
LootType = LootType.Blessed; LootType = LootType.Blessed;
Hue = 0x8A5; Hue = 0x8A5;
@ -24,7 +23,7 @@ namespace Server.Items
Attributes.DefendChance = 5; Attributes.DefendChance = 5;
} }
public EscutcheonDeAriadne( Serial serial ) : base(serial) public EscutcheonDeAriadne( Serial serial ) : base( serial )
{ {
} }

View file

@ -1,6 +1,5 @@
using System; using System;
using Server; using Server;
using Server.Mobiles;
namespace Server.Items namespace Server.Items
{ {

View file

@ -1,6 +1,5 @@
using System; using System;
using Server; using Server;
using Server.Mobiles;
namespace Server.Items namespace Server.Items
{ {
@ -9,10 +8,9 @@ namespace Server.Items
public override int LabelNumber { get { return 1077620; } } // Hallowed Spellbook public override int LabelNumber { get { return 1077620; } } // Hallowed Spellbook
[Constructable] [Constructable]
public HallowedSpellbook() : base() public HallowedSpellbook() : base( 0x3FFFFFFFF )
{ {
LootType = LootType.Blessed; LootType = LootType.Blessed;
Content = 0x3FFFFFFFF;
Slayer = SlayerName.Silver; Slayer = SlayerName.Silver;
} }

View file

@ -1,6 +1,5 @@
using System; using System;
using Server; using Server;
using Server.Mobiles;
namespace Server.Items namespace Server.Items
{ {

View file

@ -1,6 +1,5 @@
using System; using System;
using Server; using Server;
using Server.Mobiles;
namespace Server.Items namespace Server.Items
{ {
@ -9,7 +8,7 @@ namespace Server.Items
public override int LabelNumber{ get{ return 1078210; } } // Heartseeker public override int LabelNumber{ get{ return 1078210; } } // Heartseeker
[Constructable] [Constructable]
public Heartseeker() : base() public Heartseeker()
{ {
LootType = LootType.Blessed; LootType = LootType.Blessed;

View file

@ -1,6 +1,5 @@
using System; using System;
using Server; using Server;
using Server.Mobiles;
namespace Server.Items namespace Server.Items
{ {
@ -9,7 +8,7 @@ namespace Server.Items
public override int LabelNumber{ get{ return 1077666; } } // Jockles' Quicksword public override int LabelNumber{ get{ return 1077666; } } // Jockles' Quicksword
[Constructable] [Constructable]
public JocklesQuicksword() : base() public JocklesQuicksword()
{ {
LootType = LootType.Blessed; LootType = LootType.Blessed;

View file

@ -1,6 +1,5 @@
using System; using System;
using Server; using Server;
using Server.Mobiles;
namespace Server.Items namespace Server.Items
{ {
@ -15,7 +14,7 @@ namespace Server.Items
public override int BaseEnergyResistance{ get{ return 5; } } public override int BaseEnergyResistance{ get{ return 5; } }
[Constructable] [Constructable]
public PhilosophersHat() : base() public PhilosophersHat()
{ {
LootType = LootType.Blessed; LootType = LootType.Blessed;

View file

@ -1,6 +1,5 @@
using System; using System;
using Server; using Server;
using Server.Mobiles;
namespace Server.Items namespace Server.Items
{ {

View file

@ -1,6 +1,5 @@
using System; using System;
using Server; using Server;
using Server.Mobiles;
namespace Server.Items namespace Server.Items
{ {
@ -9,7 +8,7 @@ namespace Server.Items
public override int LabelNumber{ get{ return 1077608; } } // Ring of the Savant public override int LabelNumber{ get{ return 1077608; } } // Ring of the Savant
[Constructable] [Constructable]
public RingOfTheSavant() : base() public RingOfTheSavant()
{ {
LootType = LootType.Blessed; LootType = LootType.Blessed;

View file

@ -1,6 +1,5 @@
using System; using System;
using Server; using Server;
using Server.Mobiles;
namespace Server.Items namespace Server.Items
{ {
@ -9,7 +8,7 @@ namespace Server.Items
public override int LabelNumber{ get{ return 1078163; } } // Silver Serpent Blade public override int LabelNumber{ get{ return 1078163; } } // Silver Serpent Blade
[Constructable] [Constructable]
public SilverSerpentBlade() : base() public SilverSerpentBlade()
{ {
LootType = LootType.Blessed; LootType = LootType.Blessed;

View file

@ -1,6 +1,5 @@
using System; using System;
using Server; using Server;
using Server.Mobiles;
namespace Server.Items namespace Server.Items
{ {
@ -12,7 +11,7 @@ namespace Server.Items
public override int InitMaxHits{ get{ return 80; } } public override int InitMaxHits{ get{ return 80; } }
[Constructable] [Constructable]
public TheDragonsTail() : base() public TheDragonsTail()
{ {
LootType = LootType.Blessed; LootType = LootType.Blessed;

View file

@ -1,6 +1,5 @@
using System; using System;
using Server; using Server;
using Server.Mobiles;
namespace Server.Items namespace Server.Items
{ {
@ -15,7 +14,7 @@ namespace Server.Items
public override int BaseEnergyResistance{ get{ return 5; } } public override int BaseEnergyResistance{ get{ return 5; } }
[Constructable] [Constructable]
public TunicOfGuarding() : base() public TunicOfGuarding()
{ {
LootType = LootType.Blessed; LootType = LootType.Blessed;

View file

@ -1,6 +1,5 @@
using System; using System;
using Server; using Server;
using Server.Mobiles;
namespace Server.Items namespace Server.Items
{ {
@ -15,7 +14,7 @@ namespace Server.Items
public override int BaseEnergyResistance{ get{ return 3; } } public override int BaseEnergyResistance{ get{ return 3; } }
[Constructable] [Constructable]
public TwilightJacket() : base() public TwilightJacket()
{ {
LootType = LootType.Blessed; LootType = LootType.Blessed;

View file

@ -1,6 +1,5 @@
using System; using System;
using Server; using Server;
using Server.Mobiles;
namespace Server.Items namespace Server.Items
{ {
@ -15,7 +14,7 @@ namespace Server.Items
public override int BaseEnergyResistance{ get{ return 3; } } public override int BaseEnergyResistance{ get{ return 3; } }
[Constructable] [Constructable]
public WalkersLeggings() : base() public WalkersLeggings()
{ {
LootType = LootType.Blessed; LootType = LootType.Blessed;
} }

View file

@ -8,7 +8,7 @@ namespace Server.Items
public override int LabelNumber{ get{ return 1073545; } } // guardian axe public override int LabelNumber{ get{ return 1073545; } } // guardian axe
[Constructable] [Constructable]
public GuardianAxe() : base() public GuardianAxe()
{ {
Attributes.BonusHits = 4; Attributes.BonusHits = 4;
Attributes.RegenHits = 1; Attributes.RegenHits = 1;

View file

@ -8,7 +8,7 @@ namespace Server.Items
public override int LabelNumber{ get{ return 1073548; } } // heavy ornate axe public override int LabelNumber{ get{ return 1073548; } } // heavy ornate axe
[Constructable] [Constructable]
public HeavyOrnateAxe() : base() public HeavyOrnateAxe()
{ {
Attributes.WeaponDamage = 8; Attributes.WeaponDamage = 8;
} }

View file

@ -8,7 +8,7 @@ namespace Server.Items
public override int LabelNumber{ get{ return 1073546; } } // singing axe public override int LabelNumber{ get{ return 1073546; } } // singing axe
[Constructable] [Constructable]
public SingingAxe() : base() public SingingAxe()
{ {
SkillBonuses.SetValues( 0, SkillName.Musicianship, 5 ); SkillBonuses.SetValues( 0, SkillName.Musicianship, 5 );
} }

View file

@ -8,7 +8,7 @@ namespace Server.Items
public override int LabelNumber{ get{ return 1073547; } } // thundering axe public override int LabelNumber{ get{ return 1073547; } } // thundering axe
[Constructable] [Constructable]
public ThunderingAxe() : base() public ThunderingAxe()
{ {
WeaponAttributes.HitLightning = 10; WeaponAttributes.HitLightning = 10;
} }

View file

@ -8,7 +8,7 @@ namespace Server.Items
public override int LabelNumber{ get{ return 1073530; } } // emerald mace public override int LabelNumber{ get{ return 1073530; } } // emerald mace
[Constructable] [Constructable]
public EmeraldMace() : base() public EmeraldMace()
{ {
WeaponAttributes.ResistPoisonBonus = 5; WeaponAttributes.ResistPoisonBonus = 5;
} }

View file

@ -8,7 +8,7 @@ namespace Server.Items
public override int LabelNumber{ get{ return 1073529; } } // ruby mace public override int LabelNumber{ get{ return 1073529; } } // ruby mace
[Constructable] [Constructable]
public RubyMace() : base() public RubyMace()
{ {
Attributes.WeaponDamage = 5; Attributes.WeaponDamage = 5;
} }

View file

@ -8,7 +8,7 @@ namespace Server.Items
public override int LabelNumber{ get{ return 1073531; } } // sapphire mace public override int LabelNumber{ get{ return 1073531; } } // sapphire mace
[Constructable] [Constructable]
public SapphireMace() : base() public SapphireMace()
{ {
WeaponAttributes.ResistEnergyBonus = 5; WeaponAttributes.ResistEnergyBonus = 5;
} }

View file

@ -8,7 +8,7 @@ namespace Server.Items
public override int LabelNumber{ get{ return 1073532; } } // silver-etched mace public override int LabelNumber{ get{ return 1073532; } } // silver-etched mace
[Constructable] [Constructable]
public SilverEtchedMace() : base() public SilverEtchedMace()
{ {
Slayer = SlayerName.Exorcism; Slayer = SlayerName.Exorcism;
} }

View file

@ -8,7 +8,7 @@ namespace Server.Items
public override int LabelNumber{ get{ return 1073512; } } // assassin's shortbow public override int LabelNumber{ get{ return 1073512; } } // assassin's shortbow
[Constructable] [Constructable]
public AssassinsShortbow() : base() public AssassinsShortbow()
{ {
Attributes.AttackChance = 3; Attributes.AttackChance = 3;
Attributes.WeaponDamage = 4; Attributes.WeaponDamage = 4;

View file

@ -8,7 +8,7 @@ namespace Server.Items
public override int LabelNumber{ get{ return 1073505; } } // barbed longbow public override int LabelNumber{ get{ return 1073505; } } // barbed longbow
[Constructable] [Constructable]
public BarbedLongbow() : base() public BarbedLongbow()
{ {
Attributes.ReflectPhysical = 12; Attributes.ReflectPhysical = 12;
} }

View file

@ -8,7 +8,7 @@ namespace Server.Items
public override int LabelNumber{ get{ return 1073507; } } // frozen longbow public override int LabelNumber{ get{ return 1073507; } } // frozen longbow
[Constructable] [Constructable]
public FrozenLongbow() : base() public FrozenLongbow()
{ {
Attributes.WeaponSpeed = -5; Attributes.WeaponSpeed = -5;
Attributes.DefendChance = 10; Attributes.DefendChance = 10;

View file

@ -8,7 +8,7 @@ namespace Server.Items
public override int LabelNumber{ get{ return 1073510; } } // lightweight shortbow public override int LabelNumber{ get{ return 1073510; } } // lightweight shortbow
[Constructable] [Constructable]
public LightweightShortbow() : base() public LightweightShortbow()
{ {
Balanced = true; Balanced = true;
} }

View file

@ -8,7 +8,7 @@ namespace Server.Items
public override int LabelNumber{ get{ return 1073508; } } // longbow of might public override int LabelNumber{ get{ return 1073508; } } // longbow of might
[Constructable] [Constructable]
public LongbowOfMight() : base() public LongbowOfMight()
{ {
Attributes.WeaponDamage = 5; Attributes.WeaponDamage = 5;
} }

View file

@ -8,7 +8,7 @@ namespace Server.Items
public override int LabelNumber{ get{ return 1073511; } } // mystical shortbow public override int LabelNumber{ get{ return 1073511; } } // mystical shortbow
[Constructable] [Constructable]
public MysticalShortbow() : base() public MysticalShortbow()
{ {
Attributes.SpellChanneling = 1; Attributes.SpellChanneling = 1;
Attributes.CastSpeed = -1; Attributes.CastSpeed = -1;

View file

@ -8,7 +8,7 @@ namespace Server.Items
public override int LabelNumber{ get{ return 1073509; } } // ranger's shortbow public override int LabelNumber{ get{ return 1073509; } } // ranger's shortbow
[Constructable] [Constructable]
public RangersShortbow() : base() public RangersShortbow()
{ {
Attributes.WeaponSpeed = 5; Attributes.WeaponSpeed = 5;
} }

View file

@ -8,7 +8,7 @@ namespace Server.Items
public override int LabelNumber{ get{ return 1073506; } } // slayer longbow public override int LabelNumber{ get{ return 1073506; } } // slayer longbow
[Constructable] [Constructable]
public SlayerLongbow() : base() public SlayerLongbow()
{ {
Slayer2 = (SlayerName) Utility.RandomMinMax( 1, 27 ); Slayer2 = (SlayerName) Utility.RandomMinMax( 1, 27 );
} }

View file

@ -8,7 +8,7 @@ namespace Server.Items
public override int LabelNumber{ get{ return 1073533; } } // adventurer's machete public override int LabelNumber{ get{ return 1073533; } } // adventurer's machete
[Constructable] [Constructable]
public AdventurersMachete() : base() public AdventurersMachete()
{ {
Attributes.Luck = 20; Attributes.Luck = 20;
} }

View file

@ -8,7 +8,7 @@ namespace Server.Items
public override int LabelNumber{ get{ return 1020526; } } // bone machete public override int LabelNumber{ get{ return 1020526; } } // bone machete
[Constructable] [Constructable]
public BoneMachete() : base() public BoneMachete()
{ {
// TODO attributes // TODO attributes
} }

View file

@ -8,7 +8,7 @@ namespace Server.Items
public override int LabelNumber{ get{ return 1073518; } } // charged assassin spike public override int LabelNumber{ get{ return 1073518; } } // charged assassin spike
[Constructable] [Constructable]
public ChargedAssassinSpike() : base() public ChargedAssassinSpike()
{ {
WeaponAttributes.HitLightning = 10; WeaponAttributes.HitLightning = 10;
} }

View file

@ -8,7 +8,7 @@ namespace Server.Items
public override int LabelNumber{ get{ return 1073540; } } // Corrupted Rune Blade public override int LabelNumber{ get{ return 1073540; } } // Corrupted Rune Blade
[Constructable] [Constructable]
public CorruptedRuneBlade() : base() public CorruptedRuneBlade()
{ {
WeaponAttributes.ResistPhysicalBonus = -5; WeaponAttributes.ResistPhysicalBonus = -5;
WeaponAttributes.ResistPoisonBonus = 12; WeaponAttributes.ResistPoisonBonus = 12;

View file

@ -8,7 +8,7 @@ namespace Server.Items
public override int LabelNumber{ get{ return 1073542; } } // darkglow scimitar public override int LabelNumber{ get{ return 1073542; } } // darkglow scimitar
[Constructable] [Constructable]
public DarkglowScimitar() : base() public DarkglowScimitar()
{ {
WeaponAttributes.HitDispel = 10; WeaponAttributes.HitDispel = 10;
} }

View file

@ -8,7 +8,7 @@ namespace Server.Items
public override int LabelNumber{ get{ return 1073536; } } // Diseased Machete public override int LabelNumber{ get{ return 1073536; } } // Diseased Machete
[Constructable] [Constructable]
public DiseasedMachete() : base() public DiseasedMachete()
{ {
WeaponAttributes.HitPoisonArea = 25; WeaponAttributes.HitPoisonArea = 25;
} }

View file

@ -8,7 +8,7 @@ namespace Server.Items
public override int LabelNumber{ get{ return 1073515; } } // fiery spellblade public override int LabelNumber{ get{ return 1073515; } } // fiery spellblade
[Constructable] [Constructable]
public FierySpellblade() : base() public FierySpellblade()
{ {
WeaponAttributes.ResistFireBonus = 5; WeaponAttributes.ResistFireBonus = 5;
} }

View file

@ -8,7 +8,7 @@ namespace Server.Items
public override int LabelNumber{ get{ return 1073543; } } // icy scimitar public override int LabelNumber{ get{ return 1073543; } } // icy scimitar
[Constructable] [Constructable]
public IcyScimitar() : base() public IcyScimitar()
{ {
WeaponAttributes.HitHarm = 15; WeaponAttributes.HitHarm = 15;
} }

View file

@ -8,7 +8,7 @@ namespace Server.Items
public override int LabelNumber{ get{ return 1073514; } } // icy spellblade public override int LabelNumber{ get{ return 1073514; } } // icy spellblade
[Constructable] [Constructable]
public IcySpellblade() : base() public IcySpellblade()
{ {
WeaponAttributes.ResistColdBonus = 5; WeaponAttributes.ResistColdBonus = 5;
} }

View file

@ -8,7 +8,7 @@ namespace Server.Items
public override int LabelNumber{ get{ return 1073525; } } // knight's war cleaver public override int LabelNumber{ get{ return 1073525; } } // knight's war cleaver
[Constructable] [Constructable]
public KnightsWarCleaver() : base() public KnightsWarCleaver()
{ {
Attributes.RegenHits = 3; Attributes.RegenHits = 3;
} }

View file

@ -8,7 +8,7 @@ namespace Server.Items
public override int LabelNumber{ get{ return 1073524; } } // leafblade of ease public override int LabelNumber{ get{ return 1073524; } } // leafblade of ease
[Constructable] [Constructable]
public LeafbladeOfEase() : base() public LeafbladeOfEase()
{ {
WeaponAttributes.UseBestSkill = 1; WeaponAttributes.UseBestSkill = 1;
} }

View file

@ -8,7 +8,7 @@ namespace Server.Items
public override int LabelNumber{ get{ return 1073522; } } // luckblade public override int LabelNumber{ get{ return 1073522; } } // luckblade
[Constructable] [Constructable]
public Luckblade() : base() public Luckblade()
{ {
Attributes.Luck = 20; Attributes.Luck = 20;
} }

View file

@ -8,7 +8,7 @@ namespace Server.Items
public override int LabelNumber{ get{ return 1073535; } } // machete of defense public override int LabelNumber{ get{ return 1073535; } } // machete of defense
[Constructable] [Constructable]
public MacheteOfDefense() : base() public MacheteOfDefense()
{ {
Attributes.DefendChance = 5; Attributes.DefendChance = 5;
} }

View file

@ -8,7 +8,7 @@ namespace Server.Items
public override int LabelNumber{ get{ return 1073519; } } // magekiller assassin spike public override int LabelNumber{ get{ return 1073519; } } // magekiller assassin spike
[Constructable] [Constructable]
public MagekillerAssassinSpike() : base() public MagekillerAssassinSpike()
{ {
WeaponAttributes.HitLeechMana = 16; WeaponAttributes.HitLeechMana = 16;
} }

View file

@ -8,7 +8,7 @@ namespace Server.Items
public override int LabelNumber{ get{ return 1073523; } } // maagekiller leafblade public override int LabelNumber{ get{ return 1073523; } } // maagekiller leafblade
[Constructable] [Constructable]
public MagekillerLeafblade() : base() public MagekillerLeafblade()
{ {
WeaponAttributes.HitLeechMana = 16; WeaponAttributes.HitLeechMana = 16;
} }

View file

@ -8,7 +8,7 @@ namespace Server.Items
public override int LabelNumber{ get{ return 1073538; } } // mage's rune blade public override int LabelNumber{ get{ return 1073538; } } // mage's rune blade
[Constructable] [Constructable]
public MagesRuneBlade() : base() public MagesRuneBlade()
{ {
Attributes.CastSpeed = 1; Attributes.CastSpeed = 1;
} }

View file

@ -8,7 +8,7 @@ namespace Server.Items
public override int LabelNumber{ get{ return 1073534; } } // Orcish Machete public override int LabelNumber{ get{ return 1073534; } } // Orcish Machete
[Constructable] [Constructable]
public OrcishMachete() : base() public OrcishMachete()
{ {
Attributes.BonusInt = -5; Attributes.BonusInt = -5;
Attributes.WeaponDamage = 10; Attributes.WeaponDamage = 10;

View file

@ -8,7 +8,7 @@ namespace Server.Items
public override int LabelNumber{ get{ return 1073539; } } // rune blade of knowledge public override int LabelNumber{ get{ return 1073539; } } // rune blade of knowledge
[Constructable] [Constructable]
public RuneBladeOfKnowledge() : base() public RuneBladeOfKnowledge()
{ {
Attributes.SpellDamage = 5; Attributes.SpellDamage = 5;
} }

View file

@ -8,7 +8,7 @@ namespace Server.Items
public override int LabelNumber{ get{ return 1073537; } } // runesabre public override int LabelNumber{ get{ return 1073537; } } // runesabre
[Constructable] [Constructable]
public Runesabre() : base() public Runesabre()
{ {
SkillBonuses.SetValues( 0, SkillName.MagicResist, 5.0 ); SkillBonuses.SetValues( 0, SkillName.MagicResist, 5.0 );
WeaponAttributes.MageWeapon = -29; WeaponAttributes.MageWeapon = -29;

View file

@ -8,7 +8,7 @@ namespace Server.Items
public override int LabelNumber{ get{ return 1073527; } } // serrated war cleaver public override int LabelNumber{ get{ return 1073527; } } // serrated war cleaver
[Constructable] [Constructable]
public SerratedWarCleaver() : base() public SerratedWarCleaver()
{ {
Attributes.WeaponDamage = 7; Attributes.WeaponDamage = 7;
} }

View file

@ -8,7 +8,7 @@ namespace Server.Items
public override int LabelNumber{ get{ return 1073516; } } // spellblade of defense public override int LabelNumber{ get{ return 1073516; } } // spellblade of defense
[Constructable] [Constructable]
public SpellbladeOfDefense() : base() public SpellbladeOfDefense()
{ {
Attributes.DefendChance = 5; Attributes.DefendChance = 5;
} }

View file

@ -8,7 +8,7 @@ namespace Server.Items
public override int LabelNumber{ get{ return 1073517; } } // true assassin spike public override int LabelNumber{ get{ return 1073517; } } // true assassin spike
[Constructable] [Constructable]
public TrueAssassinSpike() : base() public TrueAssassinSpike()
{ {
Attributes.AttackChance = 4; Attributes.AttackChance = 4;
Attributes.WeaponDamage = 4; Attributes.WeaponDamage = 4;

View file

@ -8,7 +8,7 @@ namespace Server.Items
public override int LabelNumber{ get{ return 1073521; } } // true leafblade public override int LabelNumber{ get{ return 1073521; } } // true leafblade
[Constructable] [Constructable]
public TrueLeafblade() : base() public TrueLeafblade()
{ {
WeaponAttributes.ResistPoisonBonus = 5; WeaponAttributes.ResistPoisonBonus = 5;
} }

View file

@ -8,7 +8,7 @@ namespace Server.Items
public override int LabelNumber{ get{ return 1073541; } } // true radiant scimitar public override int LabelNumber{ get{ return 1073541; } } // true radiant scimitar
[Constructable] [Constructable]
public TrueRadiantScimitar() : base() public TrueRadiantScimitar()
{ {
Attributes.NightSight = 1; Attributes.NightSight = 1;
} }

View file

@ -8,7 +8,7 @@ namespace Server.Items
public override int LabelNumber{ get{ return 1073513; } } // true spellblade public override int LabelNumber{ get{ return 1073513; } } // true spellblade
[Constructable] [Constructable]
public TrueSpellblade() : base() public TrueSpellblade()
{ {
Attributes.SpellChanneling = 1; Attributes.SpellChanneling = 1;
Attributes.CastSpeed = -1; Attributes.CastSpeed = -1;

View file

@ -8,7 +8,7 @@ namespace Server.Items
public override int LabelNumber{ get{ return 1073528; } } // true war cleaver public override int LabelNumber{ get{ return 1073528; } } // true war cleaver
[Constructable] [Constructable]
public TrueWarCleaver() : base() public TrueWarCleaver()
{ {
Attributes.WeaponDamage = 4; Attributes.WeaponDamage = 4;
Attributes.RegenHits = 2; Attributes.RegenHits = 2;

View file

@ -8,7 +8,7 @@ namespace Server.Items
public override int LabelNumber{ get{ return 1073544; } } // twinkling scimitar public override int LabelNumber{ get{ return 1073544; } } // twinkling scimitar
[Constructable] [Constructable]
public TwinklingScimitar() : base() public TwinklingScimitar()
{ {
Attributes.DefendChance = 6; Attributes.DefendChance = 6;
} }

View file

@ -8,7 +8,7 @@ namespace Server.Items
public override int LabelNumber{ get{ return 1073520; } } // wounding assassin spike public override int LabelNumber{ get{ return 1073520; } } // wounding assassin spike
[Constructable] [Constructable]
public WoundingAssassinSpike() : base() public WoundingAssassinSpike()
{ {
WeaponAttributes.HitHarm = 15; WeaponAttributes.HitHarm = 15;
} }

View file

@ -8,7 +8,7 @@ namespace Server.Items
public override int LabelNumber{ get{ return 1073550; } } // ancient wild staff public override int LabelNumber{ get{ return 1073550; } } // ancient wild staff
[Constructable] [Constructable]
public AncientWildStaff() : base() public AncientWildStaff()
{ {
WeaponAttributes.ResistPoisonBonus = 5; WeaponAttributes.ResistPoisonBonus = 5;
} }

View file

@ -8,7 +8,7 @@ namespace Server.Items
public override int LabelNumber{ get{ return 1073549; } } // arcanist's wild staff public override int LabelNumber{ get{ return 1073549; } } // arcanist's wild staff
[Constructable] [Constructable]
public ArcanistsWildStaff() : base() public ArcanistsWildStaff()
{ {
Attributes.BonusMana = 3; Attributes.BonusMana = 3;
Attributes.WeaponDamage = 3; Attributes.WeaponDamage = 3;

View file

@ -8,7 +8,7 @@ namespace Server.Items
public override int LabelNumber{ get{ return 1073552; } } // hardened wild staff public override int LabelNumber{ get{ return 1073552; } } // hardened wild staff
[Constructable] [Constructable]
public HardenedWildStaff() : base() public HardenedWildStaff()
{ {
Attributes.WeaponDamage = 5; Attributes.WeaponDamage = 5;
} }

View file

@ -8,7 +8,7 @@ namespace Server.Items
public override int LabelNumber{ get{ return 1073551; } } // thorned wild staff public override int LabelNumber{ get{ return 1073551; } } // thorned wild staff
[Constructable] [Constructable]
public ThornedWildStaff() : base() public ThornedWildStaff()
{ {
Attributes.ReflectPhysical = 12; Attributes.ReflectPhysical = 12;
} }

View file

@ -0,0 +1,27 @@
using System;
using Server;
namespace Server
{
public static class MondainsLegacy
{
public static bool CheckML( Mobile from )
{
return CheckML( from, true );
}
public static bool CheckML( Mobile from, bool message )
{
if ( from == null || from.NetState == null )
return false;
if ( from.NetState.SupportsExpansion( Expansion.ML ) )
return true;
if ( message )
from.SendLocalizedMessage( 1072791 ); // You must upgrade to Mondain's Legacy in order to use that item.
return false;
}
}
}