Formatting FIxes (#58)
This commit is contained in:
parent
57fb9fb525
commit
096d39609e
1318 changed files with 11633 additions and 22129 deletions
|
|
@ -201,9 +201,8 @@ namespace Server.Mobiles
|
|||
public AvengeTimer(Mobile focus) :
|
||||
base(TimeSpan.FromSeconds(2.5), TimeSpan.FromSeconds(1.0),
|
||||
3) // After 2.5 seconds, one guard will spawn every 1.0 second, three times
|
||||
{
|
||||
m_Focus = focus;
|
||||
}
|
||||
=>
|
||||
m_Focus = focus;
|
||||
|
||||
protected override void OnTick()
|
||||
{
|
||||
|
|
@ -216,10 +215,7 @@ namespace Server.Mobiles
|
|||
private ArcherGuard m_Owner;
|
||||
// private bool m_Shooting;
|
||||
|
||||
public AttackTimer(ArcherGuard owner) : base(TimeSpan.FromSeconds(0.25), TimeSpan.FromSeconds(0.1))
|
||||
{
|
||||
m_Owner = owner;
|
||||
}
|
||||
public AttackTimer(ArcherGuard owner) : base(TimeSpan.FromSeconds(0.25), TimeSpan.FromSeconds(0.1)) => m_Owner = owner;
|
||||
|
||||
public void DoOnTick()
|
||||
{
|
||||
|
|
@ -328,20 +324,11 @@ namespace Server.Mobiles
|
|||
}*/
|
||||
}
|
||||
|
||||
private bool TimeToSpare()
|
||||
{
|
||||
return m_Owner.NextCombatTime - Core.TickCount > 1000;
|
||||
}
|
||||
private bool TimeToSpare() => m_Owner.NextCombatTime - Core.TickCount > 1000;
|
||||
|
||||
private bool OutOfMaxDistance(Mobile target)
|
||||
{
|
||||
return !m_Owner.InRange(target, m_Owner.Weapon.MaxRange);
|
||||
}
|
||||
private bool OutOfMaxDistance(Mobile target) => !m_Owner.InRange(target, m_Owner.Weapon.MaxRange);
|
||||
|
||||
private bool InMinDistance(Mobile target)
|
||||
{
|
||||
return m_Owner.InRange(target, 4);
|
||||
}
|
||||
private bool InMinDistance(Mobile target) => m_Owner.InRange(target, 4);
|
||||
|
||||
private void TeleportTo(Mobile target)
|
||||
{
|
||||
|
|
@ -364,10 +351,7 @@ namespace Server.Mobiles
|
|||
private ArcherGuard m_Owner;
|
||||
private int m_Stage;
|
||||
|
||||
public IdleTimer(ArcherGuard owner) : base(TimeSpan.FromSeconds(2.0), TimeSpan.FromSeconds(2.5))
|
||||
{
|
||||
m_Owner = owner;
|
||||
}
|
||||
public IdleTimer(ArcherGuard owner) : base(TimeSpan.FromSeconds(2.0), TimeSpan.FromSeconds(2.5)) => m_Owner = owner;
|
||||
|
||||
protected override void OnTick()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -234,10 +234,7 @@ namespace Server.Mobiles
|
|||
{
|
||||
private Mobile m_Focus;
|
||||
|
||||
public AvengeTimer(Mobile focus) : base(TimeSpan.FromSeconds(2.5), TimeSpan.FromSeconds(1.0), 3)
|
||||
{
|
||||
m_Focus = focus;
|
||||
}
|
||||
public AvengeTimer(Mobile focus) : base(TimeSpan.FromSeconds(2.5), TimeSpan.FromSeconds(1.0), 3) => m_Focus = focus;
|
||||
|
||||
protected override void OnTick()
|
||||
{
|
||||
|
|
@ -249,10 +246,7 @@ namespace Server.Mobiles
|
|||
{
|
||||
private WarriorGuard m_Owner;
|
||||
|
||||
public AttackTimer(WarriorGuard owner) : base(TimeSpan.FromSeconds(0.25), TimeSpan.FromSeconds(0.1))
|
||||
{
|
||||
m_Owner = owner;
|
||||
}
|
||||
public AttackTimer(WarriorGuard owner) : base(TimeSpan.FromSeconds(0.25), TimeSpan.FromSeconds(0.1)) => m_Owner = owner;
|
||||
|
||||
public void DoOnTick()
|
||||
{
|
||||
|
|
@ -354,10 +348,7 @@ namespace Server.Mobiles
|
|||
private WarriorGuard m_Owner;
|
||||
private int m_Stage;
|
||||
|
||||
public IdleTimer(WarriorGuard owner) : base(TimeSpan.FromSeconds(2.0), TimeSpan.FromSeconds(2.5))
|
||||
{
|
||||
m_Owner = owner;
|
||||
}
|
||||
public IdleTimer(WarriorGuard owner) : base(TimeSpan.FromSeconds(2.0), TimeSpan.FromSeconds(2.5)) => m_Owner = owner;
|
||||
|
||||
protected override void OnTick()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue