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

@ -134,7 +134,7 @@ namespace Server.Engines.ConPVP
return false;
}
string title = move switch
var title = move switch
{
NinjaMove => "Bushido",
SamuraiMove => "Ninjitsu",
@ -1898,7 +1898,7 @@ namespace Server.Engines.ConPVP
var rx = dx - dy;
var ry = dx + dy;
bool eastToWest = rx == 0 && ry >= 0 || rx >= 0 && ry == 0;
var eastToWest = rx == 0 && ry >= 0 || rx >= 0 && ry == 0;
Effects.PlaySound(wall, Arena.Facet, 0x1F6);
@ -2043,7 +2043,7 @@ namespace Server.Engines.ConPVP
pack.DropItem(item);
// TODO: Use Layer instead of Type
int number = item switch
var number = item switch
{
BaseWeapon _ => 1062001, // You can no longer wield your ~1_WEAPON~
not BaseShield when item is BaseArmor or BaseClothing => 1062002, // You can no longer wear your ~1_ARMOR~