diff --git a/PRBuff.cs b/PRBuff.cs new file mode 100644 index 0000000..6ad88ae --- /dev/null +++ b/PRBuff.cs @@ -0,0 +1,21 @@ +using Terraria; +using Terraria.ModLoader; + +namespace PetRenamer +{ + class PRBuff : GlobalBuff + { + public override void ModifyBuffTip(int type, ref string tip, ref int rare) + { + PRPlayer petPlayer = Main.LocalPlayer.GetModPlayer(); + if (Main.vanityPet[type] && petPlayer.petNameVanity != "") + { + tip += "\nName: " + petPlayer.petNameVanity; + } + else if(Main.lightPet[type] && petPlayer.petNameLight != "") + { + tip += "\nName: " + petPlayer.petNameLight; + } + } + } +} diff --git a/PetRenamer.csproj b/PetRenamer.csproj index f94a046..72daef0 100644 --- a/PetRenamer.csproj +++ b/PetRenamer.csproj @@ -59,6 +59,7 @@ + diff --git a/description.txt b/description.txt index 90a7d52..813b4cf 100644 --- a/description.txt +++ b/description.txt @@ -22,4 +22,7 @@ Changelog: v1.0.0.2: Narrowed down detection of pet summoning items, if you had any previous items set to a name that weren't a pet, they will be reset upon game quit -v1.0 and 1.0.0.1: Initial release and added icon \ No newline at end of file +v1.0 and 1.0.0.1: Initial release and added icon + +Mod recommendations: +AssortedCrazyThings = Adds alot of pets mostly fit around vanilla \ No newline at end of file