Overwrite

Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
This commit is contained in:
Unstable Kitsune
2023-11-28 23:20:26 -05:00
parent 3cd54811de
commit b918192e4e
11608 changed files with 2644205 additions and 47 deletions

View File

@@ -0,0 +1,90 @@
// Created by GreyWolf79
// Created for crafting shards
using System;
using Server;
namespace Server.Items
{
public class TamingShroud : HoodedShroudOfShadows
{
// For skill mods above cap without changing everything to above cap - GreyWolf.
public SkillMod m_SkillMod0;
[Constructable]
public TamingShroud()
{
Name = "a Taming Shroud";
Hue = 1161;
Attributes.CastSpeed = 1;
Attributes.CastRecovery = 2;
SkillBonuses.SetValues(0, SkillName.AnimalTaming, 10.0);
DefineMods();
}
public void DefineMods()
{
m_SkillMod0 = new DefaultSkillMod(SkillName.AnimalTaming, true, 10);
}
public void SetMods(Mobile wearer)
{
wearer.AddSkillMod(m_SkillMod0);
}
public override bool OnEquip(Mobile from)
{
SetMods(from);
return true;
}
public override void OnRemoved(object parent)
{
if (parent is Mobile)
{
Mobile m = (Mobile)parent;
m.RemoveStatMod("TamingShroud");
if (m_SkillMod0 != null)
m_SkillMod0.Remove();
}
}
public override void OnSingleClick(Mobile from)
{
this.LabelTo(from, Name);
}
public TamingShroud( Serial serial ) : base( serial )
{
DefineMods();
if (Parent != null && this.Parent is Mobile)
SetMods((Mobile)Parent);
}
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();
}
}
}