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;
112 globalGoalAdv.
Start();
130 if (base.month == 10)
134 if (base.month == 11)
142 if (base.year >= 2500)
153 EClass.player.questRerollCost -= 3;
156 EClass.player.questRerollCost = 0;
180 if (!
item.IsPCFaction &&
EClass.
rnd(10) == 0 && (
item.isDead ||
item.currentZone ==
null ||
item.currentZone.id ==
"somewhere"))
208 EClass.player.flags.magicChestSent =
true;
210 thing.
SetStr(53,
"letter_magic_chest");
218 thing2.
SetStr(53,
"letter_crimale");
222 if (base.day == 25 && base.month == 12)
231 if (date.
month == base.month && date.
day == base.day)
233 value2.c_love.gotMusicBox =
true;
238 thing4.
SetStr(53,
"letter_love");
256 if (base.month % 2 == 0)
274 EClass.player.flags.santa = 0;
275 EClass.player.wellWished =
false;
283 if (container_shipping.
things.Count == 0)
291 List<Thing> list =
new List<Thing>();
292 List<string> list2 =
new List<string>();
294 if (zone ==
null || zone.
branch ==
null)
300 shippingResult.uidZone = zone.
uid;
303 EClass.player.stats.shipMoney = 2147483647L;
306 shippingResult.hearthLv = zone.
branch.
lv;
307 shippingResult.hearthExp = zone.
branch.
exp;
309 foreach (
Thing thing3
in container_shipping.
things)
314 int num5 = price * thing3.
Num;
317 num2 +=
EClass.
rndHalf(thing3.
Num * Mathf.Min(15 + price, 10000) / 100 + 1);
326 if (num3 >
int.MaxValue)
335 if (zone.branch.policies.IsActive(2515))
339 shippingResult.hearthExpGained = num2;
341 foreach (
string item in list2)
346 EClass.player.stats.shipNum += num;
347 EClass.player.stats.shipMoney += num3;
349 if (shippingBonus2 > shippingBonus)
351 num4 = shippingBonus2 - shippingBonus;
353 if (num4 >
int.MaxValue)
357 foreach (
Thing item2
in list)
372 if (thing !=
null && thing2 !=
null)
374 text =
"_and".lang(thing.
Name, thing2.
Name);
377 else if (thing !=
null || thing2 !=
null)
379 text = ((thing !=
null) ? thing : thing2).
Name;
384 for (
int i = 0; i < EClass.player.shippingResults.Count - 10; i++)
388 zone.branch.statistics.ship += num3;
389 zone.branch.ModExp(num2);
403 if (container_deliver.
things.Count == 0)
408 while (container_deliver.
things.Count > 0)
413 Debug.Log(
"too many tries");
419 int @
int = thing2.
GetInt(102);
429 for (
int num3 = container_deliver.
things.Count - 1; num3 >= 0; num3--)
483 EClass.player.flags.lutz = num;
485 thing.
SetStr(53,
"lutz_" + num);
497 EClass.player.flags.statueShipped =
true;
498 Add(
"statue_weird", 1);
531 string id2 =
"trash2";
538 id2 = ((
EClass.
rnd(3) == 0) ?
"529" :
"1170");
555 void Add(
string id,
int num)
559 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
Card MakeRefFrom(string id)
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 Date ToDate(int raw)
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)
HashSet< string > completedIDs
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()