Files
abysmal-isle/Scripts/Items/Consumables/WrathGrapes.cs
Unstable Kitsune b918192e4e Overwrite
Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
2023-11-28 23:20:26 -05:00

79 lines
1.9 KiB
C#

using System;
namespace Server.Items
{
[TypeAlias("Server.Items.WrathGrapes")]
public class GrapesOfWrath : BaseMagicalFood, ICommodity
{
TextDefinition ICommodity.Description { get { return LabelNumber; } }
bool ICommodity.IsDeedable { get { return true; } }
[Constructable]
public GrapesOfWrath()
: base(0x2FD7)
{
Weight = 1.0;
Hue = 0x482;
Stackable = true;
}
public GrapesOfWrath(Serial serial)
: base(serial)
{
}
public override MagicalFood FoodID
{
get
{
return MagicalFood.GrapesOfWrath;
}
}
public override TimeSpan Cooldown
{
get
{
return TimeSpan.FromMinutes(2);
}
}
public override TimeSpan Duration
{
get
{
return TimeSpan.FromSeconds(20);
}
}
public override int EatMessage
{
get
{
return 1074847;
}
}// The grapes of wrath invigorate you for a short time, allowing you to deal extra damage.
public override bool Eat(Mobile from)
{
if (base.Eat(from))
{
BuffInfo.AddBuff(from, new BuffInfo(BuffIcon.GrapesOfWrath, 1032247, 1153762, Duration, from, "15\t35"));
return true;
}
return false;
}
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.Write((int)0); // version
}
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
}
}
}