-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Sky Crates now have a 25% chance of dropping Sky Mill. - Made an Angler Potion: Causes the angler to have a new quest for you right away. - Reduced war potion cost from 7 to 5 powders (which is 1 mushroom).
- Loading branch information
1 parent
9b151f0
commit 22f80e4
Showing
5 changed files
with
82 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
using Terraria; | ||
using Terraria.ID; | ||
using Terraria.ModLoader; | ||
|
||
namespace ReducedGrinding.Items | ||
{ | ||
public class Angler_Potion : ModItem | ||
{ | ||
public override void SetStaticDefaults() | ||
{ | ||
DisplayName.SetDefault("Angler Potion"); | ||
Tooltip.SetDefault("One botle of this will make the Angler want to give you a new fishing quest right away."); | ||
} | ||
|
||
public override void SetDefaults() | ||
{ | ||
item.width = 20; | ||
item.height = 30; | ||
item.maxStack = 30; | ||
item.rare = 0; | ||
item.useAnimation = 45; | ||
item.useTime = 45; | ||
item.useStyle = 4; | ||
item.value = (Config.RainPotionWaterleafCost * 200); | ||
item.UseSound = SoundID.Item3; | ||
item.consumable = true; | ||
} | ||
|
||
public override bool CanUseItem(Player player) | ||
{ | ||
return true; | ||
} | ||
|
||
public override bool UseItem(Player player) | ||
{ | ||
Main.NewText("The angler has a new quest for you.", 0, 128, 255); | ||
Main.AnglerQuestSwap(); | ||
return true; | ||
} | ||
|
||
public override void AddRecipes() | ||
{ | ||
if (Config.UseAnglerPotionRecipe) | ||
{ | ||
ModRecipe recipe = new ModRecipe(mod); | ||
recipe.AddIngredient(ItemID.BottledWater, 1); | ||
if (Config.AnglerPotionSpecularFishCost > 0) | ||
recipe.AddIngredient(2309, Config.AnglerPotionSpecularFishCost); | ||
if (Config.AnglerPotionMoonglowCost > 0) | ||
recipe.AddIngredient(314, Config.AnglerPotionMoonglowCost); | ||
recipe.AddTile(TileID.Bottles); | ||
recipe.SetResult(this); | ||
recipe.AddRecipe(); | ||
} | ||
} | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters