Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions AlchemistNPC.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ public override void Load()
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Deltarune OST - Field of Hopes And Dreams"), ItemType("FieldsMusicBox"), TileType("FieldsMusicBox"));
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Deltarune OST - Lantern"), ItemType("SheamMusicBox"), TileType("SheamMusicBox"));
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Deltarune OST - The World Revolving"), ItemType("TheWorldRevolvingMusicBox"), TileType("TheWorldRevolvingMusicBox"));
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Deltarune OST - A Cyber's World"), ItemType("ACybersWorld"), TileType("ACybersWorld"));

alchemistUI = new ShopChangeUI();
alchemistUI.Activate();
Expand Down
33 changes: 33 additions & 0 deletions Items/Placeable/ACybersWorld.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
using Terraria.ModLoader;
using static Terraria.ModLoader.ModContent;
using Terraria.Localization;

namespace AlchemistNPC.Items.Placeable
{
public class ACybersWorld : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Music Box (Deltarune OST - A Cyber's World)");
Tooltip.SetDefault("By Toby Fox");
DisplayName.AddTranslation(GameCulture.Russian, "Музыкальная шкатулка (Deltarune OST - A Cyber's World)");
DisplayName.AddTranslation(GameCulture.Chinese, "音乐盒 (Deltarune OST - A Cyber's World)");
}

public override void SetDefaults()
{
item.useStyle = 1;
item.useTurn = true;
item.useAnimation = 15;
item.useTime = 10;
item.autoReuse = true;
item.consumable = true;
item.createTile = mod.TileType("ACybersWorld");
item.width = 24;
item.height = 24;
item.rare = 4;
item.value = 500000;
item.accessory = true;
}
}
}
Binary file added Items/Placeable/ACybersWorld.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions NPCs/Musician.cs
Original file line number Diff line number Diff line change
Expand Up @@ -855,6 +855,9 @@ public override void SetupShop(Chest shop, ref int nextSlot)
shop.item[nextSlot].SetDefaults(ModLoader.GetMod("AlchemistNPC").ItemType("TheWorldRevolvingMusicBox"));
shop.item[nextSlot].shopCustomPrice = 250000;
nextSlot++;
shop.item[nextSlot].SetDefaults(ModLoader.GetMod("AlchemistNPC").ItemType("ACybersWorld"));
shop.item[nextSlot].shopCustomPrice = 250000;
nextSlot++;
}
if (ModLoader.GetMod("ThoriumMod") != null)
{
Expand Down
Binary file added Sounds/Music/Deltarune OST - A Cyber's World.mp3
Binary file not shown.
40 changes: 40 additions & 0 deletions Tiles/ACybersWorld.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ModLoader;
using static Terraria.ModLoader.ModContent;
using Terraria.ObjectData;
using Terraria.DataStructures;

namespace AlchemistNPC.Tiles
{
class ACybersWorld : ModTile
{
public override void SetDefaults()
{
Main.tileFrameImportant[Type] = true;
Main.tileObsidianKill[Type] = true;
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
TileObjectData.newTile.Origin = new Point16(0, 1);
TileObjectData.newTile.LavaDeath = false;
TileObjectData.newTile.DrawYOffset = 2;
TileObjectData.addTile(Type);
disableSmartCursor = true;
ModTranslation name = CreateMapEntryName();
name.SetDefault("Music Box");
AddMapEntry(new Color(200, 200, 200), name);
}

public override void KillMultiTile(int i, int j, int frameX, int frameY)
{
Item.NewItem(i * 16, j * 16, 16, 48, mod.ItemType("ACybersWorld"));
}

public override void MouseOver(int i, int j)
{
Player player = Main.LocalPlayer;
player.noThrow = 2;
player.showItemIcon = true;
player.showItemIcon2 = mod.ItemType("ACybersWorld");
}
}
}
Binary file added Tiles/ACybersWorld.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.