Created
June 24, 2019 08:04
-
-
Save DarkLotus/8ae7930b3c6a3a869d600ca250e5d2b4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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