Files
abysmal-isle/Scripts/Items/Consumables/FruitBowl.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

66 lines
1.7 KiB
C#

using System;
namespace Server.Items
{
public class FruitBowl : Food, ICommodity
{
[Constructable]
public FruitBowl()
: base(0x2D4F)
{
this.Weight = 1.0;
this.FillFactor = 20;
}
public FruitBowl(Serial serial)
: base(serial)
{
}
TextDefinition ICommodity.Description { get { return LabelNumber; } }
bool ICommodity.IsDeedable { get { return true; } }
public override int LabelNumber
{
get
{
return 1072950;
}
}// fruit bowl
public override bool Eat(Mobile from)
{
if (FillHunger(from, this.FillFactor))
{
string modName = this.Serial.ToString();
from.AddStatMod(new StatMod(StatType.Str, modName + "Str", 5, TimeSpan.FromSeconds(120)));
from.AddStatMod(new StatMod(StatType.Dex, modName + "Dex", 5, TimeSpan.FromSeconds(120)));
from.AddStatMod(new StatMod(StatType.Int, modName + "Int", 5, TimeSpan.FromSeconds(120)));
from.PlaySound(0x1EA);
from.FixedParticles(0x373A, 10, 15, 5018, EffectLayer.Waist);
this.Consume();
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();
}
}
}