2using System.Collections.Generic;
4using System.Runtime.Serialization;
13 public int[]
ints =
new int[50];
98 bits.Bits = (uint)
ints[0];
151 void Check(
int a, Action action)
156 EClass.game.survival.flags.floors = a;
170 string[] array =
new string[6] {
"log",
"rock",
"branch",
"bone",
"grass",
"vine" };
171 int chanceChange = 25;
172 int num = searchWreck / 50 + 3;
173 if (searchWreck == 0)
178 switch (sourceObj.
alias)
184 array =
new string[6] {
"log",
"log",
"branch",
"grass",
"vine",
"resin" };
191 array =
new string[4] {
"rock",
"rock",
"stone",
"bone" };
195 array =
new string[1] {
"scrap" };
199 array =
new string[1] {
"fiber" };
201 case "wreck_precious":
222 Point pos = point.
GetNearestPoint(allowBlock:
false, allowChara:
false, allowInstalled:
false, ignoreCenter:
true) ?? point;
223 if (searchWreck < 50 ||
EClass.
rnd(3) != 0)
236 Point pos2 = point.
GetNearestPoint(allowBlock:
false, allowChara:
false, allowInstalled:
false, ignoreCenter:
true) ?? point;
251 string[] source =
new string[11]
253 "nest_bird",
"wreck_wood",
"wreck_wood",
"wreck_wood",
"wreck_wood",
"wreck_stone",
"wreck_stone",
"wreck_scrap",
"wreck_junk",
"wreck_cloth",
271 if (r.quality != 4 || r.race ==
"god" || r.size.Length != 0)
284 return EClass.game.cards.globalCharas.Find(r.id) == null;
292 for (
int i = 0; i < (EClass.debug.enable ? 10 : 2); i++)
Thing TryMakeRandomItem(int lv=-1, TryMakeRandomItemSource itemSource=TryMakeRandomItemSource.Default, Chara crafter=null)
void RemoveEditorTag(EditorTag tag)
SourceFloor.Row sourceFloor
static Chara Create(string id, int lv=-1)
int GetRaw(int offsetHours=0)
static SourceManager sources
static void Create(Point center, int radius, int count, Action< int, Point > onComplete)
new void ForeachCell(Action< Cell > action)
void TrySmoothPick(Cell cell, Thing t, Chara c)
void SetObj(int x, int z, int id=0, int value=1, int dir=0)
static string Say(string idLang, string ref1, string ref2=null, string ref3=null, string ref4=null)
Point GetNearestPoint(bool allowBlock=false, bool allowChara=true, bool allowInstalled=true, bool ignoreCenter=false, int minRadius=0)
static SpawnSetting HomeWild(int lv)
static SpawnSetting HomeEnemy(int lv)
void _OnSerializing(StreamingContext context)
void _OnDeserialized(StreamingContext context)
bool OnMineWreck(Point point)
ZoneEventRaid GetRaidEvent()
void OnUpdateRecruit(FactionBranch branch)
void Meteor(Point pos, Action action)
void OnExpandFloor(Point pos)
List< SourceChara.Row > ListUnrecruitedUniques()
static Thing CreateFromFilter(string id, int lv=-1)
static Thing CreateFloor(int id, int idMat, bool platform=false)
static Thing CreateRecipe(string id)
static Thing Create(string id, int idMat=-1, int lv=-1)
static Thing MakeRandomSeed(bool enc=false)
void Add(ZoneEvent e, bool allowDuplicate=false)
void ClaimZone(bool debug=false, Point pos=null)
Chara SpawnMob(Point pos=null, SpawnSetting setting=null)
Card AddCard(Card t, Point point)