50 lines
912 B
C#
50 lines
912 B
C#
using System;
|
|
using Server.Misc;
|
|
using Server.Mobiles;
|
|
|
|
namespace Server
|
|
{
|
|
class ValidSettings
|
|
{
|
|
public static double BoneDecay()
|
|
{
|
|
if ( Settings.S_BoneDecay < 1 )
|
|
{
|
|
Settings.S_BoneDecay = 0;
|
|
}
|
|
else if (Settings.S_BoneDecay < 10 )
|
|
{
|
|
Settings.S_BoneDecay = 10;
|
|
}
|
|
else if (Settings.S_BoneDecay > 1440 )
|
|
{
|
|
Settings.S_BoneDecay = 1440;
|
|
}
|
|
return (double)Settings.S_BoneDecay;
|
|
}
|
|
|
|
public static double BondDays()
|
|
{
|
|
int days = Settings.S_BondDays;
|
|
|
|
if ( days > 30 )
|
|
days = 30;
|
|
|
|
if ( days < 0 )
|
|
days = 0;
|
|
return (double)days;
|
|
}
|
|
public static int ExtraStableSlots()
|
|
{
|
|
int stable = Settings.S_Stables;
|
|
|
|
if ( stable < 0 )
|
|
stable = 0;
|
|
|
|
if ( stable > 20 )
|
|
stable = 20;
|
|
|
|
return stable;
|
|
}
|
|
}
|
|
}
|