1using System.Collections.Generic;
24 EClass.game.sessionMin += a;
25 EClass.player.stats.mins += a;
29 while (base.min >= 60)
36 else if (base.min % 3 == 2)
49 if (detail !=
null && detail.
footmark == footmark)
51 detail.footmark =
null;
62 EClass.player.countNewline = 0;
74 virtualDate.IsRealTime =
true;
108 globalGoalAdv.
Start();
126 if (base.month == 10)
130 if (base.month == 11)
138 if (base.year >= 2500)
150 EClass.player.questRerollCost -= 3;
153 EClass.player.questRerollCost = 0;
177 if (!
item.IsPCFaction &&
EClass.
rnd(10) == 0 && (
item.isDead ||
item.currentZone ==
null ||
item.currentZone.id ==
"somewhere"))
201 EClass.player.flags.magicChestSent =
true;
203 thing.
SetStr(53,
"letter_magic_chest");
208 if (base.day == 25 && base.month == 12)
224 if (base.month % 2 == 0)
242 EClass.player.wellWished =
false;
250 if (container_shipping.
things.Count == 0)
258 List<Thing> list =
new List<Thing>();
259 List<string> list2 =
new List<string>();
261 if (zone ==
null || zone.
branch ==
null)
267 shippingResult.uidZone = zone.
uid;
270 EClass.player.stats.shipMoney = 2147483647L;
273 shippingResult.hearthLv = zone.
branch.
lv;
274 shippingResult.hearthExp = zone.
branch.
exp;
276 foreach (
Thing thing3
in container_shipping.
things)
281 int num5 = price * thing3.
Num;
284 num2 +=
EClass.
rndHalf(thing3.
Num * Mathf.Min(15 + price, 10000) / 100 + 1);
298 if (zone.branch.policies.IsActive(2515))
302 shippingResult.hearthExpGained = num2;
304 foreach (
string item in list2)
309 EClass.player.stats.shipNum += num;
310 EClass.player.stats.shipMoney += num3;
312 if (shippingBonus2 > shippingBonus)
314 num4 = shippingBonus2 - shippingBonus;
316 foreach (
Thing item2
in list)
331 if (thing !=
null && thing2 !=
null)
333 text =
"_and".lang(thing.
Name, thing2.
Name);
336 else if (thing !=
null || thing2 !=
null)
338 text = ((thing !=
null) ? thing : thing2).
Name;
343 for (
int i = 0; i < EClass.player.shippingResults.Count - 10; i++)
347 zone.branch.statistics.ship += num3;
348 zone.branch.ModExp(num2);
362 if (container_deliver.
things.Count == 0)
367 while (container_deliver.
things.Count > 0)
372 Debug.Log(
"too many tries");
378 int @
int = thing2.
GetInt(102);
388 for (
int num3 = container_deliver.
things.Count - 1; num3 >= 0; num3--)
442 EClass.player.flags.lutz = num;
444 thing.
SetStr(53,
"lutz_" + num);
456 EClass.player.flags.statueShipped =
true;
457 Add(
"statue_weird", 1);
490 string id2 =
"trash2";
497 id2 = ((
EClass.
rnd(3) == 0) ?
"529" :
"1170");
514 void Add(
string id,
int num)
518 void AddThing(
Thing t,
int num)
static bool TryPray(Chara c, bool passive=false)
void SetStr(int id, string value=null)
int GetInt(int id, int? defaultInt=null)
void SetInt(int id, int value=0)
GlobalCharaList globalCharas
List< Thing > listPackage
virtual int GetPrice(CurrencyType currency=CurrencyType.Money, bool sell=false, PriceType priceType=PriceType.Default, Chara c=null)
override bool IsPCFaction
Thing Pick(Thing t, bool msg=true, bool tryStack=true)
int GetRaw(int offsetHours=0)
static BaseGameScreen screen
static int rndHalf(int a)
static SoundManager Sound
void TryPayBill(Thing bill)
void ShipRandomPackages()
RelationManager relations
List< Footmark > footmarks
static string Say(string idLang, string ref1, string ref2=null, string ref3=null, string ref4=null)
int daysAfterQuestExploration
int GetShippingBonus(long _a)
List< ShippingResult > shippingResults
bool IsActive(int id, int days=-1)
Quest Add(string id, string idGlobalChara=null)
bool IsCompleted(string id)
Quest GetGlobal(string id)
static void ShakeCam(string id="default", float magnitude=1f)
static SpawnList Get(string id, string parent=null, CardFilter filter=null)
CardRow Select(int lv=-1, int levelRange=-1)
static Thing CreateParcel(string idLang=null, params Thing[] things)
static Thing CreateFromTag(string idTag, int lv=-1)
static Thing CreateFromCategory(string idCat, int lv=-1)
static Thing CreateBill(int pay, bool tax)
static Thing CreateCardboardBox(int uidZone=-1)
static Thing Create(string id, int idMat=-1, int lv=-1)
virtual bool UseGlobalGoal
virtual bool CanBeShipped
static void Reserve(string idStep, Action onBeforePlay=null)
static void Remove(string idStep)
void SendPackage(Thing p)
virtual void OnAdvanceHour()