From abb12629adab7dccba221537515e1c22de7d921a Mon Sep 17 00:00:00 2001 From: Lucas Nicodemus Date: Sat, 20 Nov 2021 12:04:55 -0800 Subject: [PATCH] Add Deerclops to spawnboss command Fixes #2500 --- CHANGELOG.md | 1 + TShockAPI/Commands.cs | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c35983e2..92e7f190 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,6 +28,7 @@ This is the rolling changelog for TShock for Terraria. Use past tense when addin * Added colours and usage examples (similiar to how the new ban system looks) for many more commands. (@moisterrific) * Changed `RespawnSeconds` and `RespawnBossSeconds` from `10` to `0` to respect the game's default respawn timers. (@moisterrific) * Updated Open Terraria API (OTAPI) and TSAPI for preliminary support of Terraria 1.4.3.0. This functionally changes OTAPI and points to 2.0.0.45 from 2.0.0.43 in previous versions. Developer note: SendData takes an extra arg in this version of Terraria but that's slated to be removed in a Terraria hotfix. This is vestigial and OTAPI "hacks that out." That's why it'll differ from the source code. (@Patrikkk, @DeathCradle, honorable mention: @Moneylover3246) +* Added Deerclops to spawnboss command. (@hakusaro, @HiddenStriker) ## TShock 4.5.5 * Changed the world autosave message so that it no longer warns of a "potential lag spike." (@hakusaro) diff --git a/TShockAPI/Commands.cs b/TShockAPI/Commands.cs index 08dfb7cf..0406e858 100644 --- a/TShockAPI/Commands.cs +++ b/TShockAPI/Commands.cs @@ -2674,6 +2674,11 @@ namespace TShockAPI TSPlayer.Server.SpawnNPC(npc.type, npc.FullName, amount, args.Player.TileX, args.Player.TileY); spawnName = "a Stardust Pillar"; break; + case "deerclops": + npc.SetDefaults(668); + TSPlayer.Server.SpawnNPC(npc.type, npc.FullName, amount, args.Player.TileX, args.Player.TileY); + spawnName = "a Deerclops"; + break; default: args.Player.SendErrorMessage("Invalid boss type!"); return;