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

◆ DropCritterChance()

virtual void Terraria.ModLoader.GlobalTile.DropCritterChance ( int i,
int j,
int type,
ref int wormChance,
ref int grassHopperChance,
ref int jungleGrubChance )
inlinevirtual

Allows you to modify the chance the tile at the given coordinates has of spawning a certain critter when the tile is killed.

Parameters
iThe x position in tile coordinates.
jThe y position in tile coordinates.
typeThe tile type
wormChanceChance for a worm to spawn. Value corresponds to a chance of 1 in X. Vanilla values include: Grass-400, Plants-200, Various Piles-6
grassHopperChanceChance for a grass hopper to spawn. Value corresponds to a chance of 1 in X. Vanilla values include: Grass-100, Plants-50
jungleGrubChanceChance for a jungle grub to spawn. Value corresponds to a chance of 1 in X. Vanilla values include: JungleVines-250, JunglePlants2-40, PlantDetritus-10

Definition at line 44 of file GlobalTile.cs.

45 {
46 }