public virtual void ConfigurePlacesRepeat() { // TODO: randomize choice // Placer = new Placer(new Positions.Rand((float) (2*ZChunk.size)), Positions.Rand.NoCenter(1f)); Options.Repeaters(this); Positions.Rand directions = Positions.Rand.NoCenter(1f); Positions pos; // pos = new Positions.LineAround(4f); if (true) { float u = Hashes.Rand(seed, "positionType"); if (u < 0.4) { pos = new Positions.AtZChunk(); } else if (u < 0.8) { pos = new Positions.Rand((float)(2 * ZChunk.size)); } else { pos = new Positions.LineAround(4f); } } Placer = new Placer(new Positions.Rand((float)(2 * ZChunk.size)), Positions.Rand.NoCenter(1f)); Printer.Log(40, "ZBEffect ConfigurePlacesRepeat: Repeater, Positions, Directions"); }
public override void ConfigurePlacesRepeat() { Positions line = new Positions.LineAround(2f); Placer = new Placer(line, Positions.Rand.NoCenter(1f)); Options.Repeaters(this); }