-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
04c7f28
commit ad2af4b
Showing
3 changed files
with
26 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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<PRPlayer>(); | ||
if (Main.vanityPet[type] && petPlayer.petNameVanity != "") | ||
{ | ||
tip += "\nName: " + petPlayer.petNameVanity; | ||
} | ||
else if(Main.lightPet[type] && petPlayer.petNameLight != "") | ||
{ | ||
tip += "\nName: " + petPlayer.petNameLight; | ||
} | ||
} | ||
} | ||
} |
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