chore: Use var everywhere (#2294)

This commit is contained in:
Kamron Batman 2025-12-27 16:47:28 -08:00 • committed by GitHub
parent 0b34cc4417
commit ebaf104935
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
267 changed files with 873 additions and 873 deletions

View file

@ -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;
}
}