Formatting FIxes (#58)
This commit is contained in:
parent
57fb9fb525
commit
096d39609e
1318 changed files with 11633 additions and 22129 deletions
|
|
@ -3,10 +3,7 @@ namespace Server.Mobiles
|
|||
public class CapturedHordeMinion : HordeMinion
|
||||
{
|
||||
[Constructible]
|
||||
public CapturedHordeMinion()
|
||||
{
|
||||
FightMode = FightMode.None;
|
||||
}
|
||||
public CapturedHordeMinion() => FightMode = FightMode.None;
|
||||
|
||||
public CapturedHordeMinion(Serial serial) : base(serial)
|
||||
{
|
||||
|
|
@ -14,10 +11,7 @@ namespace Server.Mobiles
|
|||
|
||||
public override bool InitialInnocent => true;
|
||||
|
||||
public override bool CanBeDamaged()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
public override bool CanBeDamaged() => false;
|
||||
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -444,11 +444,9 @@ namespace Server.Mobiles
|
|||
1062317); // For your valor in combating the fallen beast, a special artifact has been bestowed on you.
|
||||
}
|
||||
|
||||
public bool IsEligible(Mobile m, Item Artifact)
|
||||
{
|
||||
return m.Player && m.Alive && m.InRange(Location, 32) &&
|
||||
m.Backpack?.CheckHold(m, Artifact, false) == true;
|
||||
}
|
||||
public bool IsEligible(Mobile m, Item Artifact) =>
|
||||
m.Player && m.Alive && m.InRange(Location, 32) &&
|
||||
m.Backpack?.CheckHold(m, Artifact, false) == true;
|
||||
|
||||
public Item GetArtifact()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -71,30 +71,15 @@ namespace Server.Mobiles
|
|||
reflect = true;
|
||||
}
|
||||
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x101;
|
||||
}
|
||||
public override int GetIdleSound() => 0x101;
|
||||
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 0x5E;
|
||||
}
|
||||
public override int GetAngerSound() => 0x5E;
|
||||
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x1C2;
|
||||
}
|
||||
public override int GetDeathSound() => 0x1C2;
|
||||
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return -1; // unknown
|
||||
}
|
||||
public override int GetAttackSound() => -1;
|
||||
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x289;
|
||||
}
|
||||
public override int GetHurtSound() => 0x289;
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -109,30 +109,15 @@ namespace Server.Mobiles
|
|||
}
|
||||
}
|
||||
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 0x2F8;
|
||||
}
|
||||
public override int GetAngerSound() => 0x2F8;
|
||||
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x2F8;
|
||||
}
|
||||
public override int GetIdleSound() => 0x2F8;
|
||||
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return Utility.Random(0x2F5, 2);
|
||||
}
|
||||
public override int GetAttackSound() => Utility.Random(0x2F5, 2);
|
||||
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x2F9;
|
||||
}
|
||||
public override int GetHurtSound() => 0x2F9;
|
||||
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x2F7;
|
||||
}
|
||||
public override int GetDeathSound() => 0x2F7;
|
||||
|
||||
public void CheckQueen()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -209,10 +209,7 @@ namespace Server.Mobiles
|
|||
{
|
||||
private VirtualMountItem m_Item;
|
||||
|
||||
public VirtualMount(VirtualMountItem item)
|
||||
{
|
||||
m_Item = item;
|
||||
}
|
||||
public VirtualMount(VirtualMountItem item) => m_Item = item;
|
||||
|
||||
Mobile IMount.Rider
|
||||
{
|
||||
|
|
@ -241,10 +238,8 @@ namespace Server.Mobiles
|
|||
}
|
||||
|
||||
public VirtualMountItem(Serial serial)
|
||||
: base(serial)
|
||||
{
|
||||
: base(serial) =>
|
||||
m_Mount = new VirtualMount(this);
|
||||
}
|
||||
|
||||
public Mobile Rider{ get; private set; }
|
||||
|
||||
|
|
|
|||
|
|
@ -136,10 +136,7 @@ namespace Server.Mobiles
|
|||
bc.Karma = (int)(bc.Karma / KarmaBuff);
|
||||
}
|
||||
|
||||
public static bool CheckConvert(BaseCreature bc)
|
||||
{
|
||||
return CheckConvert(bc, bc.Location, bc.Map);
|
||||
}
|
||||
public static bool CheckConvert(BaseCreature bc) => CheckConvert(bc, bc.Location, bc.Map);
|
||||
|
||||
public static bool CheckConvert(BaseCreature bc, Point3D location, Map m)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -124,30 +124,15 @@ namespace Server.Mobiles
|
|||
eable.Free();
|
||||
}
|
||||
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return Utility.Random(0x2CE, 2);
|
||||
}
|
||||
public override int GetAngerSound() => Utility.Random(0x2CE, 2);
|
||||
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x2D2;
|
||||
}
|
||||
public override int GetIdleSound() => 0x2D2;
|
||||
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return Utility.Random(0x2C7, 5);
|
||||
}
|
||||
public override int GetAttackSound() => Utility.Random(0x2C7, 5);
|
||||
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x2D1;
|
||||
}
|
||||
public override int GetHurtSound() => 0x2D1;
|
||||
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x2CC;
|
||||
}
|
||||
public override int GetDeathSound() => 0x2CC;
|
||||
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -78,10 +78,7 @@ namespace Server.Mobiles
|
|||
public override bool ShowFameTitle => false;
|
||||
public override bool ClickTitle => false;
|
||||
|
||||
public override WeaponAbility GetWeaponAbility()
|
||||
{
|
||||
return WeaponAbility.DoubleStrike;
|
||||
}
|
||||
public override WeaponAbility GetWeaponAbility() => WeaponAbility.DoubleStrike;
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -3,10 +3,7 @@ namespace Server.Mobiles
|
|||
public class ServantOfSemidar : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public ServantOfSemidar() : base(AIType.AI_Melee, FightMode.None, 10, 1, 0.2, 0.4)
|
||||
{
|
||||
Body = 0x26;
|
||||
}
|
||||
public ServantOfSemidar() : base(AIType.AI_Melee, FightMode.None, 10, 1, 0.2, 0.4) => Body = 0x26;
|
||||
|
||||
public ServantOfSemidar(Serial serial) : base(serial)
|
||||
{
|
||||
|
|
@ -18,10 +15,7 @@ namespace Server.Mobiles
|
|||
|
||||
public override bool InitialInnocent => true;
|
||||
|
||||
public override bool CanBeDamaged()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
public override bool CanBeDamaged() => false;
|
||||
|
||||
public override void AddNameProperties(ObjectPropertyList list)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -49,10 +49,7 @@ namespace Server.Mobiles
|
|||
private int m_Count;
|
||||
private Wanderer m_Owner;
|
||||
|
||||
public InternalTimer(Wanderer owner) : base(TimeSpan.FromSeconds(0.1), TimeSpan.FromSeconds(0.1))
|
||||
{
|
||||
m_Owner = owner;
|
||||
}
|
||||
public InternalTimer(Wanderer owner) : base(TimeSpan.FromSeconds(0.1), TimeSpan.FromSeconds(0.1)) => m_Owner = owner;
|
||||
|
||||
protected override void OnTick()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue