#W# Fixed serialization but with PlayerConstructed.

This commit is contained in:
WarrentyExpired 2026-07-14 10:36:59 -04:00
parent 1d5ccf99dc
commit f698d96dbb
4 changed files with 7 additions and 4 deletions

View file

@ -616,6 +616,9 @@ namespace Server.Items
if ( GetSaveFlag( flags, SaveFlag.MedAllowance ) )
writer.WriteEncodedInt( (int) m_Meditate );
if ( GetSaveFlag( flags, SaveFlag.PlayerConstructed ) )
writer.Write( (bool) m_PlayerConstructed );
}
public override void Deserialize( GenericReader reader )

View file

@ -1450,7 +1450,7 @@ namespace Server.Items
}
if ( GetSaveFlag( flags, SaveFlag.PlayerConstructed ) )
m_PlayerConstructed = reader.ReadBool();
m_PlayerConstructed = true;
if( GetSaveFlag( flags, SaveFlag.Slayer2 ) )
m_Slayer2 = (SlayerName)reader.ReadInt();

View file

@ -8,7 +8,7 @@ namespace Server.Misc
public class AutoSave : Timer
{
private static TimeSpan m_Delay = TimeSpan.FromMinutes( Server.Misc.Settings.SaveInterval() );
private static TimeSpan m_Warning = TimeSpan.Zero;
private static TimeSpan m_Warning = TimeSpan.FromSeconds( 15.0 );
public static void Initialize()
{

View file

@ -53,7 +53,7 @@ namespace Server.Misc
public static double SaveInterval()
{
// How many minutes does your server save its information?
return 30.0;
return 5.0;
}
public static bool CastSpellsHoldingThings()