#W# Exhuation system implimented. And Food has been tweaked.
This commit is contained in:
parent
6cb014d51c
commit
15bb9dccb8
9 changed files with 211 additions and 181 deletions
|
|
@ -41,7 +41,7 @@ namespace Server.Items
|
|||
{
|
||||
Stackable = true;
|
||||
Amount = amount;
|
||||
m_FillFactor = 1;
|
||||
m_FillFactor = 5;
|
||||
}
|
||||
|
||||
public Food( Serial serial ) : base( serial )
|
||||
|
|
@ -91,7 +91,7 @@ namespace Server.Items
|
|||
|
||||
static public bool FillHunger( Mobile from, int fillFactor )
|
||||
{
|
||||
if ( from.Hunger >= 20 )
|
||||
if ( from.Hunger >= 100 )
|
||||
{
|
||||
from.SendLocalizedMessage( 500867 ); // You are simply too full to eat any more!
|
||||
return false;
|
||||
|
|
@ -100,20 +100,20 @@ namespace Server.Items
|
|||
int iHunger = from.Hunger + fillFactor;
|
||||
if ( from.Stam < from.StamMax )
|
||||
from.Stam += Utility.Random( 6, 3 ) + fillFactor/5;//restore some stamina
|
||||
if ( iHunger >= 20 )
|
||||
if ( iHunger >= 100 )
|
||||
{
|
||||
from.Hunger = 20;
|
||||
from.Hunger = 100;
|
||||
from.SendLocalizedMessage( 500872 ); // You manage to eat the food, but you are stuffed!
|
||||
}
|
||||
else
|
||||
{
|
||||
from.Hunger = iHunger;
|
||||
|
||||
if ( iHunger < 5 )
|
||||
if ( iHunger < 30 )
|
||||
from.SendLocalizedMessage( 500868 ); // You eat the food, but are still extremely hungry.
|
||||
else if ( iHunger < 10 )
|
||||
else if ( iHunger < 50 )
|
||||
from.SendLocalizedMessage( 500869 ); // You eat the food, and begin to feel more satiated.
|
||||
else if ( iHunger < 15 )
|
||||
else if ( iHunger < 75 )
|
||||
from.SendLocalizedMessage( 500870 ); // After eating the food, you feel much less hungry.
|
||||
else
|
||||
from.SendLocalizedMessage( 500871 ); // You feel quite full after consuming the food.
|
||||
|
|
@ -186,7 +186,7 @@ namespace Server.Items
|
|||
public BreadLoaf( int amount ) : base( amount, 0x103B )
|
||||
{
|
||||
this.Weight = 1.0;
|
||||
this.FillFactor = 3;
|
||||
this.FillFactor = 15;
|
||||
}
|
||||
|
||||
public BreadLoaf( Serial serial ) : base( serial )
|
||||
|
|
@ -219,7 +219,7 @@ namespace Server.Items
|
|||
public Bacon( int amount ) : base( amount, 0x979 )
|
||||
{
|
||||
this.Weight = 1.0;
|
||||
this.FillFactor = 1;
|
||||
this.FillFactor = 10;
|
||||
}
|
||||
|
||||
public Bacon( Serial serial ) : base( serial )
|
||||
|
|
@ -252,7 +252,7 @@ namespace Server.Items
|
|||
public SlabOfBacon( int amount ) : base( amount, 0x976 )
|
||||
{
|
||||
this.Weight = 1.0;
|
||||
this.FillFactor = 3;
|
||||
this.FillFactor = 20;
|
||||
}
|
||||
|
||||
public SlabOfBacon( Serial serial ) : base( serial )
|
||||
|
|
@ -289,7 +289,7 @@ namespace Server.Items
|
|||
[Constructable]
|
||||
public FishSteak( int amount ) : base( amount, 0x97B )
|
||||
{
|
||||
this.FillFactor = 3;
|
||||
this.FillFactor = 15;
|
||||
}
|
||||
|
||||
public FishSteak( Serial serial ) : base( serial )
|
||||
|
|
@ -326,7 +326,7 @@ namespace Server.Items
|
|||
[Constructable]
|
||||
public CheeseWheel( int amount ) : base( amount, 0x97E )
|
||||
{
|
||||
this.FillFactor = 3;
|
||||
this.FillFactor = 15;
|
||||
}
|
||||
|
||||
public CheeseWheel( Serial serial ) : base( serial )
|
||||
|
|
@ -363,7 +363,7 @@ namespace Server.Items
|
|||
[Constructable]
|
||||
public CheeseWedge( int amount ) : base( amount, 0x97D )
|
||||
{
|
||||
this.FillFactor = 3;
|
||||
this.FillFactor = 10;
|
||||
}
|
||||
|
||||
public CheeseWedge( Serial serial ) : base( serial )
|
||||
|
|
@ -400,7 +400,7 @@ namespace Server.Items
|
|||
[Constructable]
|
||||
public CheeseSlice( int amount ) : base( amount, 0x97C )
|
||||
{
|
||||
this.FillFactor = 1;
|
||||
this.FillFactor = 5;
|
||||
}
|
||||
|
||||
public CheeseSlice( Serial serial ) : base( serial )
|
||||
|
|
@ -433,7 +433,7 @@ namespace Server.Items
|
|||
public FrenchBread( int amount ) : base( amount, 0x98C )
|
||||
{
|
||||
this.Weight = 2.0;
|
||||
this.FillFactor = 3;
|
||||
this.FillFactor = 15;
|
||||
}
|
||||
|
||||
public FrenchBread( Serial serial ) : base( serial )
|
||||
|
|
@ -467,7 +467,7 @@ namespace Server.Items
|
|||
public FriedEggs( int amount ) : base( amount, 0x9B6 )
|
||||
{
|
||||
this.Weight = 1.0;
|
||||
this.FillFactor = 4;
|
||||
this.FillFactor = 15;
|
||||
}
|
||||
|
||||
public FriedEggs( Serial serial ) : base( serial )
|
||||
|
|
@ -500,7 +500,7 @@ namespace Server.Items
|
|||
public CookedBird( int amount ) : base( amount, 0x9B7 )
|
||||
{
|
||||
this.Weight = 1.0;
|
||||
this.FillFactor = 5;
|
||||
this.FillFactor = 20;
|
||||
}
|
||||
|
||||
public CookedBird( Serial serial ) : base( serial )
|
||||
|
|
@ -533,7 +533,7 @@ namespace Server.Items
|
|||
public RoastPig( int amount ) : base( amount, 0x9BB )
|
||||
{
|
||||
this.Weight = 45.0;
|
||||
this.FillFactor = 20;
|
||||
this.FillFactor = 50;
|
||||
}
|
||||
|
||||
public RoastPig( Serial serial ) : base( serial )
|
||||
|
|
@ -566,7 +566,7 @@ namespace Server.Items
|
|||
public Sausage( int amount ) : base( amount, 0x9C0 )
|
||||
{
|
||||
this.Weight = 1.0;
|
||||
this.FillFactor = 4;
|
||||
this.FillFactor = 15;
|
||||
}
|
||||
|
||||
public Sausage( Serial serial ) : base( serial )
|
||||
|
|
@ -599,7 +599,7 @@ namespace Server.Items
|
|||
public Ham( int amount ) : base( amount, 0x9C9 )
|
||||
{
|
||||
this.Weight = 1.0;
|
||||
this.FillFactor = 5;
|
||||
this.FillFactor = 20;
|
||||
}
|
||||
|
||||
public Ham( Serial serial ) : base( serial )
|
||||
|
|
@ -628,7 +628,7 @@ namespace Server.Items
|
|||
{
|
||||
Stackable = false;
|
||||
this.Weight = 1.0;
|
||||
this.FillFactor = 10;
|
||||
this.FillFactor = 20;
|
||||
}
|
||||
|
||||
public Cake( Serial serial ) : base( serial )
|
||||
|
|
@ -661,7 +661,7 @@ namespace Server.Items
|
|||
public Ribs( int amount ) : base( amount, 0x9F2 )
|
||||
{
|
||||
this.Weight = 1.0;
|
||||
this.FillFactor = 5;
|
||||
this.FillFactor = 20;
|
||||
}
|
||||
|
||||
public Ribs( Serial serial ) : base( serial )
|
||||
|
|
@ -690,7 +690,7 @@ namespace Server.Items
|
|||
{
|
||||
Stackable = false;
|
||||
this.Weight = 1.0;
|
||||
this.FillFactor = 4;
|
||||
this.FillFactor = 15;
|
||||
}
|
||||
|
||||
public Cookies( Serial serial ) : base( serial )
|
||||
|
|
@ -719,7 +719,7 @@ namespace Server.Items
|
|||
{
|
||||
Stackable = false;
|
||||
this.Weight = 1.0;
|
||||
this.FillFactor = 4;
|
||||
this.FillFactor = 15;
|
||||
}
|
||||
|
||||
public Muffins( Serial serial ) : base( serial )
|
||||
|
|
@ -751,7 +751,7 @@ namespace Server.Items
|
|||
{
|
||||
Stackable = false;
|
||||
this.Weight = 1.0;
|
||||
this.FillFactor = 6;
|
||||
this.FillFactor = 25;
|
||||
}
|
||||
|
||||
public CheesePizza( Serial serial ) : base( serial )
|
||||
|
|
@ -782,7 +782,7 @@ namespace Server.Items
|
|||
{
|
||||
Stackable = false;
|
||||
this.Weight = 1.0;
|
||||
this.FillFactor = 6;
|
||||
this.FillFactor = 25;
|
||||
}
|
||||
|
||||
public SausagePizza( Serial serial ) : base( serial )
|
||||
|
|
@ -812,7 +812,7 @@ namespace Server.Items
|
|||
{
|
||||
Stackable = false;
|
||||
this.Weight = 1.0;
|
||||
this.FillFactor = 6;
|
||||
this.FillFactor = 20;
|
||||
}
|
||||
|
||||
public Pizza( Serial serial ) : base( serial )
|
||||
|
|
@ -844,7 +844,7 @@ namespace Server.Items
|
|||
{
|
||||
Stackable = false;
|
||||
this.Weight = 1.0;
|
||||
this.FillFactor = 5;
|
||||
this.FillFactor = 15;
|
||||
}
|
||||
|
||||
public FruitPie( Serial serial ) : base( serial )
|
||||
|
|
@ -875,7 +875,7 @@ namespace Server.Items
|
|||
{
|
||||
Stackable = false;
|
||||
this.Weight = 1.0;
|
||||
this.FillFactor = 5;
|
||||
this.FillFactor = 20;
|
||||
}
|
||||
|
||||
public MeatPie( Serial serial ) : base( serial )
|
||||
|
|
@ -906,7 +906,7 @@ namespace Server.Items
|
|||
{
|
||||
Stackable = false;
|
||||
this.Weight = 1.0;
|
||||
this.FillFactor = 5;
|
||||
this.FillFactor = 25;
|
||||
}
|
||||
|
||||
public PumpkinPie( Serial serial ) : base( serial )
|
||||
|
|
@ -937,7 +937,7 @@ namespace Server.Items
|
|||
{
|
||||
Stackable = false;
|
||||
this.Weight = 1.0;
|
||||
this.FillFactor = 5;
|
||||
this.FillFactor = 20;
|
||||
}
|
||||
|
||||
public ApplePie( Serial serial ) : base( serial )
|
||||
|
|
@ -968,7 +968,7 @@ namespace Server.Items
|
|||
{
|
||||
Stackable = false;
|
||||
this.Weight = 1.0;
|
||||
this.FillFactor = 5;
|
||||
this.FillFactor = 25;
|
||||
}
|
||||
|
||||
public PeachCobbler( Serial serial ) : base( serial )
|
||||
|
|
@ -999,7 +999,7 @@ namespace Server.Items
|
|||
{
|
||||
Stackable = false;
|
||||
this.Weight = 1.0;
|
||||
this.FillFactor = 5;
|
||||
this.FillFactor = 15;
|
||||
}
|
||||
|
||||
public Quiche( Serial serial ) : base( serial )
|
||||
|
|
@ -1032,7 +1032,7 @@ namespace Server.Items
|
|||
public LambLeg( int amount ) : base( amount, 0x160a )
|
||||
{
|
||||
this.Weight = 2.0;
|
||||
this.FillFactor = 5;
|
||||
this.FillFactor = 20;
|
||||
}
|
||||
|
||||
public LambLeg( Serial serial ) : base( serial )
|
||||
|
|
@ -1065,7 +1065,7 @@ namespace Server.Items
|
|||
public ChickenLeg( int amount ) : base( amount, 0x1608 )
|
||||
{
|
||||
this.Weight = 1.0;
|
||||
this.FillFactor = 4;
|
||||
this.FillFactor = 20;
|
||||
Name = "bird leg";
|
||||
}
|
||||
|
||||
|
|
@ -1100,7 +1100,7 @@ namespace Server.Items
|
|||
public HoneydewMelon( int amount ) : base( amount, 0xC74 )
|
||||
{
|
||||
this.Weight = 1.0;
|
||||
this.FillFactor = 1;
|
||||
this.FillFactor = 5;
|
||||
}
|
||||
|
||||
public HoneydewMelon( Serial serial ) : base( serial )
|
||||
|
|
@ -1134,7 +1134,7 @@ namespace Server.Items
|
|||
public YellowGourd( int amount ) : base( amount, 0xC64 )
|
||||
{
|
||||
this.Weight = 1.0;
|
||||
this.FillFactor = 1;
|
||||
this.FillFactor = 5;
|
||||
}
|
||||
|
||||
public YellowGourd( Serial serial ) : base( serial )
|
||||
|
|
@ -1168,7 +1168,7 @@ namespace Server.Items
|
|||
public GreenGourd( int amount ) : base( amount, 0xC66 )
|
||||
{
|
||||
this.Weight = 1.0;
|
||||
this.FillFactor = 1;
|
||||
this.FillFactor = 5;
|
||||
}
|
||||
|
||||
public GreenGourd( Serial serial ) : base( serial )
|
||||
|
|
@ -1202,7 +1202,7 @@ namespace Server.Items
|
|||
public EarOfCorn( int amount ) : base( amount, 0xC81 )
|
||||
{
|
||||
this.Weight = 1.0;
|
||||
this.FillFactor = 1;
|
||||
this.FillFactor = 5;
|
||||
}
|
||||
|
||||
public EarOfCorn( Serial serial ) : base( serial )
|
||||
|
|
@ -1235,7 +1235,7 @@ namespace Server.Items
|
|||
public Turnip( int amount ) : base( amount, 0xD3A )
|
||||
{
|
||||
this.Weight = 1.0;
|
||||
this.FillFactor = 1;
|
||||
this.FillFactor = 5;
|
||||
}
|
||||
|
||||
public Turnip( Serial serial ) : base( serial )
|
||||
|
|
@ -1283,4 +1283,4 @@ namespace Server.Items
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue