private void Barrage(Player player) { TheWorldProjectile tw = ActiveInstance; if (tw?.State == "Idle" || tw?.State == "Punch" || tw?.State == TheWorldAI.KnifeThrow.ToString()) { tw?.SetState(TheWorldAI.Barrage.ToString()); string path = "Projectiles/Stands/Crusaders/TheWorld/"; Projectile projectile = tw.projectile; int i = PunchBarrage.CreateBarrage(path + "TWRush", projectile, projectile.Center.DirectTo(ActiveInstance.MousePosition, 24f), tw.GetBarrageDamage(), path + "TWRushBack"); tw.Barrage = Main.projectile[i]; } }
private void Barrage(Player player) { StarPlatinumProjectile sp = ActiveInstance; if (sp?.State == "Idle") { sp?.SetState(SPStates.Barrage.ToString()); string path = "Projectiles/Stands/Crusaders/StarPlatinum/"; Projectile projectile = sp.projectile; int i = PunchBarrage.CreateBarrage(path + "StarFist", projectile, projectile.Center.DirectTo(ActiveInstance.MousePosition, 24f), sp.GetBarrageDamage(), path + "StarFistBack"); sp.Barrage = Main.projectile[i]; } }
private void Barrage(Player player) { KingCrimsonProjectile kc = ActiveInstance; if (kc?.State == "Idle") { kc?.SetState(KCStates.Barrage.ToString()); string path = "Projectiles/Stands/Italy/KingCrimson/"; Projectile projectile = kc.projectile; int i = PunchBarrage.CreateBarrage(path + "KCFistFront", projectile, projectile.Center.DirectTo(ActiveInstance.MousePosition, 24f), kc.GetBarrageDamage(), path + "KCFistBack"); kc.Barrage = Main.projectile[i]; } }