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,82 @@
using System;
namespace Server.Items
{
public class CandlewoodTorch : BaseShield
{
public override int LabelNumber { get { return 1094957; } } //Candlewood Torch
public override bool IsArtifact { get { return true; } }
public bool Burning { get { return ItemID == 0xA12; } }
[Constructable]
public CandlewoodTorch()
: base(0xF6B)
{
LootType = LootType.Blessed;
Weight = 1.0;
Attributes.SpellChanneling = 1;
Attributes.CastSpeed = -1;
}
public CandlewoodTorch(Serial serial)
: base(serial)
{
}
public override void OnDoubleClick(Mobile from)
{
if (!IsChildOf(from.Backpack))
{
from.SendLocalizedMessage(1042001); // That must be in your pack for you to use it.
}
else
{
if (ItemID == 0xF6B)
{
ItemID = 0xA12;
}
else if (ItemID == 0xA12)
{
ItemID = 0xF6B;
}
}
var parent = Parent as Mobile;
if (parent == from && Burning)
{
Mobiles.MeerMage.StopEffect((Mobile)parent, true);
SwarmContext.CheckRemove((Mobile)parent);
}
}
public override void OnAdded(object parent)
{
base.OnAdded(parent);
if (parent is Mobile && Burning)
{
Mobiles.MeerMage.StopEffect((Mobile)parent, true);
SwarmContext.CheckRemove((Mobile)parent);
}
}
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.WriteEncodedInt(1); // version
}
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadEncodedInt();
if (version < 1)
{
LootType = LootType.Blessed;
Weight = 1.0;
}
}
}
}