Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetBuffTooltip()

static string Terraria.Main.GetBuffTooltip ( Player player,
int buffType )
inlinestatic

Definition at line 40267 of file Main.cs.

40268 {
40269 string text = Lang.GetBuffDescription(buffType);
40270 switch (buffType)
40271 {
40272 case 26:
40273 if (expertMode)
40274 {
40275 text = Language.GetTextValue("BuffDescription.WellFed_Expert");
40276 }
40277 break;
40278 case 206:
40279 if (expertMode)
40280 {
40281 text = Language.GetTextValue("BuffDescription.WellFed2_Expert");
40282 }
40283 break;
40284 case 207:
40285 if (expertMode)
40286 {
40287 text = Language.GetTextValue("BuffDescription.WellFed3_Expert");
40288 }
40289 break;
40290 case 94:
40291 {
40292 int num = (int)(player.manaSickReduction * 100f) + 1;
40293 text = text + num + "%";
40294 break;
40295 }
40296 }
40297 return text;
40298 }
static string GetTextValue(string key)
Definition Language.cs:15
static bool expertMode
Definition Main.cs:2737
static Player[] player
Definition Main.cs:1803

References Terraria.Main.expertMode, Terraria.Lang.GetBuffDescription(), Terraria.Localization.Language.GetTextValue(), Terraria.Main.player, and System.text.

Referenced by Terraria.Main.DrawInterface_Resources_Buffs(), and Terraria.Main.DrawInventory().