Reorganizes Project (#41)
This commit is contained in:
parent
08bf44af9a
commit
3614a66aee
3499 changed files with 79 additions and 55 deletions
57
Projects/Scripts/Items/Armor/Artifacts/LeggingsOfBane.cs
Normal file
57
Projects/Scripts/Items/Armor/Artifacts/LeggingsOfBane.cs
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
namespace Server.Items
|
||||
{
|
||||
public class LeggingsOfBane : ChainLegs
|
||||
{
|
||||
[Constructible]
|
||||
public LeggingsOfBane()
|
||||
{
|
||||
Hue = 0x4F5;
|
||||
ArmorAttributes.DurabilityBonus = 100;
|
||||
HitPoints = MaxHitPoints =
|
||||
255; //Cause the Durability bonus and such and the min/max hits as well as all other hits being whole #'s...
|
||||
Attributes.BonusStam = 8;
|
||||
Attributes.AttackChance = 20;
|
||||
}
|
||||
|
||||
public LeggingsOfBane(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override int LabelNumber => 1061100; // Leggings of Bane
|
||||
public override int ArtifactRarity => 11;
|
||||
|
||||
public override int BasePoisonResistance => 36;
|
||||
|
||||
public override int InitMinHits => 255;
|
||||
public override int InitMaxHits => 255;
|
||||
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
|
||||
writer.Write(2);
|
||||
}
|
||||
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
|
||||
int version = reader.ReadInt();
|
||||
|
||||
if (version <= 1)
|
||||
if (HitPoints > 255 || MaxHitPoints > 255)
|
||||
HitPoints = MaxHitPoints = 255;
|
||||
|
||||
if (version < 1)
|
||||
{
|
||||
if (Hue == 0x559)
|
||||
Hue = 0x4F5;
|
||||
|
||||
if (ArmorAttributes.DurabilityBonus == 0)
|
||||
ArmorAttributes.DurabilityBonus = 100;
|
||||
|
||||
PoisonBonus = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue