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

◆ UpdateDarknessState()

static void Terraria.GameContent.DontStarveDarknessDamageDealer.UpdateDarknessState ( Player player)
inlinestaticprivate

Definition at line 73 of file DontStarveDarknessDamageDealer.cs.

74 {
76 {
77 if (saidMessage)
78 {
79 if (!Main.getGoodWorld)
80 {
81 Main.NewText(Language.GetTextValue("Game.DarknessSafe"), 50, 200, 50);
82 }
83 saidMessage = false;
84 }
85 ResetTimer();
86 return;
87 }
90 {
91 if (!Main.getGoodWorld)
92 {
93 Main.NewText(Language.GetTextValue("Game.DarknessDanger"), 200, 50, 50);
94 }
95 saidMessage = true;
96 }
98 }
static string GetTextValue(string key)
Retrieves the text value for a specified localization key. The text returned will be for the currentl...
Definition Language.cs:35
Contains methods to access or retrieve localization values. The Localization Guideteaches more about ...
Definition Language.cs:12

References Terraria.GameContent.DontStarveDarknessDamageDealer.darknessTimer, Terraria.GameContent.DontStarveDarknessDamageDealer.GetDarknessTimeForMessage(), Terraria.Main.getGoodWorld, Terraria.Localization.Language.GetTextValue(), Terraria.GameContent.DontStarveDarknessDamageDealer.IsPlayerSafe(), Terraria.GameContent.DontStarveDarknessDamageDealer.lastFrameWasTooBright, Terraria.Main.NewText(), Terraria.GameContent.DontStarveDarknessDamageDealer.ResetTimer(), and Terraria.GameContent.DontStarveDarknessDamageDealer.saidMessage.

Referenced by Terraria.GameContent.DontStarveDarknessDamageDealer.Update().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: