2using System.Collections.Generic;
4using System.Runtime.Serialization;
13 public int[]
ints =
new int[50];
134 bits.Bits = (uint)
ints[0];
164 if (
card.id ==
"rod_wish")
191 Add(
new string[7] {
"659",
"758",
"759",
"806",
"828",
"1190",
"1191" });
194 Add(
new string[7] {
"pillow_jure",
"pillow_ehekatl",
"pillow_opatos",
"pillow_kumiromi",
"pillow_lulwy",
"pillow_mani",
"pillow_itzpalt" });
198 Add(
new string[1] {
"rod_wish" });
201 void Add(
string[] ids)
203 foreach (
string item in ids)
246 void Check(
int a, Action action)
251 EClass.game.survival.flags.floors = a;
276 string[] array =
new string[6] {
"log",
"rock",
"branch",
"bone",
"grass",
"vine" };
277 int chanceChange = 25;
278 int num = searchWreck / 50 + 1;
279 if (searchWreck == 0)
284 switch (sourceObj.
alias)
290 array =
new string[8] {
"log",
"log",
"branch",
"grass",
"vine",
"resin",
"leaf",
"chunk" };
297 array =
new string[4] {
"rock",
"rock",
"stone",
"bone" };
301 array =
new string[1] {
"scrap" };
305 array =
new string[1] {
"fiber" };
307 case "wreck_precious":
336 if (searchWreck > 10 &&
EClass.
rnd(40 + num) == 0)
341 TreasureType.Map =>
"chest_treasure",
342 TreasureType.BossNefia =>
"chest_boss",
350 Point pos = point.
GetNearestPoint(allowBlock:
false, allowChara:
false, allowInstalled:
false, ignoreCenter:
true) ?? point;
351 if (searchWreck < 100 ||
EClass.
rnd(3) != 0)
365 Point pos2 = point.
GetNearestPoint(allowBlock:
false, allowChara:
false, allowInstalled:
false, ignoreCenter:
true) ?? point;
366 if (searchWreck2 == 20)
377 flags.gotTaxChest =
true;
382 flags.gotGaragara =
true;
391 string[] source =
new string[12]
393 "nest_bird",
"wreck_wood",
"wreck_wood",
"wreck_wood",
"wreck_wood",
"wreck_wood",
"wreck_stone",
"wreck_stone",
"wreck_scrap",
"wreck_junk",
394 "wreck_cloth",
"wreck_precious"
411 List<Cell> list =
new List<Cell>();
423 return list.RandomItem().GetPoint();
430 if (r.quality != 4 || r.race ==
"god" || r.size.Length != 0)
446 if (EClass.game.cards.globalCharas.Find(r.id) == null)
448 return r.LV < flags.raidLv + 10;
458 for (
int i = 0; i < (EClass.debug.enable ? 10 : 2); i++)
if(item3.idFile==idFirstFile &&item3.id==idFirstTopic)
GlobalCharaList globalCharas
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)
Thing FindThing(Func< Thing, bool > func)
void ForeachSphere(int _x, int _z, float r, Action< Point > action)
void TrySmoothPick(Cell cell, Thing t, Chara c)
void SetObj(int x, int z, int id=0, int value=1, int dir=0)
Point GetNearestPoint(bool allowBlock=false, bool allowChara=true, bool allowInstalled=true, bool ignoreCenter=false, int minRadius=0)
Quest Add(string id, string idGlobalChara=null)
Quest Start(string id, string idGlobalChara)
static SpawnSetting HomeWild(int lv)
static SpawnSetting HomeEnemy(int lv)
void _OnSerializing(StreamingContext context)
void _OnDeserialized(StreamingContext context)
List< string > listReward
bool OnMineWreck(Point point)
ZoneEventRaid GetRaidEvent()
void OnUpdateRecruit(FactionBranch branch)
void Meteor(Point pos, Action action)
void OnExpandFloor(Point pos)
void MeteorThing(Point pos, Thing t, bool install=false)
void MeteorThing(Point pos, string id, bool install=false)
List< SourceChara.Row > ListUnrecruitedUniques()
static Thing CreateFromFilter(string id, int lv=-1)
static Thing CreateParcel(string idLang=null, params Thing[] things)
static void CreateTreasureContent(Thing t, int lv, TreasureType type, bool clearContent)
static Thing CreateFloor(int id, int idMat, bool platform=false)
static Thing CreateRecipe(string id)
static Thing CreateRod(int ele, int charge=-1)
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)