C# 9 Cleanup (#325)
- [X] Removes EventArgs - not needed - [X] Merges sequential checks - [X] Removes redundant type declarations
This commit is contained in:
parent
351611a23a
commit
3551d962f7
417 changed files with 2209 additions and 2213 deletions
|
|
@ -94,7 +94,7 @@ namespace Server.Mobiles
|
|||
SkillName.Meditation
|
||||
};
|
||||
|
||||
private static readonly Queue<Item> m_Obstacles = new Queue<Item>();
|
||||
private static readonly Queue<Item> m_Obstacles = new();
|
||||
protected ActionType m_Action;
|
||||
|
||||
public BaseCreature m_Mobile;
|
||||
|
|
@ -380,8 +380,7 @@ namespace Server.Mobiles
|
|||
var skill = ourSkills[i];
|
||||
var theirSkill = theirSkills[i];
|
||||
|
||||
if (skill != null && skill.Base >= 60.0 &&
|
||||
m_Mobile.CheckTeach(skill.SkillName, e.Mobile))
|
||||
if (skill?.Base >= 60.0 && m_Mobile.CheckTeach(skill.SkillName, e.Mobile))
|
||||
{
|
||||
var toTeach = skill.Base / 3.0;
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ namespace Server
|
|||
|
||||
public OppositionGroup(Type[][] types) => m_Types = types;
|
||||
|
||||
public static OppositionGroup TerathansAndOphidians { get; } = new OppositionGroup(
|
||||
public static OppositionGroup TerathansAndOphidians { get; } = new(
|
||||
new[]
|
||||
{
|
||||
new[]
|
||||
|
|
@ -30,7 +30,7 @@ namespace Server
|
|||
}
|
||||
);
|
||||
|
||||
public static OppositionGroup SavagesAndOrcs { get; } = new OppositionGroup(
|
||||
public static OppositionGroup SavagesAndOrcs { get; } = new(
|
||||
new[]
|
||||
{
|
||||
new[]
|
||||
|
|
@ -53,7 +53,7 @@ namespace Server
|
|||
}
|
||||
);
|
||||
|
||||
public static OppositionGroup FeyAndUndead { get; } = new OppositionGroup(
|
||||
public static OppositionGroup FeyAndUndead { get; } = new(
|
||||
new[]
|
||||
{
|
||||
new[]
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ namespace Server
|
|||
private static readonly SpeedInfo[] m_Speeds =
|
||||
{
|
||||
/* Slow */
|
||||
new SpeedInfo(
|
||||
new(
|
||||
0.3,
|
||||
0.6,
|
||||
new[]
|
||||
|
|
@ -34,7 +34,7 @@ namespace Server
|
|||
}
|
||||
),
|
||||
/* Fast */
|
||||
new SpeedInfo(
|
||||
new(
|
||||
0.2,
|
||||
0.4,
|
||||
new[]
|
||||
|
|
@ -61,7 +61,7 @@ namespace Server
|
|||
}
|
||||
),
|
||||
/* Very Fast */
|
||||
new SpeedInfo(
|
||||
new(
|
||||
0.175,
|
||||
0.350,
|
||||
new[]
|
||||
|
|
@ -78,7 +78,7 @@ namespace Server
|
|||
}
|
||||
),
|
||||
/* Medium */
|
||||
new SpeedInfo(
|
||||
new(
|
||||
0.25,
|
||||
0.5,
|
||||
new[]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue