Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.

Commit

Permalink
1.0.17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilysen committed Aug 6, 2019
1 parent b3ac654 commit 4b8f613
Show file tree
Hide file tree
Showing 43 changed files with 524 additions and 84 deletions.
115 changes: 115 additions & 0 deletions Buffs/Daredevilry.cs
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;
}
}
}
Binary file added Buffs/Daredevilry.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
39 changes: 0 additions & 39 deletions Items/AuricCore.cs

This file was deleted.

39 changes: 0 additions & 39 deletions Items/AuricShard.cs

This file was deleted.

42 changes: 42 additions & 0 deletions Items/BindShackle.cs
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();
}
}
}
Binary file added Items/BindShackle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Items/CrystalPhial.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Items/DraughtDaredevilry.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Items/DraughtDaring.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Items/DraughtDetermination.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Items/ElixirAlacrity.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Items/ElixirAvarice.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Items/ElixirDeadlyFocus.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Items/ElixirDelving.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Items/ElixirEvasion.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Items/ElixirFloes.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Items/ElixirFortitude.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Items/ElixirGeneralsRally.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Items/ElixirHealing.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Items/ElixirHealingGreater.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Items/ElixirHealingSuper.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Items/ElixirHuntersPrecision.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Items/ElixirSorcerersAusterity.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Items/ElixirSubmersion.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Items/ElixirTradewinds.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Items/ElixirTrawling.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Items/ElixirTruesight.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Items/ElixirVigor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Items/ElixirVoid.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 42 additions & 0 deletions Items/PathfindersLamp.cs
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();
}
}
}
Binary file added Items/PathfindersLamp.png
Binary file added Items/TreatedFlask.png
41 changes: 41 additions & 0 deletions Items/Weapons/AuricGunshell.cs
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();
}
}
}
Binary file added Items/Weapons/AuricGunshell.png
40 changes: 40 additions & 0 deletions Items/_Draughts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public override void SetDefaults()
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(mod.ItemType("CrystalPhial"));
recipe.AddIngredient(mod.ItemType("ElixirFortitude"));
recipe.AddIngredient(mod.ItemType("ElixirVigor"));
recipe.AddIngredient(mod.ItemType("ElixirAlacrity"));
Expand Down Expand Up @@ -75,6 +76,7 @@ public override void SetDefaults()
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(mod.ItemType("CrystalPhial"));
recipe.AddIngredient(mod.ItemType("ElixirSubmersion"));
recipe.AddIngredient(mod.ItemType("ElixirDelving"));
recipe.AddIngredient(mod.ItemType("ElixirTruesight"));
Expand All @@ -87,4 +89,42 @@ public override void AddRecipes()
recipe.AddRecipe();
}
}

public class DraughtDaredevilry : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Draught of Daredevilry");
Tooltip.SetDefault("Grants all vanilla potion benefits\nNot consumed upon use");
}

public override void SetDefaults()
{
item.UseSound = SoundID.Item3;
item.useStyle = 2;
item.useTurn = true;
item.useAnimation = 17;
item.useTime = 17;
item.maxStack = 1;
item.width = 20;
item.height = 20;
item.value = Item.sellPrice(2, 50, 0, 0);
item.rare = 11;
item.buffType = mod.BuffType("Daredevilry");
item.buffTime = 216000;
}

public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(mod.ItemType("CrystalPhial"));
recipe.AddIngredient(mod.ItemType("DraughtDaring"));
recipe.AddIngredient(mod.ItemType("DraughtDetermination"));
recipe.AddIngredient(mod.ItemType("AuricCore"), 5);
recipe.AddTile(mod.TileType("Thaumatrestle"));
recipe.AddTile(mod.TileType("SynthesisFocus"));
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}
Loading

0 comments on commit 4b8f613

Please sign in to comment.