Elin Decompiled Documentation EA 23.362.1 Stable
Loading...
Searching...
No Matches
GameDate.cs
Go to the documentation of this file.
1using System.Collections.Generic;
2using Newtonsoft.Json;
3using UnityEngine;
4
5public class GameDate : Date
6{
7 [JsonProperty]
8 public bool shaken;
9
10 public const int minPerRound = 5;
11
12 private List<Element> _fieldEffectsToRemove = new List<Element>();
13
14 public void AdvanceSec(int a)
15 {
16 base.sec += a;
17 if (base.sec >= 60)
18 {
19 AdvanceMin(base.sec / 60);
20 base.sec %= 60;
21 }
22 }
23
24 public void AdvanceMin(int a)
25 {
26 EClass.game.sessionMin += a;
27 EClass.player.stats.mins += a;
28 base.min += a;
29 if (base.min >= 60)
30 {
31 while (base.min >= 60)
32 {
33 base.min -= 60;
35 }
37 }
38 else if (base.min % 3 == 2)
39 {
41 }
42 if (EClass._map.footmarks.Count > 0)
43 {
44 for (int num = EClass._map.footmarks.Count - 1; num >= 0; num--)
45 {
46 Footmark footmark = EClass._map.footmarks[num];
47 footmark.remaining--;
48 if (footmark.remaining <= 0)
49 {
50 CellDetail detail = footmark.pos.detail;
51 if (detail != null && detail.footmark == footmark)
52 {
53 detail.footmark = null;
54 footmark.pos.cell.TryDespawnDetail();
55 }
56 EClass._map.footmarks.RemoveAt(num);
57 }
58 }
59 }
62 {
63 Msg.NewLine();
64 EClass.player.countNewline = 0;
65 }
67 if (EClass._zone.fieldElements.dict.Count > 0)
68 {
70 foreach (Element value in EClass._zone.fieldElements.dict.Values)
71 {
72 if (value.vPotential > 0)
73 {
74 value.vPotential--;
75 if (value.vPotential == 0)
76 {
77 _fieldEffectsToRemove.Add(value);
78 }
79 }
80 }
82 {
84 }
85 }
86 foreach (ZoneEvent item2 in EClass._zone.events.list)
87 {
88 item2.minElapsed += a;
89 }
90 }
91
92 public void AdvanceHour()
93 {
94 VirtualDate virtualDate = new VirtualDate();
95 virtualDate.IsRealTime = true;
96 virtualDate.SimulateHour();
97 base.hour++;
98 if (base.hour >= 24)
99 {
100 base.hour = 0;
101 AdvanceDay();
102 }
103 if (!shaken && EClass.rnd(24) == 0 && !EClass._zone.IsRegion)
104 {
105 Msg.Say("earthquake");
107 {
108 Shaker.ShakeCam("earthquake");
109 }
110 shaken = true;
111 }
118 {
120 }
122 {
124 }
125 foreach (Chara value in EClass.game.cards.globalCharas.Values)
126 {
127 if (!value.IsPCParty && value.currentZone != EClass.game.activeZone && value.trait.UseGlobalGoal)
128 {
129 if (value.global.goal == null && !value.IsPCFaction)
130 {
131 GlobalGoalAdv globalGoalAdv = new GlobalGoalAdv();
132 globalGoalAdv.SetOwner(value);
133 globalGoalAdv.Start();
134 }
135 if (value.global.goal != null)
136 {
137 value.global.goal.AdvanceHour();
138 }
139 }
140 }
142 if (base.hour == 5)
143 {
144 ShipGoods();
145 ShipPackages();
146 ShipLetter();
147 if (EClass.rnd(30) == 0 && EClass.game.cards.listPackage.Count <= 2)
148 {
150 }
151 if (base.month == 10)
152 {
153 Tutorial.Reserve("season");
154 }
155 if (base.month == 11)
156 {
157 Tutorial.Reserve("season2");
158 }
159 else
160 {
161 Tutorial.Remove("season2");
162 }
163 if (base.year >= 2500)
164 {
165 Tutorial.Reserve("worldend");
166 }
167 }
168 }
169
170 public void AdvanceDay()
171 {
172 base.day++;
174 EClass.player.questRerollCost -= 3;
176 {
177 EClass.player.questRerollCost = 0;
178 }
179 if (EClass.player.stats.days >= 90)
180 {
181 Tutorial.Reserve("death_penalty");
182 }
183 if (base.day > 30)
184 {
185 base.day = 1;
186 AdvanceMonth();
187 }
189 EClass.Sound.Play("owl");
190 if (!EClass.player.prayed && EClass.pc.Evalue(1655) > 0)
191 {
192 ActPray.TryPray(EClass.pc, passive: true);
193 }
194 Msg.Say("endDay");
195 shaken = false;
199 foreach (Chara item in EClass.game.cards.listAdv)
200 {
201 if (!item.IsPCFaction && EClass.rnd(10) == 0 && (item.isDead || item.currentZone == null || item.currentZone.id == "somewhere"))
202 {
203 item.SetHomeZone(EClass.world.region.ListTowns().RandomItem());
204 item.Revive();
205 item.MoveZone(item.homeZone);
206 }
207 }
208 foreach (Chara value in EClass.game.cards.globalCharas.Values)
209 {
210 value.OnAdvanceDay();
211 }
213 {
215 }
216 if (EClass.player.stats.days >= 7)
217 {
218 Chara chara = EClass.game.cards.globalCharas.Find("fiama");
219 if (chara != null && chara.currentZone == EClass.game.StartZone && EClass.game.quests.GetGlobal("fiama_starter_gift") == null && !EClass.game.quests.IsCompleted("fiama_starter_gift"))
220 {
221 EClass.game.quests.Add("fiama_starter_gift", "fiama");
222 }
223 }
224 if (EClass.game.quests.completedIDs.Contains("demitas_spellwriter") && !EClass.game.quests.IsAdded<QuestNegotiationDarkness>())
225 {
226 EClass.game.quests.Add("negotiation_darkness", "loytel");
227 }
229 {
230 EClass.game.quests.Add("stone_dream", "loytel");
231 }
232 if (EClass.game.quests.IsCompleted("stone_dream") && !EClass.game.quests.IsAdded("nevernight"))
233 {
234 EClass.game.quests.Add("nevernight", "sorin");
235 }
236 if (EClass.game.quests.IsCompleted("exploration"))
237 {
240 {
241 EClass.player.flags.magicChestSent = true;
242 Thing thing = ThingGen.Create("parchment");
243 thing.SetStr(53, "letter_magic_chest");
244 Thing p = ThingGen.CreateParcel(null, ThingGen.Create("container_magic"), thing);
246 }
247 }
248 if (base.day == 1 && base.month == 11 && (EClass.game.quests.IsStarted<QuestDebt>() || EClass.debug.enable))
249 {
250 Thing thing2 = ThingGen.Create("parchment");
251 thing2.SetStr(53, "letter_crimale");
252 Thing p2 = ThingGen.CreateParcel(null, ThingGen.Create("crimale2"), thing2);
254 }
255 if (base.day == 25 && base.month == 12)
256 {
258 }
259 foreach (Chara value2 in EClass.game.cards.globalCharas.Values)
260 {
261 if (value2.IsPCFaction && value2.IsMarried && !value2.c_love.gotMusicBox)
262 {
263 Date date = Date.ToDate(value2.c_love.dateMarriage);
264 if (date.month == base.month && date.day == base.day)
265 {
266 value2.c_love.gotMusicBox = true;
267 Thing thing3 = ThingGen.Create("musicbox_memory2");
268 thing3.MakeRefFrom(value2, EClass.pc, simple: true);
269 Thing thing4 = ThingGen.Create("parchment");
270 thing4.MakeRefFrom(value2, null, simple: true);
271 thing4.SetStr(53, "letter_love");
272 Thing p3 = ThingGen.CreateParcel(null, thing3, ThingGen.Create("1165"), thing4);
274 }
275 }
276 }
277 }
278
279 public void AdvanceMonth()
280 {
281 base.month++;
282 if (base.month > 12)
283 {
284 base.month = 1;
285 AdvanceYear();
286 }
289 if (base.month % 2 == 0)
290 {
292 }
294 foreach (Thing thing in EClass._map.things)
295 {
296 if (thing.renderer.hasActor)
297 {
298 thing.renderer.RefreshSprite();
299 }
300 }
302 }
303
304 public void AdvanceYear()
305 {
306 base.year++;
307 EClass.player.flags.santa = 0;
308 EClass.player.wellWished = false;
310 EClass.world.SendPackage(ThingGen.Create("gift_newyear"));
311 }
312
313 public void ShipGoods()
314 {
315 Thing container_shipping = EClass.game.cards.container_shipping;
316 if (container_shipping.things.Count == 0)
317 {
318 return;
319 }
320 int num = 0;
321 int num2 = 0;
322 long num3 = 0L;
323 long num4 = 0L;
324 List<Thing> list = new List<Thing>();
325 List<string> list2 = new List<string>();
327 if (zone == null || zone.branch == null)
328 {
329 zone = EClass.pc.homeZone;
330 }
331 ShippingResult shippingResult = new ShippingResult();
332 shippingResult.rawDate = EClass.world.date.GetRaw();
333 shippingResult.uidZone = zone.uid;
335 {
336 EClass.player.stats.shipMoney = 2147483647L;
337 }
338 shippingResult.total = EClass.player.stats.shipMoney;
339 shippingResult.hearthLv = zone.branch.lv;
340 shippingResult.hearthExp = zone.branch.exp;
341 shippingResult.debt = EClass.player.debt;
342 foreach (Thing thing3 in container_shipping.things)
343 {
344 if (thing3.trait.CanBeShipped)
345 {
346 int price = thing3.GetPrice(CurrencyType.Money, sell: true, PriceType.Shipping);
347 long num5 = (long)price * (long)thing3.Num;
348 num3 += num5;
349 num += thing3.Num;
350 num2 += EClass.rndHalf(thing3.Num * Mathf.Min(15 + price, 10000) / 100 + 1);
351 list.Add(thing3);
352 shippingResult.items.Add(new ShippingResult.Item
353 {
354 text = thing3.Name,
355 income = num5
356 });
357 }
358 }
359 if (list.Count == 0)
360 {
361 return;
362 }
363 num2 = num2 / 2 + 1;
364 if (zone.branch.policies.IsActive(2515))
365 {
366 num2 = 0;
367 }
368 shippingResult.hearthExpGained = num2;
369 EClass.pc.homeBranch.log.Add(Msg.Say("shipped_collect"));
370 foreach (string item in list2)
371 {
373 }
375 EClass.player.stats.shipNum += num;
376 EClass.player.stats.shipMoney += num3;
378 if (shippingBonus2 > shippingBonus)
379 {
380 num4 = shippingBonus2 - shippingBonus;
381 }
382 if (num4 > int.MaxValue)
383 {
384 num4 = 2147483647L;
385 }
386 foreach (Thing item2 in list)
387 {
388 item2.Destroy();
389 }
390 Thing thing = null;
391 Thing thing2 = null;
392 string text = "";
393 long num6 = 0L;
394 if (num3 > int.MaxValue)
395 {
396 num6 = num3 - int.MaxValue;
397 num3 = 2147483647L;
398 }
399 if (num3 > 0)
400 {
401 thing = ThingGen.Create("money").SetNum((int)num3);
402 }
403 if (num4 > 0)
404 {
405 thing2 = ThingGen.Create("money2").SetNum((int)num4);
406 }
407 if (thing != null && thing2 != null)
408 {
409 text = "_and".lang(thing.Name, thing2.Name);
410 SE.Pay();
411 }
412 else if (thing != null || thing2 != null)
413 {
414 text = ((thing != null) ? thing : thing2).Name;
415 }
416 EClass.pc.homeBranch.log.Add(Msg.Say((text == "") ? "shipped_none" : "shipped", num.ToString() ?? "", text), FontColor.Good);
417 EClass.player.shippingResults.Add(shippingResult);
418 EClass.player.showShippingResult = EClass.core.config.game.showShippingResult;
419 for (int i = 0; i < EClass.player.shippingResults.Count - 10; i++)
420 {
421 EClass.player.shippingResults.RemoveAt(0);
422 }
423 zone.branch.statistics.ship += num3;
424 zone.branch.ModExp(num2);
425 if (thing != null)
426 {
427 EClass.pc.Pick(thing);
428 }
429 if (thing2 != null)
430 {
431 EClass.pc.Pick(thing2);
432 }
433 while (num6 > 0)
434 {
435 int num7 = 0;
436 if (num6 > int.MaxValue)
437 {
438 num7 = int.MaxValue;
439 num6 -= int.MaxValue;
440 }
441 else
442 {
443 num7 = (int)num6;
444 num6 = 0L;
445 }
446 Thing t = ThingGen.Create("money").SetNum(num7);
448 }
449 }
450
451 public void ShipPackages()
452 {
453 Thing container_deliver = EClass.game.cards.container_deliver;
454 if (container_deliver.things.Count == 0)
455 {
456 return;
457 }
458 int num = 0;
459 while (container_deliver.things.Count > 0)
460 {
461 num++;
462 if (num > 100)
463 {
464 Debug.Log("too many tries");
465 break;
466 }
467 int uidZone = 0;
468 foreach (Thing thing2 in container_deliver.things)
469 {
470 int num2 = thing2.GetInt(102);
471 if (num2 != 0)
472 {
473 uidZone = num2;
474 thing2.SetInt(102);
475 break;
476 }
477 }
478 int num3 = 20;
479 Thing thing = ThingGen.CreateCardboardBox(uidZone);
480 for (int num4 = container_deliver.things.Count - 1; num4 >= 0; num4--)
481 {
482 Thing c = container_deliver.things[num4];
483 thing.AddCard(c);
484 num3 += 5;
485 if (thing.things.IsFull())
486 {
487 break;
488 }
489 }
490 EClass.world.SendPackage(thing);
491 Thing bill = ThingGen.CreateBill(num3, tax: false);
493 }
494 }
495
496 public void ShipLetter()
497 {
498 int num = -1;
499 int lutz = EClass.player.flags.lutz;
500 if (EClass.player.stats.days >= 2 && lutz <= 0)
501 {
502 num = 1;
503 }
504 else if (EClass.player.stats.days >= 5 && lutz <= 1)
505 {
506 num = 2;
507 }
508 else if (EClass.player.stats.days >= 8 && lutz <= 2)
509 {
510 num = 3;
511 }
512 else if (EClass.player.stats.days >= 11 && lutz <= 3)
513 {
514 num = 4;
515 }
516 else if (EClass.player.stats.days >= 15 && lutz <= 4)
517 {
518 num = 5;
519 }
520 else if (EClass.player.stats.days >= 17 && lutz <= 5)
521 {
522 num = 6;
523 }
524 else if (EClass.player.stats.days >= 30 && lutz <= 6)
525 {
526 num = 7;
527 }
528 else if (EClass.player.stats.days >= 50 && lutz <= 7)
529 {
530 num = 8;
531 }
532 if (num != -1)
533 {
534 EClass.player.flags.lutz = num;
535 Thing thing = ThingGen.Create("letter");
536 thing.SetStr(53, "lutz_" + num);
537 EClass.world.SendPackage(thing);
538 }
539 }
540
541 public void ShipRandomPackages()
542 {
544 TraitContainer traitContainer = box.trait as TraitContainer;
545 bool flag = EClass.pc.homeBranch.policies.IsActive(2708);
546 if (EClass.rnd(EClass.debug.enable ? 1 : 100) == 0 && !EClass.player.flags.statueShipped)
547 {
548 EClass.player.flags.statueShipped = true;
549 Add("statue_weird", 1);
550 flag = false;
551 }
552 else if (EClass.rnd(10) == 0)
553 {
554 Add("234", 1);
555 }
556 else if (EClass.rnd(5) == 0)
557 {
558 AddThing(ThingGen.CreateFromCategory("junk"), 1);
559 }
560 else if (EClass.rnd(10) == 0)
561 {
562 AddThing(ThingGen.CreateFromTag("garbage"), 1);
563 }
564 else if (EClass.rnd(8) == 0)
565 {
566 CardRow cardRow = SpawnList.Get("chara").Select(EClass.pc.LV + 10);
567 traitContainer.PutChara(cardRow.id);
568 flag = false;
569 }
570 else if (EClass.rnd(8) == 0)
571 {
572 Add("plat", 1 + EClass.rnd(4));
573 flag = false;
574 }
575 else if (EClass.rnd(8) == 0)
576 {
577 Add("money2", 1 + EClass.rnd(4));
578 flag = false;
579 }
580 else
581 {
582 string id = "trash2";
583 if (EClass.rnd(3) == 0)
584 {
585 id = "trash1";
586 }
587 if (EClass.rnd(3) == 0)
588 {
589 id = ((EClass.rnd(3) == 0) ? "529" : "1170");
590 }
591 if (EClass.rnd(5) == 0)
592 {
593 id = "_poop";
594 }
595 if (EClass.rnd(100) == 0)
596 {
597 id = "goodness";
598 flag = false;
599 }
600 Add(id, 1);
601 }
602 if (!flag)
603 {
605 }
606 void Add(string id2, int num)
607 {
608 AddThing(ThingGen.Create(id2), num);
609 }
610 void AddThing(Thing t, int num)
611 {
612 t.SetNum(num);
613 box.AddCard(t);
614 }
615 }
616}
CurrencyType
Definition: CurrencyType.cs:2
FontColor
Definition: FontColor.cs:2
PriceType
Definition: PriceType.cs:2
static bool TryPray(Chara c, bool passive=false)
Definition: ActPray.cs:12
Chara Find(string id)
Definition: CardManager.cs:20
Thing container_shipping
Definition: CardManager.cs:52
List< Chara > listAdv
Definition: CardManager.cs:64
GlobalCharaList globalCharas
Definition: CardManager.cs:46
List< Thing > listPackage
Definition: CardManager.cs:61
Thing container_deliver
Definition: CardManager.cs:55
void RefreshSprite()
string id
Definition: CardRow.cs:7
void SetInt(string id, int value=0)
Definition: Card.cs:2598
Card MakeRefFrom(string id)
Definition: Card.cs:6043
Card AddCard(Card c)
Definition: Card.cs:3278
string Name
Definition: Card.cs:2203
LoveData c_love
Definition: Card.cs:1897
Thing SetNum(int a)
Definition: Card.cs:3688
void RecalculateFOV()
Definition: Card.cs:6883
Point pos
Definition: Card.cs:60
Trait trait
Definition: Card.cs:54
void Destroy()
Definition: Card.cs:5330
void SetStr(string id, string value=null)
Definition: Card.cs:2612
ThingContainer things
Definition: Card.cs:39
int Evalue(int ele)
Definition: Card.cs:2716
int Num
Definition: Card.cs:161
CardRenderer renderer
Definition: Card.cs:64
int GetInt(string id, int? defaultInt=null)
Definition: Card.cs:2579
int LV
Definition: Card.cs:389
Footmark footmark
Definition: CellDetail.cs:17
void TryDespawnDetail()
Definition: Cell.cs:1614
Definition: Chara.cs:10
new TraitChara trait
Definition: Chara.cs:511
Faction faction
Definition: Chara.cs:433
override bool IsPCParty
Definition: Chara.cs:635
void OnAdvanceDay()
Definition: Chara.cs:10902
void PickOrDrop(Point p, string idThing, int idMat=-1, int num=1, bool msg=true)
Definition: Chara.cs:4632
override bool IsPCFaction
Definition: Chara.cs:691
Zone currentZone
Definition: Chara.cs:261
GlobalData global
Definition: Chara.cs:78
Zone homeZone
Definition: Chara.cs:273
bool IsMarried
Definition: Chara.cs:617
FactionBranch homeBranch
Definition: Chara.cs:1122
Thing Pick(Thing t, bool msg=true, bool tryStack=true)
Definition: Chara.cs:4652
new GameConfig game
Definition: CoreConfig.cs:629
GraphicSetting graphic
Definition: CoreConfig.cs:627
bool enable
Definition: CoreDebug.cs:302
CoreConfig config
Definition: Core.cs:70
Definition: Date.cs:4
int GetRaw(int offsetHours=0)
Definition: Date.cs:328
int month
Definition: Date.cs:50
static Date ToDate(int raw)
Definition: Date.cs:399
int day
Definition: Date.cs:62
Definition: EClass.cs:6
static Game game
Definition: EClass.cs:9
static Scene scene
Definition: EClass.cs:31
static Core core
Definition: EClass.cs:7
static Zone _zone
Definition: EClass.cs:21
static World world
Definition: EClass.cs:41
static Map _map
Definition: EClass.cs:19
static int rnd(long a)
Definition: EClass.cs:59
static BaseGameScreen screen
Definition: EClass.cs:33
static int rndHalf(int a)
Definition: EClass.cs:97
static Player player
Definition: EClass.cs:13
static Chara pc
Definition: EClass.cs:15
static CoreDebug debug
Definition: EClass.cs:49
static SoundManager Sound
Definition: EClass.cs:47
Dictionary< int, Element > dict
int vPotential
Definition: ELEMENT.cs:265
PolicyManager policies
void TryPayBill(Thing bill)
Definition: FACTION.cs:424
void OnAdvanceDay()
Definition: FACTION.cs:379
void OnAdvanceMonth()
Definition: FACTION.cs:387
int remaining
Definition: Footmark.cs:5
Point pos
Definition: Footmark.cs:3
void AdvanceMin(int a)
Definition: GameDate.cs:24
void ShipGoods()
Definition: GameDate.cs:313
void ShipPackages()
Definition: GameDate.cs:451
void AdvanceDay()
Definition: GameDate.cs:170
void ShipRandomPackages()
Definition: GameDate.cs:541
List< Element > _fieldEffectsToRemove
Definition: GameDate.cs:12
void ShipLetter()
Definition: GameDate.cs:496
const int minPerRound
Definition: GameDate.cs:10
void AdvanceSec(int a)
Definition: GameDate.cs:14
bool shaken
Definition: GameDate.cs:8
void AdvanceMonth()
Definition: GameDate.cs:279
void AdvanceHour()
Definition: GameDate.cs:92
void AdvanceYear()
Definition: GameDate.cs:304
SurvivalManager survival
Definition: Game.cs:228
SpatialManager spatials
Definition: Game.cs:153
CardManager cards
Definition: Game.cs:156
Zone activeZone
Definition: Game.cs:252
bool IsSurvival
Definition: Game.cs:276
RelationManager relations
Definition: Game.cs:186
QuestManager quests
Definition: Game.cs:183
Zone StartZone
Definition: Game.cs:278
GlobalGoal goal
Definition: GlobalData.cs:9
void Start()
Definition: GlobalGoal.cs:16
void SetOwner(Chara c)
Definition: GlobalGoal.cs:10
void AdvanceHour()
Definition: GlobalGoal.cs:25
bool gotMusicBox
Definition: LoveData.cs:21
int dateMarriage
Definition: LoveData.cs:6
List< Thing > things
Definition: Map.cs:55
List< Footmark > footmarks
Definition: Map.cs:105
void RefreshAllTiles()
Definition: Map.cs:2272
void Add(Data data)
Definition: MsgLog.cs:53
Definition: Msg.cs:5
static void NewLine()
Definition: Msg.cs:331
static string Say(string idLang, string ref1, string ref2=null, string ref3=null, string ref4=null)
Definition: Msg.cs:58
void OnAdvanceYear()
void OnAdvanceMonth()
void OnChangeMin()
Definition: PCOrbit.cs:19
int lutz
Definition: Player.cs:664
bool magicChestSent
Definition: Player.cs:544
bool statueShipped
Definition: Player.cs:460
int daysAfterQuestExploration
Definition: Player.cs:676
long shipMoney
Definition: Player.cs:141
int GetShippingBonus(long _a)
Definition: Player.cs:248
int days
Definition: Player.cs:75
int months
Definition: Player.cs:78
int debt
Definition: Player.cs:1023
Flags flags
Definition: Player.cs:1173
void OnAdvanceDay()
Definition: Player.cs:2496
Stats stats
Definition: Player.cs:1095
int countNewline
Definition: Player.cs:1269
int holyWell
Definition: Player.cs:993
void OnAdvanceHour()
Definition: Player.cs:2476
bool prayed
Definition: Player.cs:1065
List< ShippingResult > shippingResults
Definition: Player.cs:1203
int questRerollCost
Definition: Player.cs:1038
int uidLastShippedZone
Definition: Player.cs:978
NumLogManager nums
Definition: Player.cs:1098
CellDetail detail
Definition: Point.cs:67
Cell cell
Definition: Point.cs:47
bool IsActive(int id, int days=-1)
void OnAdvanceHour()
HashSet< string > completedIDs
Definition: QuestManager.cs:17
bool IsAdded(string id)
Quest Add(string id, string idGlobalChara=null)
Definition: QuestManager.cs:29
bool IsStarted(string id)
bool IsCompleted(string id)
Quest GetGlobal(string id)
List< Zone > ListTowns()
Definition: Region.cs:273
void CheckRandomSites()
Definition: Region.cs:76
void UpdateRelations()
void OnChangeHour()
Definition: Scene.cs:782
Definition: Shaker.cs:5
static void ShakeCam(string id="default", float magnitude=1f)
Definition: Shaker.cs:25
Zone Find(string id)
int uid
Definition: Spatial.cs:70
virtual bool IsRegion
Definition: Spatial.cs:515
Faction mainFaction
Definition: Spatial.cs:442
static SpawnList Get(string id, string parent=null, CardFilter filter=null)
Definition: SpawnList.cs:18
CardRow Select(int lv=-1, int levelRange=-1)
Definition: SpawnList.cs:139
bool IsFull(int y=0)
static Thing CreateParcel(string idLang=null, params Thing[] things)
Definition: ThingGen.cs:42
static Thing CreateFromTag(string idTag, int lv=-1)
Definition: ThingGen.cs:80
static Thing CreateFromCategory(string idCat, int lv=-1)
Definition: ThingGen.cs:75
static Thing CreateBill(int pay, bool tax)
Definition: ThingGen.cs:85
static Thing CreateCardboardBox(int uidZone=-1)
Definition: ThingGen.cs:252
static Thing Create(string id, int idMat=-1, int lv=-1)
Definition: ThingGen.cs:53
Definition: Thing.cs:8
override int GetPrice(CurrencyType currency=CurrencyType.Money, bool sell=false, PriceType priceType=PriceType.Default, Chara c=null)
Definition: Thing.cs:833
void PutChara(string id)
virtual bool UseGlobalGoal
Definition: TraitChara.cs:96
virtual bool CanBeShipped
Definition: Trait.cs:330
static void Reserve(string idStep, Action onBeforePlay=null)
Definition: Tutorial.cs:55
static void Remove(string idStep)
Definition: Tutorial.cs:49
void SimulateHour()
Definition: VirtualDate.cs:66
void OnChangeHour()
Definition: Weather.cs:197
static void Add(BaseSticky sticky, bool animate=true)
Definition: WidgetSticky.cs:52
void CreateDayData()
Definition: World.cs:43
Region region
Definition: World.cs:23
GameDate date
Definition: World.cs:6
void SendPackage(Thing p)
Definition: World.cs:68
Weather weather
Definition: World.cs:12
List< ZoneEvent > list
Definition: Zone.cs:12
ZoneEventManager events
Definition: Zone.cs:43
FactionBranch branch
Definition: Zone.cs:34
ElementContainerField fieldElements
Definition: Zone.cs:49
void RemoveFieldEffect(int idEle)
Definition: Zone.cs:3190
virtual void OnAdvanceHour()
Definition: Zone.cs:1304
Region Region
Definition: Zone.cs:170