Reorganizes Project (#41)

This commit is contained in:
Kamron Batman 2019-08-02 18:13:40 -07:00 committed by GitHub
parent 08bf44af9a
commit 3614a66aee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3499 changed files with 79 additions and 55 deletions

View file

@ -0,0 +1,70 @@
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 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, 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, 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;
LeftHandEffect = leftHandEffect;
RightHandEffect = rightHandEffect;
Amounts = new int[regs.Length];
for (int i = 0; i < regs.Length; ++i)
Amounts[i] = 1;
}
public int Action{ get; set; }
public bool AllowTown{ get; set; }
public int[] Amounts{ get; set; }
public string Mantra{ get; set; }
public string Name{ get; set; }
public Type[] Reagents{ get; set; }
public int LeftHandEffect{ get; set; }
public int RightHandEffect{ get; set; }
}
}