Merge pull request #1924 from moisterrific/patch-6
Update /spawnboss to include the 2 new bosses
This commit is contained in:
commit
0715ac6fbc
1 changed files with 12 additions and 2 deletions
|
|
@ -2382,7 +2382,7 @@ namespace TShockAPI
|
||||||
{
|
{
|
||||||
case "*":
|
case "*":
|
||||||
case "all":
|
case "all":
|
||||||
int[] npcIds = { 4, 13, 35, 50, 125, 126, 127, 134, 222, 245, 262, 266, 370, 398 };
|
int[] npcIds = { 4, 13, 35, 50, 125, 126, 127, 134, 222, 245, 262, 266, 370, 398, 636, 657 };
|
||||||
TSPlayer.Server.SetTime(false, 0.0);
|
TSPlayer.Server.SetTime(false, 0.0);
|
||||||
foreach (int i in npcIds)
|
foreach (int i in npcIds)
|
||||||
{
|
{
|
||||||
|
|
@ -2446,7 +2446,6 @@ namespace TShockAPI
|
||||||
TSPlayer.Server.SpawnNPC(npc.type, npc.FullName, amount, args.Player.TileX, args.Player.TileY);
|
TSPlayer.Server.SpawnNPC(npc.type, npc.FullName, amount, args.Player.TileX, args.Player.TileY);
|
||||||
TSPlayer.All.SendSuccessMessage("{0} has spawned Skeletron Prime {1} time(s).", args.Player.Name, amount);
|
TSPlayer.All.SendSuccessMessage("{0} has spawned Skeletron Prime {1} time(s).", args.Player.Name, amount);
|
||||||
return;
|
return;
|
||||||
case "queen":
|
|
||||||
case "queen bee":
|
case "queen bee":
|
||||||
npc.SetDefaults(222);
|
npc.SetDefaults(222);
|
||||||
TSPlayer.Server.SpawnNPC(npc.type, npc.FullName, amount, args.Player.TileX, args.Player.TileY);
|
TSPlayer.Server.SpawnNPC(npc.type, npc.FullName, amount, args.Player.TileX, args.Player.TileY);
|
||||||
|
|
@ -2487,6 +2486,17 @@ namespace TShockAPI
|
||||||
TSPlayer.Server.SpawnNPC(npc.type, npc.FullName, amount, args.Player.TileX, args.Player.TileY);
|
TSPlayer.Server.SpawnNPC(npc.type, npc.FullName, amount, args.Player.TileX, args.Player.TileY);
|
||||||
TSPlayer.All.SendSuccessMessage("{0} has spawned the Moon Lord {1} time(s).", args.Player.Name, amount);
|
TSPlayer.All.SendSuccessMessage("{0} has spawned the Moon Lord {1} time(s).", args.Player.Name, amount);
|
||||||
return;
|
return;
|
||||||
|
case "empress":
|
||||||
|
case "empress of light":
|
||||||
|
npc.SetDefaults(636);
|
||||||
|
TSPlayer.Server.SpawnNPC(npc.type, npc.FullName, amount, args.Player.TileX, args.Player.TileY);
|
||||||
|
TSPlayer.All.SendSuccessMessage("{0} has spawned the Empress of Light {1} time(s).", args.Player.Name, amount);
|
||||||
|
return;
|
||||||
|
case "queen slime":
|
||||||
|
npc.SetDefaults(657);
|
||||||
|
TSPlayer.Server.SpawnNPC(npc.type, npc.FullName, amount, args.Player.TileX, args.Player.TileY);
|
||||||
|
TSPlayer.All.SendSuccessMessage("{0} has spawned the Queen Slime {1} time(s).", args.Player.Name, amount);
|
||||||
|
return;
|
||||||
default:
|
default:
|
||||||
args.Player.SendErrorMessage("Invalid boss type!");
|
args.Player.SendErrorMessage("Invalid boss type!");
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue