diff --git a/Items/ThaumNoms.cs b/Items/ThaumNoms.cs index f1dbbb1..69e4fd9 100644 --- a/Items/ThaumNoms.cs +++ b/Items/ThaumNoms.cs @@ -9,7 +9,8 @@ public class ThaumNoms : ModItem public override void SetStaticDefaults() { DisplayName.SetDefault("Thaumic Pie"); - Tooltip.SetDefault("Minor improvements to all stats\nSelf-applies from your inventory\n60 minute duration"); + Tooltip.SetDefault("Minor improvements to all stats while in your inventory\n" + + "Doesn't take up a buff slot; benefits won't be visible as a buff"); } public override void SetDefaults() @@ -31,5 +32,24 @@ public override void AddRecipes() recipe.SetResult(this); recipe.AddRecipe(); } + + public override void UpdateInventory(Player player) + { + player.buffImmune[BuffID.WellFed] = true; + player.wellFed = true; + player.statDefense += 2; + player.meleeCrit += 2; + player.magicCrit += 2; + player.rangedCrit += 2; + player.thrownCrit += 2; + player.meleeDamage += 0.05f; + player.magicDamage += 0.05f; + player.rangedDamage += 0.05f; + player.thrownDamage += 0.05f; + player.minionDamage += 0.05f; + player.minionKB += 0.5f; + player.meleeSpeed += 0.05f; + player.moveSpeed += 0.2f; + } } } \ No newline at end of file diff --git a/README.md b/README.md index 87d8d96..5321815 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,10 @@ You are free to decompile, modify etc. this mod under the MIT License. The mod i ### Aug. 15, 2019 +#### 1.0.18.10 + +* Micro-optimisations to Thaumic Pie, which no longer takes up a buff. + #### 1.0.18.9 * New sprites for all elixirs, potions, and draughts by Flaqzar. Thank you very much. diff --git a/ThaumaturgyPlayer.cs b/ThaumaturgyPlayer.cs index de6f434..dbc6a5d 100644 --- a/ThaumaturgyPlayer.cs +++ b/ThaumaturgyPlayer.cs @@ -47,14 +47,5 @@ public override bool PreKill(double damage, int hitDirection, bool pvp, ref bool } return base.PreKill(damage, hitDirection, pvp, ref playSound, ref genGore, ref damageSource); } - - public override void PostUpdate() - { - if(player.HasItem(mod.ItemType("ThaumNoms")) && !player.HasBuff(BuffID.WellFed)) - { - player.AddBuff(BuffID.WellFed, 216000); - } - base.PostUpdate(); - } } } diff --git a/build.txt b/build.txt index a2be511..d5172c0 100644 --- a/build.txt +++ b/build.txt @@ -1,4 +1,4 @@ author = Ilysen -version = 1.0.18.9 +version = 1.0.18.10 displayName = Thaumaturgy homepage = https://forums.terraria.org/index.php?threads/avas-mods-thaumaturgy-challenge-runes-yabssm.81892/ \ No newline at end of file