Fixes code according to modern code style. Fixes a few expression bugs.
This commit is contained in:
parent
89eea25e5f
commit
970fd563b2
3324 changed files with 441118 additions and 433755 deletions
|
|
@ -2,63 +2,69 @@ using System;
|
|||
|
||||
namespace Server.Spells
|
||||
{
|
||||
public class SpellInfo
|
||||
{
|
||||
public SpellInfo( string name, string mantra, params Type[] regs ) : this( name, mantra, 16, 0, 0, true, regs )
|
||||
{
|
||||
}
|
||||
public class SpellInfo
|
||||
{
|
||||
public SpellInfo(string name, string mantra, params Type[] regs) : this(name, mantra, 16, 0, 0, true, regs)
|
||||
{
|
||||
}
|
||||
|
||||
public SpellInfo( string name, string mantra, bool allowTown, params Type[] regs ) : this( name, mantra, 16, 0, 0, allowTown, regs )
|
||||
{
|
||||
}
|
||||
public SpellInfo(string name, string mantra, bool allowTown, params Type[] regs) : this(name, mantra, 16, 0, 0,
|
||||
allowTown, regs)
|
||||
{
|
||||
}
|
||||
|
||||
public SpellInfo( string name, string mantra, int action, params Type[] regs ) : this( name, mantra, action, 0, 0, true, regs )
|
||||
{
|
||||
}
|
||||
public SpellInfo(string name, string mantra, int action, params Type[] regs) : this(name, mantra, action, 0, 0, true,
|
||||
regs)
|
||||
{
|
||||
}
|
||||
|
||||
public SpellInfo( string name, string mantra, int action, bool allowTown, params Type[] regs ) : this( name, mantra, action, 0, 0, allowTown, regs )
|
||||
{
|
||||
}
|
||||
public SpellInfo(string name, string mantra, int action, bool allowTown, params Type[] regs) : this(name, mantra,
|
||||
action, 0, 0, allowTown, regs)
|
||||
{
|
||||
}
|
||||
|
||||
public SpellInfo( string name, string mantra, int action, int handEffect, params Type[] regs ) : this( name, mantra, action, handEffect, handEffect, true, regs )
|
||||
{
|
||||
}
|
||||
public SpellInfo(string name, string mantra, int action, int handEffect, params Type[] regs) : this(name, mantra,
|
||||
action, handEffect, handEffect, true, regs)
|
||||
{
|
||||
}
|
||||
|
||||
public SpellInfo( string name, string mantra, int action, int handEffect, bool allowTown, params Type[] regs ) : this( name, mantra, action, handEffect, handEffect, allowTown, regs )
|
||||
{
|
||||
}
|
||||
public SpellInfo(string name, string mantra, int action, int handEffect, bool allowTown, params Type[] regs) : this(
|
||||
name, mantra, action, handEffect, handEffect, allowTown, regs)
|
||||
{
|
||||
}
|
||||
|
||||
public SpellInfo( string name, string mantra, int action, int leftHandEffect, int rightHandEffect, bool allowTown, params Type[] regs )
|
||||
{
|
||||
Name = name;
|
||||
Mantra = mantra;
|
||||
Action = action;
|
||||
Reagents = regs;
|
||||
AllowTown = allowTown;
|
||||
public SpellInfo(string name, string mantra, int action, int leftHandEffect, int rightHandEffect, bool allowTown,
|
||||
params Type[] regs)
|
||||
{
|
||||
Name = name;
|
||||
Mantra = mantra;
|
||||
Action = action;
|
||||
Reagents = regs;
|
||||
AllowTown = allowTown;
|
||||
|
||||
LeftHandEffect = leftHandEffect;
|
||||
RightHandEffect = rightHandEffect;
|
||||
LeftHandEffect = leftHandEffect;
|
||||
RightHandEffect = rightHandEffect;
|
||||
|
||||
Amounts = new int[regs.Length];
|
||||
Amounts = new int[regs.Length];
|
||||
|
||||
for ( int i = 0; i < regs.Length; ++i )
|
||||
Amounts[i] = 1;
|
||||
}
|
||||
for (int i = 0; i < regs.Length; ++i)
|
||||
Amounts[i] = 1;
|
||||
}
|
||||
|
||||
public int Action { get; set; }
|
||||
public int Action{ get; set; }
|
||||
|
||||
public bool AllowTown { get; set; }
|
||||
public bool AllowTown{ get; set; }
|
||||
|
||||
public int[] Amounts { get; set; }
|
||||
public int[] Amounts{ get; set; }
|
||||
|
||||
public string Mantra { get; set; }
|
||||
public string Mantra{ get; set; }
|
||||
|
||||
public string Name { get; set; }
|
||||
public string Name{ get; set; }
|
||||
|
||||
public Type[] Reagents { get; set; }
|
||||
public Type[] Reagents{ get; set; }
|
||||
|
||||
public int LeftHandEffect { get; set; }
|
||||
public int LeftHandEffect{ get; set; }
|
||||
|
||||
public int RightHandEffect { get; set; }
|
||||
}
|
||||
public int RightHandEffect{ get; set; }
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue