Formatting FIxes (#58)
This commit is contained in:
parent
57fb9fb525
commit
096d39609e
1318 changed files with 11633 additions and 22129 deletions
|
|
@ -52,30 +52,15 @@ namespace Server.Mobiles
|
|||
AddLoot(LootPack.FilthyRich);
|
||||
}
|
||||
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 0x56d;
|
||||
}
|
||||
public override int GetAngerSound() => 0x56d;
|
||||
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x56b;
|
||||
}
|
||||
public override int GetIdleSound() => 0x56b;
|
||||
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x56c;
|
||||
}
|
||||
public override int GetAttackSound() => 0x56c;
|
||||
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x56c;
|
||||
}
|
||||
public override int GetHurtSound() => 0x56c;
|
||||
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x56e;
|
||||
}
|
||||
public override int GetDeathSound() => 0x56e;
|
||||
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -68,30 +68,15 @@ namespace Server.Mobiles
|
|||
* Acid last 10 seconds
|
||||
*/
|
||||
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 0x581;
|
||||
}
|
||||
public override int GetAngerSound() => 0x581;
|
||||
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x582;
|
||||
}
|
||||
public override int GetIdleSound() => 0x582;
|
||||
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x580;
|
||||
}
|
||||
public override int GetAttackSound() => 0x580;
|
||||
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x583;
|
||||
}
|
||||
public override int GetHurtSound() => 0x583;
|
||||
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x584;
|
||||
}
|
||||
public override int GetDeathSound() => 0x584;
|
||||
|
||||
public override void OnDamage(int amount, Mobile from, bool willKill)
|
||||
{
|
||||
|
|
@ -101,15 +86,9 @@ namespace Server.Mobiles
|
|||
base.OnDamage(amount, from, willKill);
|
||||
}
|
||||
|
||||
private int RandomPoint(int mid)
|
||||
{
|
||||
return mid + Utility.RandomMinMax(-2, 2);
|
||||
}
|
||||
private int RandomPoint(int mid) => mid + Utility.RandomMinMax(-2, 2);
|
||||
|
||||
public virtual Point3D GetSpawnPosition(int range)
|
||||
{
|
||||
return GetSpawnPosition(Location, Map, range);
|
||||
}
|
||||
public virtual Point3D GetSpawnPosition(int range) => GetSpawnPosition(Location, Map, range);
|
||||
|
||||
public virtual Point3D GetSpawnPosition(Point3D from, Map map, int range)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -114,11 +114,9 @@ namespace Server.Mobiles
|
|||
PlaySound(0x1D3);
|
||||
}
|
||||
|
||||
public bool IsValidTarget(PlayerMobile m)
|
||||
{
|
||||
return m?.PeacedUntil < DateTime.UtcNow && !m.Hidden && m.AccessLevel == AccessLevel.Player &&
|
||||
CanBeHarmful(m);
|
||||
}
|
||||
public bool IsValidTarget(PlayerMobile m) =>
|
||||
m?.PeacedUntil < DateTime.UtcNow && !m.Hidden && m.AccessLevel == AccessLevel.Player &&
|
||||
CanBeHarmful(m);
|
||||
|
||||
#endregion
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue