-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathprismmod.cs
56 lines (48 loc) · 1.86 KB
/
prismmod.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
using Terraria.ID;
using Terraria.ModLoader;
using Terraria;
namespace prismmod
{
internal class prismmod : Mod
{
public override void UpdateMusic(ref int music, ref MusicPriority priority)
{
if (Main.myPlayer == -1 || Main.gameMenu || !Main.LocalPlayer.active)
{
return;
}
if (Main.LocalPlayer.GetModPlayer<PrismPlayer>().ZoneWaterTown)
{
Mod musicmod = ModLoader.GetMod("prismmodmusic");
if (musicmod != null)
{
priority = MusicPriority.BossHigh;
music = musicmod.GetSoundSlot(SoundType.Music, "Sounds/Music/Biomes/WaterTown");
}
}
}
public override void AddRecipes()
{
ModRecipe ironConverted = new ModRecipe(this);
ironConverted.AddIngredient(ItemID.CopperBar, 2);
ironConverted.AddTile(this, "Converter");
ironConverted.SetResult(ItemID.IronBar);
ironConverted.AddRecipe();
ModRecipe tleadConverted = new ModRecipe(this);
tleadConverted.AddIngredient(ItemID.TinBar, 2);
tleadConverted.AddTile(this, "Converter");
tleadConverted.SetResult(ItemID.LeadBar);
tleadConverted.AddRecipe();
ModRecipe leadConverted = new ModRecipe(this);
leadConverted.AddIngredient(ItemID.IronBar);
leadConverted.AddTile(this, "Converter");
leadConverted.SetResult(ItemID.LeadBar);
leadConverted.AddRecipe();
ModRecipe IronlConverted = new ModRecipe(this);
IronlConverted.AddIngredient(ItemID.LeadBar);
IronlConverted.AddTile(this, "Converter");
IronlConverted.SetResult(ItemID.IronBar);
IronlConverted.AddRecipe();
}
}
}