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

◆ HandleMeteorFall()

static void Terraria.Main.HandleMeteorFall ( )
inlinestaticprivate

Definition at line 82572 of file Main.cs.

82573 {
82574 if (netMode != 1 && WorldGen.spawnMeteor)
82575 {
82576 if (time < 15000.0)
82577 {
82578 _canShowMeteorFall = true;
82579 }
82580 else
82581 {
82582 if (_canShowMeteorFall && time <= 16200.0)
82583 {
82585 {
82586 skyEntityType = SkyEntityType.Meteor,
82587 targetPlayer = -1
82588 });
82589 }
82590 _canShowMeteorFall = false;
82591 }
82592 }
82593 if (time > 16200.0 && WorldGen.spawnMeteor)
82594 {
82595 WorldGen.spawnMeteor = false;
82596 WorldGen.dropMeteor();
82597 }
82598 }
void ForceEntitySpawn(AmbienceSpawnInfo info)
static double time
The time that has passed since it last became day/night. Increased by F:Terraria....
Definition Main.cs:1375
static int netMode
Denotes the current network mode: 0 for single player client, 1 for multiplayer client,...
Definition Main.cs:2182
static bool _canShowMeteorFall
Definition Main.cs:2690

References Terraria.Main._canShowMeteorFall, Terraria.WorldGen.dropMeteor(), Terraria.GameContent.Ambience.AmbienceServer.ForceEntitySpawn(), Terraria.Main.netMode, Terraria.WorldGen.spawnMeteor, and Terraria.Main.time.

Referenced by Terraria.Main.UpdateTime().

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