#W# Added setting in Scripts/Settings.cs to adjust the stat gain cooldown.
This commit is contained in:
parent
eb3beb55b4
commit
f9bfa164e4
2 changed files with 15 additions and 3 deletions
|
|
@ -202,5 +202,17 @@ namespace Server.Misc
|
|||
// The maximum amount of time will be 30 minutes beyond the minimum.
|
||||
return 90;
|
||||
}
|
||||
|
||||
public static double PlayerStatGainDelay()
|
||||
{
|
||||
// How many minutes between stat gains for players? (Default is 15.0)
|
||||
return 15.0;
|
||||
}
|
||||
|
||||
public static double PetStatGainDelay()
|
||||
{
|
||||
// How many minutes between stat gains for pets? (Default is 5.0)
|
||||
return 5.0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -520,8 +520,8 @@ namespace Server.Misc
|
|||
}
|
||||
}
|
||||
|
||||
private static TimeSpan m_StatGainDelay = TimeSpan.FromMinutes( 15.0 );
|
||||
private static TimeSpan m_PetStatGainDelay = TimeSpan.FromMinutes( 5.0 );
|
||||
private static TimeSpan m_StatGainDelay = TimeSpan.FromMinutes( Server.Misc.Settings.PlayerStatGainDelay() );
|
||||
private static TimeSpan m_PetStatGainDelay = TimeSpan.FromMinutes( Server.Misc.Settings.PetStatGainDelay() );
|
||||
|
||||
public static void GainStat( Mobile from, Stat stat )
|
||||
{
|
||||
|
|
@ -571,4 +571,4 @@ namespace Server.Misc
|
|||
IncreaseStat( from, stat, atrophy );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue