DropCritterChance() public method

public DropCritterChance ( int i, int j, int &wormChance, int &grassHopperChance, int &jungleGrubChance ) : void
i int
j int
wormChance int
grassHopperChance int
jungleGrubChance int
return void
Example #1
0
        //in Terraria.WorldGen.KillTile before if statement checking num43 call
        //  TileLoader.DropCritterChance(i, j, tile.type, ref num43, ref num44, ref num45);
        public static void DropCritterChance(int i, int j, int type, ref int wormChance, ref int grassHopperChance, ref int jungleGrubChance)
        {
            ModTile modTile = GetTile(type);

            if (modTile != null)
            {
                modTile.DropCritterChance(i, j, ref wormChance, ref grassHopperChance, ref jungleGrubChance);
            }
            foreach (GlobalTile globalTile in globalTiles)
            {
                globalTile.DropCritterChance(i, j, type, ref wormChance, ref grassHopperChance, ref jungleGrubChance);
            }
        }