#W# Source and Scripts added. Added Scripts/Settings.cs to expose some basic tweak able settings.
This commit is contained in:
parent
b51c58f514
commit
3045c83799
3512 changed files with 627673 additions and 0 deletions
46
Scripts/Items/Armor/Glasses/NecromanticGlasses.cs
Normal file
46
Scripts/Items/Armor/Glasses/NecromanticGlasses.cs
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
using System;
|
||||
using Server;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public class NecromanticGlasses : ElvenGlasses
|
||||
{
|
||||
public override int LabelNumber{ get{ return 1073377; } } //Necromantic Reading Glasses
|
||||
|
||||
public override int BasePhysicalResistance{ get{ return 0; } }
|
||||
public override int BaseFireResistance{ get{ return 0; } }
|
||||
public override int BaseColdResistance{ get{ return 0; } }
|
||||
public override int BasePoisonResistance{ get{ return 0; } }
|
||||
public override int BaseEnergyResistance{ get{ return 0; } }
|
||||
|
||||
public override int InitMinHits{ get{ return 255; } }
|
||||
public override int InitMaxHits{ get{ return 255; } }
|
||||
|
||||
[Constructable]
|
||||
public NecromanticGlasses()
|
||||
{
|
||||
Attributes.LowerManaCost = 15;
|
||||
Attributes.LowerRegCost = 30;
|
||||
|
||||
Hue = 0x22D;
|
||||
}
|
||||
public NecromanticGlasses( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
writer.Write( (int) 1 );
|
||||
}
|
||||
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
int version = reader.ReadInt();
|
||||
|
||||
if ( version == 0 && Hue == 0 )
|
||||
Hue = 0x22D;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue