Overwrite
Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
This commit is contained in:
65
Scripts/Items/Consumables/FruitBowl.cs
Normal file
65
Scripts/Items/Consumables/FruitBowl.cs
Normal file
@@ -0,0 +1,65 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user