chore: Use var everywhere (#2294)
This commit is contained in:
parent
0b34cc4417
commit
ebaf104935
267 changed files with 873 additions and 873 deletions
|
|
@ -153,7 +153,7 @@ namespace Server.Spells
|
|||
return false;
|
||||
}
|
||||
|
||||
string option = this switch
|
||||
var option = this switch
|
||||
{
|
||||
Backstab => "Backstab",
|
||||
DeathStrike => "Death Strike",
|
||||
|
|
|
|||
|
|
@ -163,7 +163,7 @@ namespace Server.Spells
|
|||
{
|
||||
_contextTable[type] = context = new DelayedDamageContextWrapper();
|
||||
|
||||
for (int i = 0; i < damageStacking.Length; i++)
|
||||
for (var i = 0; i < damageStacking.Length; i++)
|
||||
{
|
||||
_contextTable.Add(damageStacking[i], context);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1017,7 +1017,7 @@ namespace Server.Spells
|
|||
|
||||
bcTarget?.AlterSpellDamageFrom(from, ref dmg);
|
||||
|
||||
if (Feint.GetDamageReduction(from, target, out int feintReduction))
|
||||
if (Feint.GetDamageReduction(from, target, out var feintReduction))
|
||||
{
|
||||
// example: 35 damage * 50 / 100 = 17 damage
|
||||
dmg -= dmg * feintReduction / 100;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue