chore: Use var everywhere (#2294)
This commit is contained in:
parent
0b34cc4417
commit
ebaf104935
267 changed files with 873 additions and 873 deletions
|
|
@ -1633,7 +1633,7 @@ public abstract partial class BaseWeapon
|
|||
{
|
||||
var positionChance = Utility.RandomDouble();
|
||||
|
||||
Item armorItem = positionChance switch
|
||||
var armorItem = positionChance switch
|
||||
{
|
||||
< 0.07 => defender.NeckArmor,
|
||||
< 0.14 => defender.HandArmor,
|
||||
|
|
@ -1666,7 +1666,7 @@ public abstract partial class BaseWeapon
|
|||
|
||||
var chance = Utility.RandomDouble();
|
||||
|
||||
Item armorItem = chance switch
|
||||
var armorItem = chance switch
|
||||
{
|
||||
< 0.07 => defender.NeckArmor,
|
||||
< 0.14 => defender.HandArmor,
|
||||
|
|
@ -1685,7 +1685,7 @@ public abstract partial class BaseWeapon
|
|||
|
||||
if (virtualArmor > 0)
|
||||
{
|
||||
double scalar = chance switch
|
||||
var scalar = chance switch
|
||||
{
|
||||
< 0.14 => 0.07,
|
||||
< 0.28 => 0.14,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue