Formatting #2 (#59)

This commit is contained in:
Kamron Batman 2019-10-05 00:37:03 -07:00 committed by GitHub
parent 096d39609e
commit 8e9221bb5a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
400 changed files with 3688 additions and 5969 deletions

View file

@ -623,24 +623,14 @@ namespace Server
public static SpellScroll RandomScroll(int minIndex, int maxIndex, SpellbookType type)
{
Type[] types;
switch (type)
var types = type switch
{
default:
case SpellbookType.Regular:
types = RegularScrollTypes;
break;
case SpellbookType.Necromancer:
types = Core.SE ? SENecromancyScrollTypes : NecromancyScrollTypes;
break;
case SpellbookType.Paladin:
types = PaladinScrollTypes;
break;
case SpellbookType.Arcanist:
types = ArcanistScrollTypes;
break;
}
SpellbookType.Regular => RegularScrollTypes,
SpellbookType.Necromancer => (Core.SE ? SENecromancyScrollTypes : NecromancyScrollTypes),
SpellbookType.Paladin => PaladinScrollTypes,
SpellbookType.Arcanist => ArcanistScrollTypes,
_ => RegularScrollTypes
};
return Construct(types, Utility.RandomMinMax(minIndex, maxIndex)) as SpellScroll;
}