1using System.Collections.Generic;
47 elomap.SetZone(zone.x, zone.y, zone);
60 if (
FindZone(
"foxtown_nefu") ==
null)
64 if (
FindZone(
"little_garden") ==
null)
89 int num = 50 - list.Count;
92 for (
int i = 0; i < num; i++)
116 if (idSource.IsEmpty())
144 zone._dangerLv = Mathf.Max(1,
lv);
145 zone.isRandomSite =
true;
167 for (
int i = 0; i < 1000; i++)
183 for (
int i = 0; i < 1000; i++)
185 point.x = orgX +
Rand.
Range(-radius / 2, radius / 2);
186 point.z = orgY +
Rand.
Range(-radius / 2, radius / 2);
187 if (i % 100 == 0 && increaseRadius)
203 for (
int i = 0; i < 1000; i++)
205 point.x = orgX +
Rand.
Range(-maxRadius, maxRadius);
206 point.z = orgY +
Rand.
Range(-maxRadius, maxRadius);
233 List<Zone> list =
new List<Zone>();
238 list.Add(value as
Zone);
248 for (
int i = 0; i < 5; i++)
250 zone = list.RandomItem();
265 List<Zone> list =
new List<Zone>();
268 if (zone.
Dist(center) <= radius && zone != center && !(zone.
source.parent != base.source.id))
279 List<Zone> list =
new List<Zone>();
316 if (randomPoint !=
null)
322 ShouldPass = (
SourceChara.
Row s) => s.biome == biome.name || s.biome.IsEmpty()
334 List<Chara> list =
new List<Chara>();
string GetRandomCharaId()
static Chara CreateFromFilter(string id, int lv=-1, int levelRange=-1)
int GetRaw(int offsetHours=0)
static SourceManager sources
static int rndHalf(int a)
void Initialize(EloMap _elomap)
void SetZone(int gx, int gy, Zone z, bool updateMesh=false)
bool IsSnow(int gx, int gy)
bool CanBuildSite(int gx, int gy, int radius=0, ElomapSiteType type=ElomapSiteType.Nefia)
TileInfo GetTileInfo(int gx, int gy)
static string Say(string idLang, string ref1, string ref2=null, string ref3=null, string ref4=null)
int CountKeyItem(string alias)
Point Set(int _x, int _z)
static int Range(int min, int max)
SourceZone.Row GetRandomSiteSource()
bool CanCreateZone(Point pos)
Point GetRandomPoint(int orgX, int orgY, int minRadius, int maxRadius)
Point GetRandomPoint(int orgX, int orgY, int radius=8, bool increaseRadius=false)
override void OnAdvanceHour()
override bool BlockBorderExit
override void OnActivate()
override ActionMode DefaultActionMode
List< Zone > ListTravelZones(int radius=100)
override bool WillAutoSave
Zone CreateZone(Point pos)
List< Zone > ListRandomSites()
Zone CreateRandomSite(Zone center, int radius=8, string idSource=null, bool updateMesh=true, int lv=0)
List< Zone > ListZonesInRadius(Zone center, int radius=10)
Zone CreateRandomSite(Point pos, string idSource, bool updateMesh, int lv=0)
static Spatial Create(string id, Spatial parent, bool register, int x=-99999, int y=-99999, int icon=0)
virtual bool CanFastTravel
static SpawnList Get(string id, string parent=null, CardFilter filter=null)
Card AddCard(Card t, Point point)