1.2.0 - Added the Vanilla Material(s) & Quantity to config
This commit is contained in:
parent
24d23a47e8
commit
243549733b
@ -38,8 +38,11 @@ namespace tTP.Content.Items.Placeable
|
|||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
{
|
{
|
||||||
recipe.AddIngredient(ItemID.IronBar, 10);
|
int mlc = config.VanillaMatsList.Count;
|
||||||
recipe.AddIngredient(ItemID.FallenStar, 1);
|
for (int vm = 0; vm < mlc; vm++)
|
||||||
|
{
|
||||||
|
recipe.AddIngredient(config.VanillaMatsList[vm], config.VanillaMatsListQty[vm]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
recipe.AddTile(TileID.WorkBenches);
|
recipe.AddTile(TileID.WorkBenches);
|
||||||
recipe.Register();
|
recipe.Register();
|
||||||
|
@ -16,5 +16,25 @@ Configs: {
|
|||||||
|
|
||||||
Headers.Craft: Craft Header
|
Headers.Craft: Craft Header
|
||||||
DisplayName: tTP Configs
|
DisplayName: tTP Configs
|
||||||
|
|
||||||
|
collapsedList: {
|
||||||
|
Label: Vanilla Materials
|
||||||
|
Tooltip: Use tMX 4 Tablets to craft a Personal Teleporter. If false, will use a recipe with vanilla materials.
|
||||||
|
}
|
||||||
|
|
||||||
|
UseVanillaMats: {
|
||||||
|
Label: Use Vanilla Materials
|
||||||
|
Tooltip: If set to true, will use vanilla material(s) in the recipe.
|
||||||
|
}
|
||||||
|
|
||||||
|
VanillaMatsList: {
|
||||||
|
Label: Vanilla Materials
|
||||||
|
Tooltip: Add the ItemID (a number) of each material you want in the recipe.
|
||||||
|
}
|
||||||
|
|
||||||
|
VanillaMatsListQty: {
|
||||||
|
Label: Material(s) Quantity
|
||||||
|
Tooltip: Add the quantity for each ItemID you entered in the material list.
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
11
README.md
11
README.md
@ -1,11 +1,18 @@
|
|||||||
## tTP
|

|
||||||
**Author** mikx\
|
**Author** mikx\
|
||||||
**Dependencies** tMx\
|
**Dependencies** tMx\
|
||||||
tTP is a teleporter mod for tModLoader.\
|
tTP is a teleporter mod for tModLoader.\
|
||||||
You need to collect 1 of each Tablets from tMx to craft it.\
|
You need to collect 1 of each Tablets from tMx to craft it.\
|
||||||
|
There is a config in-game to use vanilla materials instead.\
|
||||||
Addind a **Personal Teleporter** to the world add an icon on your map.\
|
Addind a **Personal Teleporter** to the world add an icon on your map.\
|
||||||
Hover over one of the **Personal Teleporter** icon on your map while holding "Shift" to teleport to it!\
|
Hover over one of the **Personal Teleporter** icon on your map while holding "Shift" to teleport to it!\
|
||||||
\
|
\
|
||||||

|

|
||||||

|

|
||||||

|

|
||||||
|
|
||||||
|
## CHANGELOG
|
||||||
|
**1.2.0**
|
||||||
|
- Added the vanilla material(s) list to the config.
|
||||||
|
- Added the material(s) quantity list to the config.
|
||||||
|
- YOU NEED TO FORCE RELOAD AFTER EVERY CHANGE.
|
@ -1,6 +1,6 @@
|
|||||||
displayName = tTP
|
displayName = tTP
|
||||||
author = mikx
|
author = mikx
|
||||||
version = 1.1.1
|
version = 1.2.0
|
||||||
sortAfter = tMx
|
sortAfter = tMx
|
||||||
modReferences = tMx
|
modReferences = tMx
|
||||||
dllReferences = Newtonsoft.Json
|
dllReferences = Newtonsoft.Json
|
2
tTP.cs
2
tTP.cs
@ -20,7 +20,7 @@ namespace tTP
|
|||||||
|
|
||||||
public override void Load()
|
public override void Load()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void Unload()
|
public override void Unload()
|
||||||
|
@ -4,6 +4,7 @@ using System.ComponentModel;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
using Terraria.ID;
|
||||||
using Terraria.ModLoader.Config;
|
using Terraria.ModLoader.Config;
|
||||||
|
|
||||||
namespace tTP
|
namespace tTP
|
||||||
@ -17,6 +18,14 @@ namespace tTP
|
|||||||
[DefaultValue(true)]
|
[DefaultValue(true)]
|
||||||
public bool UsetMxTablets;
|
public bool UsetMxTablets;
|
||||||
|
|
||||||
|
[Label("Vanilla Material(s)")]
|
||||||
|
[Tooltip("Add the ItemID (a number) of each material you want in the recipe.")]
|
||||||
|
public List<int> VanillaMatsList = new List<int>() { 22, 75 };
|
||||||
|
|
||||||
|
[Label("Material(s) Quantity")]
|
||||||
|
[Tooltip("Add the quantity for each ItemID you entered in the material list.")]
|
||||||
|
public List<int> VanillaMatsListQty = new List<int>() { 10, 1 };
|
||||||
|
|
||||||
public override ConfigScope Mode => (ConfigScope)0;
|
public override ConfigScope Mode => (ConfigScope)0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user