Files
abysmal-isle/Scripts/Items/Equipment/Armor/EvilOrcHelm.cs
Unstable Kitsune b918192e4e Overwrite
Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
2023-11-28 23:20:26 -05:00

82 lines
2.0 KiB
C#

using System;
using Server.Misc;
namespace Server.Items
{
public class EvilOrcHelm : OrcHelm
{
[Constructable]
public EvilOrcHelm()
: base()
{
this.Hue = 0x96E;
this.Attributes.BonusStr = 10;
this.Attributes.BonusInt = this.IntOrDexPropertyValue;
this.Attributes.BonusDex = this.IntOrDexPropertyValue;
}
public EvilOrcHelm(Serial serial)
: base(serial)
{
}
public override int LabelNumber
{
get
{
return 1062021;
}
}// an evil orc helm
public override bool UseIntOrDexProperty
{
get
{
if (Core.SA && !(this.Parent is Mobile))
return true;
return base.UseIntOrDexProperty;
}
}
public override int IntOrDexPropertyValue
{
get
{
return -10;
}
}
public override bool OnEquip(Mobile from)
{
if (from.RawInt > from.RawDex)
this.Attributes.BonusDex = 0;
else
this.Attributes.BonusInt = 0;
Titles.AwardKarma(from, -22, true);
return base.OnEquip(from);
}
public override void OnRemoved(object parent)
{
base.OnRemoved(parent);
if (parent is Mobile)
{
this.Attributes.BonusInt = this.IntOrDexPropertyValue;
this.Attributes.BonusDex = this.IntOrDexPropertyValue;
}
}
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();
}
}
}