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

Commit

Permalink
Big ol cleanup for 1.0.19.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilysen committed Feb 4, 2020
1 parent 5266015 commit 8a01131
Show file tree
Hide file tree
Showing 142 changed files with 4,280 additions and 4,001 deletions.
2 changes: 1 addition & 1 deletion Buffs/Avarice.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public override void SetDefaults()
{
DisplayName.SetDefault("Avarice");
Description.SetDefault("Fortune and coin pickup range are increased");
Main.buffNoSave[Type] = true;
Main.buffNoSave[Type] = false;
Main.debuff[Type] = false;
canBeCleared = true;
}
Expand Down
2 changes: 1 addition & 1 deletion Buffs/Daredevilry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class Daredevilry : ModBuff
public override void SetDefaults()
{
DisplayName.SetDefault("Daredevilry");
Description.SetDefault("Grants all vanilla potion benefits");
Description.SetDefault("Grants most vanilla potion benefits");
Main.buffNoSave[Type] = false;
Main.debuff[Type] = false;
canBeCleared = true;
Expand Down
2 changes: 1 addition & 1 deletion Buffs/Evasion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public override void SetDefaults()
{
DisplayName.SetDefault("Evasion");
Description.SetDefault("Dash by double-tapping left or right");
Main.buffNoSave[Type] = true;
Main.buffNoSave[Type] = false;
Main.debuff[Type] = false;
canBeCleared = true;
}
Expand Down
36 changes: 0 additions & 36 deletions Buffs/FallingFlame.cs

This file was deleted.

Binary file removed Buffs/FallingFlame.png
Binary file not shown.
2 changes: 1 addition & 1 deletion Buffs/SoothingEmbers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public override void SetDefaults()
{
DisplayName.SetDefault("Soothing Embers");
Description.SetDefault("Enemy spawn rate tremendously reduced");
Main.buffNoSave[Type] = true;
Main.buffNoSave[Type] = false;
Main.debuff[Type] = false;
canBeCleared = true;
}
Expand Down
37 changes: 37 additions & 0 deletions Buffs/Stasis.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;

namespace Thaumaturgy.Buffs
{
public class Stasis : ModBuff
{
private bool targetTimeSet, targetTime;
public override void SetDefaults()
{
DisplayName.SetDefault("Stasis");
Description.SetDefault("Frozen in time...");
Main.buffNoSave[Type] = true;
Main.debuff[Type] = true;
canBeCleared = false;
}

public override void Update(Player player, ref int buffIndex)
{
if (!targetTimeSet)
{
targetTime = !Main.dayTime;
targetTimeSet = true;
}
player.frozen = true;
Main.fastForwardTime = true;
if (targetTime == Main.dayTime)
{
Main.fastForwardTime = false;
player.ClearBuff(mod.BuffType("Stasis"));
targetTime = false;
targetTimeSet = false;
}
}
}
}
Binary file added Buffs/Stasis.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion Buffs/Void.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public override void SetDefaults()
{
DisplayName.SetDefault("Void");
Description.SetDefault("Life will be drained to preserve mana");
Main.buffNoSave[Type] = true;
Main.buffNoSave[Type] = false;
Main.debuff[Type] = false;
canBeCleared = true;
}
Expand Down
2 changes: 1 addition & 1 deletion Buffs/WateryEmbers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public override void SetDefaults()
{
DisplayName.SetDefault("Watery Embers");
Description.SetDefault("Enemy spawn rate tremendously increased");
Main.buffNoSave[Type] = true;
Main.buffNoSave[Type] = false;
Main.debuff[Type] = false;
canBeCleared = true;
}
Expand Down
15 changes: 9 additions & 6 deletions Items/Armor/AuromechanicalSet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ namespace Thaumaturgy.Items.Armor
{
[AutoloadEquip(EquipType.Head)]
public class AuromechanicalHelmet : ModItem
{
public override void SetStaticDefaults()
{
public override string Texture => "Thaumaturgy/Textures/Wearable/AuromechanicalHelmet";
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Auromechanical Helmet");
Tooltip.SetDefault("Grants true sight\nMana usage reduced by 20%");
Expand Down Expand Up @@ -69,8 +70,9 @@ public override void AddRecipes()

[AutoloadEquip(EquipType.Body)]
public class AuromechanicalPlate : ModItem
{
public override void SetStaticDefaults()
{
public override string Texture => "Thaumaturgy/Textures/Wearable/AuromechanicalPlate";
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Auromechanical Plate");
Tooltip.SetDefault("Magic damage increased by 20%\nDamage taken reduced by 5%");
Expand Down Expand Up @@ -106,8 +108,9 @@ public override void AddRecipes()

[AutoloadEquip(EquipType.Legs)]
public class AuromechanicalGreaves : ModItem
{
public override void SetStaticDefaults()
{
public override string Texture => "Thaumaturgy/Textures/Wearable/AuromechanicalGreaves";
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Auromechanical Greaves");
Tooltip.SetDefault("Maximum mana increased by 50\nProtects from fall damage");
Expand Down
5 changes: 3 additions & 2 deletions Items/Armor/GogglesofRevealing.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ namespace Thaumaturgy.Items.Armor
{
[AutoloadEquip(EquipType.Head)]
public class GogglesofRevealing : ModItem
{
public override void SetStaticDefaults()
{
public override string Texture => "Thaumaturgy/Textures/Wearable/GogglesofRevealing";
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Goggles of Revealing");
Tooltip.SetDefault("Grants true sight");
Expand Down
15 changes: 9 additions & 6 deletions Items/Armor/StarbrassSet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ namespace Thaumaturgy.Items.Armor
{
[AutoloadEquip(EquipType.Head)]
public class StarbrassMask : ModItem
{
public override void SetStaticDefaults()
{
public override string Texture => "Thaumaturgy/Textures/Wearable/StarbrassMask";
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Starbrass Mask");
Tooltip.SetDefault("Mana usage reduced by 10%");
Expand Down Expand Up @@ -57,8 +58,9 @@ public override void AddRecipes()

[AutoloadEquip(EquipType.Body)]
public class StarbrassBreastplate : ModItem
{
public override void SetStaticDefaults()
{
public override string Texture => "Thaumaturgy/Textures/Wearable/StarbrassBreastplate";
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Starbrass Breatplate");
Tooltip.SetDefault("Damage taken reduced by 10%");
Expand Down Expand Up @@ -93,8 +95,9 @@ public override void AddRecipes()

[AutoloadEquip(EquipType.Legs)]
public class StarbrassGreaves : ModItem
{
public override void SetStaticDefaults()
{
public override string Texture => "Thaumaturgy/Textures/Wearable/StarbrassGreaves";
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Starbrass Greaves");
Tooltip.SetDefault("Maximum mana increased by 25\nMovement speed increased by 20%");
Expand Down
20 changes: 13 additions & 7 deletions Items/AuraAegis.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,32 @@ namespace Thaumaturgy.Items
[AutoloadEquip(EquipType.Shield)]
public class AuraAegis : ModItem
{
public override string Texture => "Thaumaturgy/Textures/Wearable/AuraAegis";
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Aura Aegis");
Tooltip.SetDefault("Double tap a direction to dash into enemies\nGrants immunity to knockback and fire blocks" +
"\nGrants immunity to almost all debuffs");
Tooltip.SetDefault("Grants immunity to knockback and fire blocks" +
"\nGrants immunity to most standard debuffs" +
"\nProtects from Stoned, Chilled, and Frozen" +
"\nDouble tap a direction to dash into enemies" +
"\nHide this accessory to disable its dash effect");
}

public override void SetDefaults()
{
item.width = 24;
item.height = 28;
item.value = Item.sellPrice(0, 5, 0, 0);
item.rare = 9;
item.rare = ItemRarityID.Expert;
item.accessory = true;
item.defense = 6;
item.expert = true;
}

public override void UpdateAccessory(Player player, bool hideVisual)
{
player.dash = 2;
if (!hideVisual)
player.dash = 2;
player.noKnockback = true;
player.fireWalk = true;
player.buffImmune[BuffID.Bleeding] = true;
Expand All @@ -44,16 +50,16 @@ public override void UpdateAccessory(Player player, bool hideVisual)
player.buffImmune[BuffID.Blackout] = true;
player.buffImmune[BuffID.Stoned] = true;
player.buffImmune[BuffID.Frozen] = true;
player.buffImmune[BuffID.Electrified] = true;
player.buffImmune[BuffID.Gravitation] = true;
}

public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.EoCShield);
recipe.AddIngredient(ItemID.AnkhShield);
recipe.AddIngredient(mod.ItemType("Starbrass"), 5);
recipe.AddIngredient(ItemID.SoulofMight, 15);
recipe.AddIngredient(mod.ItemType("AuricSteel"), 5);
recipe.AddIngredient(mod.ItemType("Starbrass"), 3);
recipe.AddIngredient(mod.ItemType("AuricCore"));
recipe.AddTile(mod.TileType("Thaumatrestle"));
recipe.AddTile(mod.TileType("SynthesisFocus"));
Expand Down
Binary file removed Items/AuraAegis.png
Binary file not shown.
Loading

0 comments on commit 8a01131

Please sign in to comment.