fix: Stages faction code for serialization conversion (#1835)
This commit is contained in:
parent
20596e52fa
commit
221312be4c
43 changed files with 6234 additions and 6364 deletions
|
|
@ -1,21 +1,20 @@
|
|||
using System;
|
||||
|
||||
namespace Server.Factions
|
||||
namespace Server.Factions;
|
||||
|
||||
public class SilverGivenEntry
|
||||
{
|
||||
public class SilverGivenEntry
|
||||
public static readonly TimeSpan ExpirePeriod = TimeSpan.FromHours(3.0);
|
||||
|
||||
public SilverGivenEntry(Mobile givenTo)
|
||||
{
|
||||
public static readonly TimeSpan ExpirePeriod = TimeSpan.FromHours(3.0);
|
||||
|
||||
public SilverGivenEntry(Mobile givenTo)
|
||||
{
|
||||
GivenTo = givenTo;
|
||||
TimeOfGift = Core.Now;
|
||||
}
|
||||
|
||||
public Mobile GivenTo { get; }
|
||||
|
||||
public DateTime TimeOfGift { get; }
|
||||
|
||||
public bool IsExpired => TimeOfGift + ExpirePeriod < Core.Now;
|
||||
GivenTo = givenTo;
|
||||
TimeOfGift = Core.Now;
|
||||
}
|
||||
}
|
||||
|
||||
public Mobile GivenTo { get; }
|
||||
|
||||
public DateTime TimeOfGift { get; }
|
||||
|
||||
public bool IsExpired => TimeOfGift + ExpirePeriod < Core.Now;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue