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,93 @@
#region Header
// _,-'/-'/
// . __,-; ,'( '/
// \. `-.__`-._`:_,-._ _ , . ``
// `:-._,------' ` _,`--` -: `_ , ` ,' :
// `---..__,,--' (C) 2023 ` -'. -'
// # Vita-Nex [http://core.vita-nex.com] #
// {o)xxx|===============- # -===============|xxx(o}
// # #
#endregion
#region References
using System;
using Server;
using Server.Mobiles;
#endregion
namespace VitaNex.Items
{
public interface IVendorToken
{
string Name { get; set; }
int Amount { get; set; }
bool Stackable { get; set; }
void Deserialize(GenericReader reader);
void Serialize(GenericWriter writer);
}
public abstract class VendorToken : Item, IVendorToken
{
public override bool DisplayWeight => false;
public VendorToken()
: this(1)
{ }
public VendorToken(int amount)
: base(0xEED)
{
Name = "Vendor Token";
Hue = 85;
Weight = 0;
Stackable = true;
Amount = Math.Max(1, Math.Min(60000, amount));
LootType = LootType.Blessed;
}
public VendorToken(Serial serial)
: base(serial)
{ }
public override DeathMoveResult OnInventoryDeath(Mobile parent)
{
if (parent is BaseCreature)
{
return DeathMoveResult.MoveToCorpse;
}
return base.OnInventoryDeath(parent);
}
public override int GetDropSound()
{
if (Amount <= 1)
{
return 0x2E4;
}
if (Amount <= 5)
{
return 0x2E5;
}
return 0x2E6;
}
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.SetVersion(0);
}
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
reader.GetVersion();
}
}
}