parent
096d39609e
commit
8e9221bb5a
400 changed files with 3688 additions and 5969 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue