11 public static int[]
ListWrecks =
new int[6] { 34, 46, 83, 85, 86, 87 };
23 public void Init(Dungen.Room room)
32 public void Init(
int _x,
int _y,
int w,
int h)
56 for (
int i = 0; i < 100; i++)
69 int a = Mathf.Min(i / 3 + 2,
width / 2);
70 int a2 = Mathf.Min(i / 3 + 2,
height / 2);
78 thing.dir = desiredDir;
92 for (
int j =
x; j <
x +
width; j++)
99 biome.
Populate(point2, interior:
true);
123 if (zone.biome.spawn.thing.Count > 0)
125 Thing thing2 = ThingGen.CreateFromFilter(zone.biome.spawn.GetRandomThingId(), EClass._zone.DangerLv);
128 zone.AddCard(thing2, p);
135 map.SetObj(p.x, p.z, 82);
136 if (EClass.rnd(2) == 0)
138 map.ApplyBackerObj(p);
156 for (
int j = 0; j < Size / 25 +
EClass.
rnd(Size / 25); j++)
158 SetRandomPoint(delegate(
Point p)
162 Thing thing = ThingGen.CreateFromFilter(zone.biome.spawn.GetRandomThingId(), EClass._zone.DangerLv);
165 zone.AddCard(thing, p);
180 int idMat =
block.mat;
189 for (
int i = x; i < x + width; i++)
191 for (
int j = y; j < y + height; j++)
193 if (map.cells[i, j]._block != 0)
204 int a = Mathf.Max(width - 2, 1);
205 int a2 = Mathf.Max(height - 2, 1);
206 for (
int i = 0; i < 100; i++)
210 _c = map.cells[_p.x, _p.z];
211 if (!_c.blocked && !_c.HasBlock && !_p.HasThing && !_p.HasChara)
221 int a = Mathf.Max(width / 2 - 1, 1);
222 int a2 = Mathf.Max(height / 2 - 1, 1);
223 for (
int i = 0; i < 100; i++)
227 _c = map.cells[_p.x, _p.z];
228 if (!_c.blocked && !_c.HasBlock && !_p.HasThing && !_p.HasChara)
if(item3.idFile==idFirstFile &&item3.id==idFirstTopic)
List< Cluster.ItemThing > lights
void Populate(Point point, bool interior=false)
PartialMap TryAddMapPiece(MapPiece.Type type=MapPiece.Type.Any, float ruin=-1f, string tags=null, Action< PartialMap, GenBounds > onCreate=null)
void Init(int _x, int _y, int w, int h)
BiomeProfile.TileGroup group
void SetRandomPoint(Action< Point > action)
virtual bool PopulateCluster
void Init(Dungen.Room room)
virtual void OnPopulate()
void SetRandomPointCentered(Action< Point > action)
void SetObj(int x, int z, int id=0, int value=1, int dir=0)
Point Set(int _x, int _z)
static int Range(int min, int max)
static Thing Create(string id, int idMat=-1, int lv=-1)
virtual int GetDesiredDir(Point p, int d)
virtual bool UseMountHeight
Chara SpawnMob(Point pos=null, SpawnSetting setting=null)
Card AddCard(Card t, Point point)