1using System.Collections.Generic;
26 EClass.game.sessionMin += a;
27 EClass.player.stats.mins += a;
31 while (base.min >= 60)
38 else if (base.min % 3 == 2)
51 if (detail !=
null && detail.
footmark == footmark)
53 detail.footmark =
null;
64 EClass.player.countNewline = 0;
88 item2.minElapsed += a;
95 virtualDate.IsRealTime =
true;
133 globalGoalAdv.
Start();
151 if (base.month == 10)
155 if (base.month == 11)
163 if (base.year >= 2500)
174 EClass.player.questRerollCost -= 3;
177 EClass.player.questRerollCost = 0;
201 if (!
item.IsPCFaction &&
EClass.
rnd(10) == 0 && (
item.isDead ||
item.currentZone ==
null ||
item.currentZone.id ==
"somewhere"))
237 EClass.player.flags.magicChestSent =
true;
239 thing.
SetStr(53,
"letter_magic_chest");
247 thing2.
SetStr(53,
"letter_crimale");
251 if (base.day == 25 && base.month == 12)
260 if (date.
month == base.month && date.
day == base.day)
262 value2.c_love.gotMusicBox =
true;
267 thing4.
SetStr(53,
"letter_love");
285 if (base.month % 2 == 0)
303 EClass.player.flags.santa = 0;
304 EClass.player.wellWished =
false;
312 if (container_shipping.
things.Count == 0)
320 List<Thing> list =
new List<Thing>();
321 List<string> list2 =
new List<string>();
323 if (zone ==
null || zone.
branch ==
null)
329 shippingResult.uidZone = zone.
uid;
332 EClass.player.stats.shipMoney = 2147483647L;
335 shippingResult.hearthLv = zone.
branch.
lv;
336 shippingResult.hearthExp = zone.
branch.
exp;
338 foreach (
Thing thing3
in container_shipping.
things)
343 long num5 = (long)price * (
long)thing3.
Num;
346 num2 +=
EClass.
rndHalf(thing3.
Num * Mathf.Min(15 + price, 10000) / 100 + 1);
360 if (zone.branch.policies.IsActive(2515))
364 shippingResult.hearthExpGained = num2;
366 foreach (
string item in list2)
371 EClass.player.stats.shipNum += num;
372 EClass.player.stats.shipMoney += num3;
374 if (shippingBonus2 > shippingBonus)
376 num4 = shippingBonus2 - shippingBonus;
378 if (num4 >
int.MaxValue)
382 foreach (
Thing item2
in list)
390 if (num3 >
int.MaxValue)
392 num6 = num3 -
int.MaxValue;
403 if (thing !=
null && thing2 !=
null)
405 text =
"_and".lang(thing.
Name, thing2.
Name);
408 else if (thing !=
null || thing2 !=
null)
410 text = ((thing !=
null) ? thing : thing2).
Name;
415 for (
int i = 0; i < EClass.player.shippingResults.Count - 10; i++)
419 zone.branch.statistics.ship += num3;
420 zone.branch.ModExp(num2);
432 if (num6 >
int.MaxValue)
435 num6 -=
int.MaxValue;
450 if (container_deliver.
things.Count == 0)
455 while (container_deliver.
things.Count > 0)
460 Debug.Log(
"too many tries");
466 int num2 = thing2.
GetInt(102);
476 for (
int num4 = container_deliver.
things.Count - 1; num4 >= 0; num4--)
530 EClass.player.flags.lutz = num;
532 thing.
SetStr(53,
"lutz_" + num);
544 EClass.player.flags.statueShipped =
true;
545 Add(
"statue_weird", 1);
578 string id =
"trash2";
585 id = ((
EClass.
rnd(3) == 0) ?
"529" :
"1170");
602 void Add(
string id2,
int num)
606 void AddThing(
Thing t,
int num)
static bool TryPray(Chara c, bool passive=false)
GlobalCharaList globalCharas
List< Thing > listPackage
void SetInt(string id, int value=0)
Card MakeRefFrom(string id)
void SetStr(string id, string value=null)
int GetInt(string id, int? defaultInt=null)
void PickOrDrop(Point p, string idThing, int idMat=-1, int num=1, bool msg=true)
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
Dictionary< int, Element > dict
void TryPayBill(Thing bill)
void ShipRandomPackages()
List< Element > _fieldEffectsToRemove
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 IsStarted(string id)
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)
override int GetPrice(CurrencyType currency=CurrencyType.Money, bool sell=false, PriceType priceType=PriceType.Default, Chara c=null)
virtual bool UseGlobalGoal
virtual bool CanBeShipped
static void Reserve(string idStep, Action onBeforePlay=null)
static void Remove(string idStep)
void SendPackage(Thing p)
ElementContainerField fieldElements
void RemoveFieldEffect(int idEle)
virtual void OnAdvanceHour()