chore: Use var everywhere (#2294)
This commit is contained in:
parent
0b34cc4417
commit
ebaf104935
267 changed files with 873 additions and 873 deletions
|
|
@ -36,7 +36,7 @@ namespace Server.SkillHandlers
|
|||
{
|
||||
var foundAnyone = false;
|
||||
|
||||
Point3D p = targ switch
|
||||
var p = targ switch
|
||||
{
|
||||
Mobile mobile => mobile.Location,
|
||||
Item item => item.Location,
|
||||
|
|
@ -118,8 +118,8 @@ namespace Server.SkillHandlers
|
|||
const int SkillCooldown = 10000; // 10s
|
||||
|
||||
// Calculate how much time has passed since the targeter was opened
|
||||
int ticksSinceTargeter = (int)(Core.TickCount - (src.NextSkillTime - TargeterCooldown));
|
||||
int remainingCooldown = Math.Max(0, SkillCooldown - ticksSinceTargeter);
|
||||
var ticksSinceTargeter = (int)(Core.TickCount - (src.NextSkillTime - TargeterCooldown));
|
||||
var remainingCooldown = Math.Max(0, SkillCooldown - ticksSinceTargeter);
|
||||
src.NextSkillTime = Core.TickCount + remainingCooldown;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue