Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
ActionGrass.cs
Go to the documentation of this file.
3
5
6public class ActionGrass : GenAction
7{
8 public override bool Apply(Point origin, int x, int y, params object[] args)
9 {
10 if (GenBase._tiles[x, y].active() || GenBase._tiles[x, y - 1].active())
11 {
12 return false;
13 }
14 WorldGen.PlaceTile(x, y, Utils.SelectRandom(GenBase._random, new ushort[2] { 3, 73 }), mute: true);
15 return UnitApply(origin, x, y, args);
16 }
17}
override bool Apply(Point origin, int x, int y, params object[] args)
Definition ActionGrass.cs:8
bool UnitApply(Point origin, int x, int y, params object[] args)
Definition GenAction.cs:15
static UnifiedRandom _random
Definition GenBase.cs:9
static bool PlaceTile(int i, int j, int Type, bool mute=false, bool forced=false, int plr=-1, int style=0)