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

◆ SpawnNPC_SpawnFrog()

static void Terraria.NPC.SpawnNPC_SpawnFrog ( int spawnTileX,
int spawnTileY,
int plr )
inlinestatic

Definition at line 76766 of file NPC.cs.

76767 {
76768 if (!unlockedSlimeYellowSpawn && Main.player[plr].RollLuck(30) == 0 && !AnyNPCs(687))
76769 {
76770 NewNPC(GetSpawnSourceForNaturalSpawn(), spawnTileX * 16 + 8, spawnTileY * 16, 687);
76771 }
76772 else if (Main.player[plr].RollLuck(goldCritterChance) == 0)
76773 {
76774 NewNPC(GetSpawnSourceForNaturalSpawn(), spawnTileX * 16 + 8, spawnTileY * 16, 445);
76775 }
76776 else
76777 {
76778 NewNPC(GetSpawnSourceForNaturalSpawn(), spawnTileX * 16 + 8, spawnTileY * 16, 361);
76779 }
76780 }
static int goldCritterChance
Definition NPC.cs:69
static bool AnyNPCs(int Type)
Definition NPC.cs:86689
static int NewNPC(IEntitySource source, int X, int Y, int Type, int Start=0, float ai0=0f, float ai1=0f, float ai2=0f, float ai3=0f, int Target=255)
Definition NPC.cs:77654
static bool unlockedSlimeYellowSpawn
Definition NPC.cs:319
static IEntitySource GetSpawnSourceForNaturalSpawn()
Definition NPC.cs:87536

References Terraria.Main.player.