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 6, 2019
1 parent
b3ac654
commit 4b8f613
Showing
43 changed files
with
524 additions
and
84 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
using Terraria; | ||
using Terraria.ID; | ||
using Terraria.ModLoader; | ||
|
||
namespace Thaumaturgy.Buffs | ||
{ | ||
public class Daredevilry : ModBuff | ||
{ | ||
public override void SetDefaults() | ||
{ | ||
DisplayName.SetDefault("Daredevilry"); | ||
Description.SetDefault("Grants all vanilla potion benefits"); | ||
Main.buffNoSave[Type] = false; | ||
Main.debuff[Type] = false; | ||
canBeCleared = true; | ||
} | ||
|
||
public override void Update(Player player, ref int buffIndex) | ||
{ | ||
//Spelunker, Hunter, and Dangersense | ||
player.findTreasure = true; | ||
player.detectCreature = true; | ||
player.dangerSense = true; | ||
|
||
//Night Owl | ||
player.nightVision = true; | ||
|
||
//Obsidian Skin | ||
player.lavaImmune = true; | ||
|
||
//Gills, Flipper, and Water Walking | ||
player.gills = true; | ||
player.ignoreWater = true; | ||
player.accFlipper = true; | ||
player.waterWalk = true; | ||
player.fireWalk = true; | ||
|
||
//Mining | ||
player.pickSpeed -= 0.25f; | ||
|
||
//Avarice | ||
player.goldRing = true; | ||
|
||
//Ironskin | ||
player.statDefense += 8; | ||
|
||
//Endurance | ||
player.endurance += 0.1f; | ||
|
||
//Regeneration | ||
player.lifeRegen += 4; | ||
|
||
//Lifeforce | ||
player.lifeForce = true; | ||
player.statLifeMax2 += player.statLifeMax / 5 / 20 * 20; | ||
|
||
//Swiftness | ||
player.moveSpeed += 0.25f; | ||
|
||
//Wrath | ||
player.thrownDamage += 0.1f; | ||
player.meleeDamage += 0.1f; | ||
player.rangedDamage += 0.1f; | ||
player.magicDamage += 0.1f; | ||
player.minionDamage += 0.1f; | ||
|
||
//Rage | ||
player.meleeCrit += 10; | ||
player.rangedCrit += 10; | ||
player.magicCrit += 10; | ||
player.thrownCrit += 10; | ||
|
||
//Archery | ||
player.archery = true; | ||
|
||
//Ammo Reservation | ||
player.ammoPotion = true; | ||
|
||
//Magic Power | ||
player.magicDamage += 0.2f; | ||
|
||
//Mana Regeneration | ||
player.manaRegenBuff = true; | ||
|
||
//Summoning | ||
player.maxMinions++; | ||
|
||
//And prevent duplicates from vanilla buffs | ||
player.buffImmune[BuffID.Spelunker] = true; | ||
player.buffImmune[BuffID.Hunter] = true; | ||
player.buffImmune[BuffID.Dangersense] = true; | ||
player.buffImmune[BuffID.NightOwl] = true; | ||
player.buffImmune[BuffID.ObsidianSkin] = true; | ||
player.buffImmune[BuffID.Gills] = true; | ||
player.buffImmune[BuffID.Flipper] = true; | ||
player.buffImmune[BuffID.WaterWalking] = true; | ||
player.buffImmune[BuffID.Mining] = true; | ||
player.buffImmune[BuffID.Ironskin] = true; | ||
player.buffImmune[BuffID.Endurance] = true; | ||
player.buffImmune[BuffID.Regeneration] = true; | ||
player.buffImmune[BuffID.Lifeforce] = true; | ||
player.buffImmune[BuffID.Swiftness] = true; | ||
player.buffImmune[BuffID.Wrath] = true; | ||
player.buffImmune[BuffID.Rage] = true; | ||
player.buffImmune[BuffID.Archery] = true; | ||
player.buffImmune[BuffID.AmmoReservation] = true; | ||
player.buffImmune[BuffID.MagicPower] = true; | ||
player.buffImmune[BuffID.ManaRegeneration] = true; | ||
player.buffImmune[BuffID.Summoning] = true; | ||
player.buffImmune[mod.BuffType("Avarice")] = true; | ||
player.buffImmune[mod.BuffType("Daring")] = true; | ||
player.buffImmune[mod.BuffType("Determination")] = true; | ||
} | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,42 @@ | ||
using Terraria; | ||
using Terraria.ID; | ||
using Terraria.ModLoader; | ||
|
||
namespace Thaumaturgy.Items | ||
{ | ||
public class BindShackle : ModItem | ||
{ | ||
public override void SetStaticDefaults() | ||
{ | ||
DisplayName.SetDefault("Bind-Shackle"); | ||
Tooltip.SetDefault("Increases mining speed by 40%\n'We're all adrift together, together'"); | ||
} | ||
|
||
public override void SetDefaults() | ||
{ | ||
item.width = 24; | ||
item.height = 24; | ||
item.value = Item.sellPrice(0, 0, 10, 0); | ||
item.rare = 1; | ||
item.accessory = true; | ||
item.defense = 1; | ||
} | ||
|
||
public override void UpdateEquip(Player player) | ||
{ | ||
player.pickSpeed *= 0.6f; | ||
} | ||
|
||
public override void AddRecipes() | ||
{ | ||
ModRecipe recipe = new ModRecipe(mod); | ||
recipe.AddIngredient(ItemID.Shackle, 1); | ||
recipe.AddIngredient(mod.ItemType("AuricCore"), 1); | ||
recipe.AddIngredient(mod.ItemType("AuricShard"), 3); | ||
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.
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.
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.
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.
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.
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.
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.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
using Terraria; | ||
using Terraria.ID; | ||
using Terraria.ModLoader; | ||
|
||
namespace Thaumaturgy.Items | ||
{ | ||
public class PathfindersLamp : ModItem | ||
{ | ||
public override void SetStaticDefaults() | ||
{ | ||
DisplayName.SetDefault("Pathfinder's Lamp"); | ||
Tooltip.SetDefault("Provides light while worn"); | ||
} | ||
|
||
public override void SetDefaults() | ||
{ | ||
item.width = 24; | ||
item.height = 24; | ||
item.value = Item.sellPrice(0, 0, 10, 0); | ||
item.rare = 1; | ||
item.accessory = true; | ||
item.defense = 2; | ||
} | ||
|
||
public override void UpdateEquip(Player player) | ||
{ | ||
Lighting.AddLight(player.Center, 1f, 0.75f, 1f); | ||
} | ||
|
||
public override void AddRecipes() | ||
{ | ||
ModRecipe recipe = new ModRecipe(mod); | ||
recipe.AddIngredient(ItemID.Shackle); | ||
recipe.AddIngredient(ItemID.Chain, 3); | ||
recipe.AddIngredient(mod.ItemType("ConjurersLamp")); | ||
recipe.SetResult(this); | ||
recipe.AddTile(mod.TileType("Thaumatrestle")); | ||
recipe.AddTile(mod.TileType("SynthesisFocus")); | ||
recipe.AddRecipe(); | ||
} | ||
} | ||
} |
Oops, something went wrong.
Oops, something went wrong.
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,41 @@ | ||
using Terraria; | ||
using Terraria.ID; | ||
using Terraria.ModLoader; | ||
|
||
namespace Thaumaturgy.Items.Weapons | ||
{ | ||
public class AuricGunshell : ModItem | ||
{ | ||
public override void SetStaticDefaults() | ||
{ | ||
DisplayName.SetDefault("Auric Gunshell"); | ||
Tooltip.SetDefault("An infinite source of ethereal bullets\nNo knockback, but can pierce"); | ||
} | ||
|
||
public override void SetDefaults() | ||
{ | ||
item.damage = 9; | ||
item.ranged = true; | ||
item.width = 8; | ||
item.height = 8; | ||
item.maxStack = 999; | ||
item.consumable = false; | ||
item.value = Item.sellPrice(0, 0, 25, 0); | ||
item.rare = 2; | ||
item.shoot = mod.ProjectileType("EtherealBullet"); | ||
item.shootSpeed = 16f; | ||
item.ammo = AmmoID.Bullet; | ||
} | ||
|
||
public override void AddRecipes() | ||
{ | ||
ModRecipe recipe = new ModRecipe(mod); | ||
recipe.AddIngredient(ItemID.EndlessMusketPouch); | ||
recipe.AddIngredient(mod.ItemType("AuricCore"), 3); | ||
recipe.AddTile(mod.TileType("Thaumatrestle")); | ||
recipe.AddTile(mod.TileType("SynthesisFocus")); | ||
recipe.SetResult(this); | ||
recipe.AddRecipe(); | ||
} | ||
} | ||
} |
Oops, something went wrong.
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.