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)
146 EClass.player.questRerollCost -= 3;
149 EClass.player.questRerollCost = 0;
173 if (!
item.IsPCFaction &&
EClass.
rnd(10) == 0 && (
item.isDead ||
item.currentZone ==
null ||
item.currentZone.id ==
"somewhere"))
193 EClass.player.flags.magicChestSent =
true;
195 thing.
SetStr(53,
"letter_magic_chest");
200 if (base.day == 25 && base.month == 12)
216 if (base.month % 2 == 0)
234 EClass.player.wellWished =
false;
242 if (container_shipping.
things.Count == 0)
250 List<Thing> list =
new List<Thing>();
251 List<string> list2 =
new List<string>();
253 if (zone ==
null || zone.
branch ==
null)
259 shippingResult.uidZone = zone.
uid;
262 EClass.player.stats.shipMoney = 2147483647L;
265 shippingResult.hearthLv = zone.
branch.
lv;
266 shippingResult.hearthExp = zone.
branch.
exp;
268 foreach (
Thing thing3
in container_shipping.
things)
273 int num5 = price * thing3.
Num;
276 num2 +=
EClass.
rndHalf(thing3.
Num * Mathf.Min(15 + price, 10000) / 100 + 1);
290 if (zone.branch.policies.IsActive(2515))
294 shippingResult.hearthExpGained = num2;
296 foreach (
string item in list2)
301 EClass.player.stats.shipNum += num;
302 EClass.player.stats.shipMoney += num3;
304 if (shippingBonus2 > shippingBonus)
306 num4 = shippingBonus2 - shippingBonus;
308 foreach (
Thing item2
in list)
323 if (thing !=
null && thing2 !=
null)
325 text =
"_and".lang(thing.
Name, thing2.
Name);
328 else if (thing !=
null || thing2 !=
null)
330 text = ((thing !=
null) ? thing : thing2).
Name;
335 for (
int i = 0; i < EClass.player.shippingResults.Count - 10; i++)
339 zone.branch.statistics.ship += num3;
340 zone.branch.ModExp(num2);
354 if (container_deliver.
things.Count == 0)
359 while (container_deliver.
things.Count > 0)
364 Debug.Log(
"too many tries");
370 int @
int = thing2.
GetInt(102);
380 for (
int num3 = container_deliver.
things.Count - 1; num3 >= 0; num3--)
434 EClass.player.flags.lutz = num;
436 thing.
SetStr(53,
"lutz_" + num);
448 EClass.player.flags.statueShipped =
true;
449 Add(
"statue_weird", 1);
482 string id2 =
"trash2";
489 id2 = ((
EClass.
rnd(3) == 0) ?
"529" :
"1170");
506 void Add(
string id,
int num)
510 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()