示例#1
0
 public StaffGem(string texture, int originX, int originY, string name, int shoot, bool back = false, float mana = 1f, float dpsModifier = 1f,
                 float speedModifier = 1f, float knockBack = 0f, int critBonus = 0)
 {
     Type = Gems.Count + 1;
     if (Main.netMode != NetmodeID.Server)
     {
         Texture = ModLoader.GetMod(Constants.ModName).GetTexture("Content/GFX/Items/Gemstones/" + texture);
     }
     Origin        = new Vector2(originX, originY);
     DpsModifier   = dpsModifier;
     SpeedModifier = speedModifier;
     KnockBack     = knockBack;
     CritBonus     = critBonus;
     Name          = name;
     Mana          = mana;
     Shoot         = shoot;
     Back          = back;
     if (!Gems.ContainsKey(Type))
     {
         Gems.Add(Type, this);
     }
 }