Skip to content

Commit

Permalink
ExampleHerb add AcornAxe effect
Browse files Browse the repository at this point in the history
  • Loading branch information
JavidPack committed Aug 19, 2023
1 parent 716495e commit fedb0ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ExampleMod/Content/Tiles/ExampleHerb.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public class ExampleHerb : ModTile
int seedItemType = ModContent.ItemType<ExampleHerbSeeds>();
int seedItemStack = 1;

if (nearestPlayer.active && nearestPlayer.HeldItem.type == ItemID.StaffofRegrowth) {
if (nearestPlayer.active && (nearestPlayer.HeldItem.type == ItemID.StaffofRegrowth || nearestPlayer.HeldItem.type == ItemID.AcornAxe)) {
// Increased yields with Staff of Regrowth, even when not fully grown
herbItemStack = Main.rand.Next(1, 3);
seedItemStack = Main.rand.Next(1, 6);
Expand Down

0 comments on commit fedb0ea

Please sign in to comment.