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

Commit

Permalink
1.0.18.10
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilysen committed Aug 16, 2019
1 parent 72df4c3 commit 5e7b02e
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 11 deletions.
22 changes: 21 additions & 1 deletion Items/ThaumNoms.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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;
}
}
}
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
9 changes: 0 additions & 9 deletions ThaumaturgyPlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
}
2 changes: 1 addition & 1 deletion build.txt
Original file line number Diff line number Diff line change
@@ -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/

0 comments on commit 5e7b02e

Please sign in to comment.