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

◆ ModifyTorchLuck()

static void Terraria.ModLoader.TileLoader.ModifyTorchLuck ( Player player,
ref float positiveLuck,
ref float negativeLuck )
inlinestatic

Definition at line 728 of file TileLoader.cs.

729 {
730 foreach (int item in player.NearbyModTorch)
731 {
732 float f = GetTile(item).GetTorchLuck(player);
733 if (f > 0f)
734 {
735 positiveLuck += f;
736 }
737 else
738 {
739 negativeLuck += 0f - f;
740 }
741 }
742 }
static ModTile GetTile(int type)
Gets the ModTile instance with the given type. If no ModTile with the given type exists,...

References Terraria.ModLoader.TileLoader.GetTile().

Referenced by Terraria.Player.UpdateTorchLuck_ConsumeCountersAndCalculate().

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