Skip to content

Instantly share code, notes, and snippets.

@DarkLotus
Created June 24, 2019 08:04
Show Gist options
  • Save DarkLotus/8ae7930b3c6a3a869d600ca250e5d2b4 to your computer and use it in GitHub Desktop.
Save DarkLotus/8ae7930b3c6a3a869d600ca250e5d2b4 to your computer and use it in GitHub Desktop.
using System;
namespace Server.Items
{
[GoldValue(100)]
public class CapOftheWarrior : Cap
{
public override int LabelNumber => 1032733;
public override ItemRarity ItemRarity => ItemRarity.Magical;
[Constructable]
public CapOftheWarrior() : base(2064)
{
LootType = LootType.Cursed;
SkillBonuses.SetValues(0,SkillName.Tactics,Math.Round(Utility.RandomDouble() * 5,1));
Attributes.AttackChance = Utility.Random(1,5);
}
public CapOftheWarrior(Serial serial) : base(serial)
{
}
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.Write((byte)1);
}
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
var version = reader.ReadByte();
switch (version)
{
case 1:
{
break;
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment