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"))
229 EClass.player.flags.magicChestSent =
true;
231 thing.
SetStr(53,
"letter_magic_chest");
239 thing2.
SetStr(53,
"letter_crimale");
243 if (base.day == 25 && base.month == 12)
252 if (date.
month == base.month && date.
day == base.day)
254 value2.c_love.gotMusicBox =
true;
259 thing4.
SetStr(53,
"letter_love");
277 if (base.month % 2 == 0)
295 EClass.player.flags.santa = 0;
296 EClass.player.wellWished =
false;
304 if (container_shipping.
things.Count == 0)
312 List<Thing> list =
new List<Thing>();
313 List<string> list2 =
new List<string>();
315 if (zone ==
null || zone.
branch ==
null)
321 shippingResult.uidZone = zone.
uid;
324 EClass.player.stats.shipMoney = 2147483647L;
327 shippingResult.hearthLv = zone.
branch.
lv;
328 shippingResult.hearthExp = zone.
branch.
exp;
330 foreach (
Thing thing3
in container_shipping.
things)
335 long num5 = (long)price * (
long)thing3.
Num;
338 num2 +=
EClass.
rndHalf(thing3.
Num * Mathf.Min(15 + price, 10000) / 100 + 1);
352 if (zone.branch.policies.IsActive(2515))
356 shippingResult.hearthExpGained = num2;
358 foreach (
string item in list2)
363 EClass.player.stats.shipNum += num;
364 EClass.player.stats.shipMoney += num3;
366 if (shippingBonus2 > shippingBonus)
368 num4 = shippingBonus2 - shippingBonus;
370 if (num4 >
int.MaxValue)
374 foreach (
Thing item2
in list)
382 if (num3 >
int.MaxValue)
384 num6 = num3 -
int.MaxValue;
395 if (thing !=
null && thing2 !=
null)
397 text =
"_and".lang(thing.
Name, thing2.
Name);
400 else if (thing !=
null || thing2 !=
null)
402 text = ((thing !=
null) ? thing : thing2).
Name;
407 for (
int i = 0; i < EClass.player.shippingResults.Count - 10; i++)
411 zone.branch.statistics.ship += num3;
412 zone.branch.ModExp(num2);
424 if (num6 >
int.MaxValue)
427 num6 -=
int.MaxValue;
442 if (container_deliver.
things.Count == 0)
447 while (container_deliver.
things.Count > 0)
452 Debug.Log(
"too many tries");
458 int @
int = thing2.
GetInt(102);
468 for (
int num3 = container_deliver.
things.Count - 1; num3 >= 0; num3--)
522 EClass.player.flags.lutz = num;
524 thing.
SetStr(53,
"lutz_" + num);
536 EClass.player.flags.statueShipped =
true;
537 Add(
"statue_weird", 1);
570 string id2 =
"trash2";
577 id2 = ((
EClass.
rnd(3) == 0) ?
"529" :
"1170");
594 void Add(
string id,
int num)
598 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 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()