This repository has been archived by the owner on Jul 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ilysen
committed
Aug 14, 2019
1 parent
6fcdc69
commit e9b0163
Showing
21 changed files
with
276 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
using Terraria; | ||
using Terraria.ID; | ||
using Terraria.ModLoader; | ||
|
||
namespace Thaumaturgy.Items | ||
{ | ||
public class EternalOrdeal : ModItem | ||
{ | ||
public override void SetStaticDefaults() | ||
{ | ||
DisplayName.SetDefault("Eternal Ordeal"); | ||
Tooltip.SetDefault("Prevents invasions from ending while worn\n" + | ||
"May fail if you kill huge amounts of enemies extremely fast\n" + | ||
"'Truth, beauty, and hatred'"); | ||
} | ||
|
||
public override void SetDefaults() | ||
{ | ||
item.width = 32; | ||
item.height = 32; | ||
item.rare = 9; | ||
item.value = Item.sellPrice(0, 0, 10, 0); | ||
item.maxStack = 1; | ||
item.accessory = true; | ||
} | ||
|
||
public override void UpdateEquip(Player player) | ||
{ | ||
if (Main.invasionType != 0) | ||
{ | ||
if (Main.invasionSize < 25) | ||
{ | ||
Main.invasionSize = 25; | ||
} | ||
} | ||
} | ||
|
||
public override void AddRecipes() | ||
{ | ||
ModRecipe recipe = new ModRecipe(mod); | ||
recipe.AddIngredient(mod.ItemType("Starbrass"), 5); | ||
recipe.AddIngredient(ItemID.FlintlockPistol); | ||
recipe.AddIngredient(ItemID.EbonwoodSword); | ||
recipe.AddIngredient(mod.ItemType("AuricCore")); | ||
recipe.AddTile(mod.TileType("Thaumatrestle")); | ||
recipe.AddTile(mod.TileType("SynthesisFocus")); | ||
recipe.SetResult(this); | ||
recipe.AddRecipe(); | ||
|
||
recipe = new ModRecipe(mod); | ||
recipe.AddIngredient(mod.ItemType("Starbrass"), 5); | ||
recipe.AddIngredient(ItemID.FlintlockPistol); | ||
recipe.AddIngredient(ItemID.ShadewoodSword); | ||
recipe.AddIngredient(mod.ItemType("AuricCore")); | ||
recipe.AddTile(mod.TileType("Thaumatrestle")); | ||
recipe.AddTile(mod.TileType("SynthesisFocus")); | ||
recipe.SetResult(this); | ||
recipe.AddRecipe(); | ||
} | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
using Terraria; | ||
using Terraria.ID; | ||
using Terraria.ModLoader; | ||
|
||
namespace Thaumaturgy.Items | ||
{ | ||
public class PurityTablet : ModItem | ||
{ | ||
public override void SetStaticDefaults() | ||
{ | ||
DisplayName.SetDefault("Purity Tablet"); | ||
Tooltip.SetDefault("A tablet etched with words of harmony\n" + | ||
"Prematurely ends events relating to the sun or moon"); | ||
} | ||
|
||
public override void SetDefaults() | ||
{ | ||
item.width = 20; | ||
item.height = 30; | ||
item.useTime = 20; | ||
item.useAnimation = 20; | ||
item.useStyle = 4; | ||
item.value = Item.sellPrice(0, 0, 25, 0); | ||
item.rare = 2; | ||
item.maxStack = 99; | ||
item.consumable = true; | ||
item.noMelee = true; | ||
} | ||
|
||
public override bool CanUseItem(Player player) | ||
{ | ||
return Main.bloodMoon || Main.eclipse || Main.pumpkinMoon || Main.snowMoon; | ||
} | ||
|
||
public override bool UseItem(Player player) | ||
{ | ||
Main.bloodMoon = false; | ||
Main.eclipse = false; | ||
Main.pumpkinMoon = false; | ||
Main.snowMoon = false; | ||
Main.PlaySound(SoundID.Item60.WithVolume(0.5f), player.Center); | ||
return true; | ||
} | ||
|
||
public override void AddRecipes() | ||
{ | ||
ModRecipe recipe = new ModRecipe(mod); | ||
recipe.AddIngredient(ItemID.Boulder); | ||
recipe.AddIngredient(ItemID.GrassSeeds, 3); | ||
recipe.AddIngredient(ItemID.Acorn); | ||
recipe.AddIngredient(mod.ItemType("AuricCore")); | ||
recipe.AddTile(mod.TileType("Thaumatrestle")); | ||
recipe.AddTile(mod.TileType("SynthesisFocus")); | ||
recipe.SetResult(this); | ||
recipe.AddRecipe(); | ||
} | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
using Terraria; | ||
using Terraria.ID; | ||
using Terraria.ModLoader; | ||
|
||
namespace Thaumaturgy.Items | ||
{ | ||
[AutoloadEquip(EquipType.Shoes)] | ||
public class TerraTreads : ModItem | ||
{ | ||
public override void SetStaticDefaults() | ||
{ | ||
DisplayName.SetDefault("Terra Treads"); | ||
Tooltip.SetDefault("Allows flight, super fast running, and extra mobility on ice and liquids\n" + | ||
"Protects from fire blocks, lava, and falls\n" + | ||
"10% increased movement speed"); | ||
} | ||
|
||
public override void SetDefaults() | ||
{ | ||
item.width = 32; | ||
item.height = 32; | ||
item.value = Item.sellPrice(0, 15, 0, 0); | ||
item.rare = 8; | ||
item.accessory = true; | ||
} | ||
|
||
public override void UpdateEquip(Player player) | ||
{ | ||
player.accRunSpeed = 6.75f; | ||
player.rocketBoots = 2; | ||
player.moveSpeed += 0.10f; | ||
player.noFallDmg = true; | ||
player.iceSkate = true; | ||
player.waterWalk = true; | ||
player.fireWalk = true; | ||
player.lavaMax += 600; | ||
} | ||
|
||
public override void AddRecipes() | ||
{ | ||
ModRecipe recipe = new ModRecipe(mod); | ||
recipe.AddIngredient(ItemID.FrostsparkBoots, 1); | ||
recipe.AddIngredient(ItemID.LavaWaders, 1); | ||
recipe.AddIngredient(ItemID.ChlorophyteBar, 5); | ||
recipe.AddIngredient(mod.ItemType("AuricCore"), 2); | ||
recipe.SetResult(this); | ||
recipe.AddTile(mod.TileType("Thaumatrestle")); | ||
recipe.AddTile(mod.TileType("SynthesisFocus")); | ||
recipe.AddRecipe(); | ||
} | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.