Elin Decompiled Documentation EA 23.229 Stable 1st Anniversary Patch 2
Loading...
Searching...
No Matches
RecipeCard.cs
Go to the documentation of this file.
1using System.Collections.Generic;
2using Newtonsoft.Json;
3using UnityEngine;
4
5public class RecipeCard : Recipe
6{
8
9 [JsonProperty]
10 public bool freePos;
11
12 [JsonProperty]
13 public float fx;
14
15 [JsonProperty]
16 public float fy;
17
18 public Card _mold;
19
20 public CardRow sourceCard => _sourceCard ?? (_sourceCard = EClass.sources.cards.map.TryGetValue(base.source.row.idString));
21
22 public override RenderRow renderRow => sourceCard;
23
24 public override TileType tileType => Mold.trait.tileType;
25
26 public string idCard => sourceCard.id;
27
28 public override bool CanRotate => tileType.CanRotate(buildMode: true);
29
30 public override bool IsThing => true;
31
32 public override Card Mold => _mold ?? (_mold = CreateMold());
33
34 public bool isDish => sourceCard._origin == "dish";
35
36 public override IRenderer GetRenderer()
37 {
38 return Mold.renderer;
39 }
40
41 public override string GetDetail()
42 {
43 return sourceCard.GetDetail();
44 }
45
46 public override string GetIdThing()
47 {
48 return id;
49 }
50
51 public override void OnRenderMarker(Point point, bool active, HitResult result, bool main, int dir, int bridgeHeight)
52 {
53 Mold.ignoreStackHeight = Input.GetKey(KeyCode.LeftControl);
54 Mold.SetFreePos(point);
56 fx = Mold.fx;
57 fy = Mold.fy;
58 Mold.RenderMarker(point, active, result, main, dir);
59 if (!point.cell.skipRender)
60 {
61 Mold.trait.OnRenderTile(point, result, dir);
62 }
63 }
64
65 public override void BuildIngredientList()
66 {
67 if (ingredients.Count != 0)
68 {
69 return;
70 }
71 base.BuildIngredientList();
73 {
74 return;
75 }
77 {
78 ingredients[0].ingType = IngType.CreativeFood;
79 }
80 if (EClass.pc.Evalue(1650) < 2)
81 {
82 return;
83 }
84 bool flag = ingredients.Count < 3;
85 foreach (Ingredient ingredient in ingredients)
86 {
87 if (ingredient.id == "seasoning")
88 {
89 flag = false;
90 }
91 }
92 if (flag)
93 {
95 {
96 id = "seasoning",
97 useCat = true,
98 optional = true,
99 req = 1
100 });
101 }
102 }
103
104 public override void OnChangeIngredient()
105 {
106 if (!UseStock)
107 {
109 if (base.source.colorIng != 0)
110 {
112 }
113 }
114 }
115
116 public override void OnSelected()
117 {
118 CreateMold();
119 }
120
122 {
123 if (_mold != null)
124 {
125 _mold.Destroy();
126 }
127 if (UseStock)
128 {
129 ingredients[0].RefreshThing();
130 }
131 if (UseStock && ingredients[0].thing != null)
132 {
133 _mold = ingredients[0].thing.Duplicate(1);
134 }
135 else
136 {
138 {
140 }
141 else
142 {
144 }
146 }
147 _mold.dir = _dir;
148 _mold.altitude = ActionMode.Build.altitude;
149 _mold.idSkin = idSkin;
150 return _mold;
151 }
152
153 public override Thing Craft(BlessedState blessed, bool sound = false, List<Thing> ings = null, TraitCrafter crafter = null, bool model = false)
154 {
155 string key = idCard;
156 int num = GetMainMaterial().id;
157 Element reqSkill = base.source.GetReqSkill();
158 int num2 = reqSkill.Value - EClass.pc.Evalue(reqSkill.id);
159 int num3 = GetQualityBonus();
160 int num4 = renderRow.LV + num3;
161 bool flag = num3 < 0;
162 CardRow cardRow = EClass.sources.cards.map.TryGetValue(key);
163 bool flag2 = false;
164 if (ings != null)
165 {
166 foreach (Thing ing in ings)
167 {
168 if (ing != null && ing.IsDecayed)
169 {
170 flag2 = true;
171 }
172 }
173 }
174 if (EClass.debug.godCraft || model)
175 {
176 flag = false;
177 }
178 else if (cardRow != null && cardRow.tag.Contains("no_fail"))
179 {
180 flag = false;
181 }
183 {
184 if (num2 > 0 && EClass.rnd(num2 * 10) > EClass.rnd(100))
185 {
186 key = GetIdFailDish();
187 flag = true;
188 }
189 else
190 {
191 flag = false;
192 }
193 }
194 if (!model)
195 {
196 switch (id)
197 {
198 case "weapon_stone":
199 case "weapon_wood":
200 Rand.SetSeed();
201 key = new string[6] { "dagger", "sword", "axe_hand", "blunt_club", "spear", "staff_long" }.RandomItem();
202 break;
203 case "weapon_anvil":
204 Rand.SetSeed();
205 key = new string[6] { "dagger", "sword", "axe_hand", "blunt_club", "spear", "staff_long" }.RandomItem();
206 num = ings[1].material.id;
207 break;
208 }
209 }
210 bool flag3 = EClass.sources.cards.map[key].tag.Contains("static_craft");
211 if (!isDish && num4 < 1)
212 {
213 num4 = 1;
214 }
215 if (EClass.sources.cards.map[key].tag.Contains("noQuality"))
216 {
217 num4 = -1;
218 }
219 if (EClass.sources.cards.map[key].tag.Contains("noMaterialChange"))
220 {
221 num = -1;
222 }
223 if (flag3)
224 {
225 num3 = 0;
226 flag = false;
227 }
229 {
230 qualityBonus = num3,
231 rarity = (flag ? Rarity.Crude : Rarity.Normal),
232 isCraft = true
233 });
234 Thing thing = (flag3 ? ThingGen.Create(key) : ThingGen.Create(key, num, num4));
235 thing.idSkin = idSkin;
236 if (thing.IsEquipment && ings != null)
237 {
238 foreach (Thing ing2 in ings)
239 {
240 if (ing2.trait is TraitRune)
241 {
242 if (thing.CanAddRune(ing2.trait as TraitRune))
243 {
244 thing.AddRune(ing2);
245 }
246 if (!thing.HasElement(484))
247 {
248 thing.elements.SetBase(484, 1);
249 }
250 }
251 }
252 }
253 thing.Identify(show: false);
254 thing.isCrafted = true;
255 if (!flag3)
256 {
257 if (base.source.colorIng != 0)
258 {
259 thing.Dye(GetColorMaterial());
260 }
261 if (thing.IsContainer)
262 {
263 thing.RemoveThings();
264 thing.c_lockLv = 0;
265 }
266 }
267 thing.SetBlessedState(blessed);
268 if (!flag3)
269 {
270 if (isDish)
271 {
272 if (flag)
273 {
274 thing.ChangeMaterial("meat");
275 }
276 else
277 {
278 MakeDish(thing);
279 }
280 }
281 else
282 {
283 MixIngredients(thing);
284 }
285 if (isDish && flag2)
286 {
287 thing.decay = thing.MaxDecay + 1;
288 }
289 }
290 thing.trait.OnCrafted(this, ings);
291 if (thing.IsAmmo && num2 < 0)
292 {
293 thing.SetEncLv(-num2 / 10);
294 }
295 if (model)
296 {
297 thing.SetNum(1);
298 return thing;
299 }
300 int num5 = thing.trait.CraftNum;
301 if (crafter != null && EClass.pc.Evalue(1417) > 0 && crafter.WitchDoubleCraftChance(thing) > EClass.rnd(100))
302 {
303 num5 *= 2;
304 }
305 if (thing.trait is TraitFoodFishSlice && thing.c_idRefCard == thing.id && (thing.SelfWeight == 0 || thing.Evalue(10) == 0))
306 {
307 Msg.Say("noMoreSlice");
308 num5 = 1;
309 }
310 if (num5 > 1 && (thing.HasElement(703) || thing.HasElement(704) || thing.HasElement(1229)))
311 {
312 num5 = 1;
313 }
314 if (num5 > 1)
315 {
316 thing.SetNum(num5);
317 }
318 if (EClass.pc.held == null || !thing.TryStackTo(EClass.pc.held.Thing))
319 {
320 EClass.pc.HoldCard(thing);
321 }
322 if (sound)
323 {
324 thing.PlaySoundDrop(spatial: false);
325 }
326 Msg.Say("crafted", thing);
327 if (thing.Num > EClass.rnd(1000) || EClass.debug.enable)
328 {
330 }
331 if (isDish)
332 {
334 {
336 EClass.player.flags.canComupWithFoodRecipe = false;
337 }
338 if (flag && crafter != null && crafter.CanTriggerFire && EClass.rnd(4) == 0)
339 {
340 Point point = (crafter.ExistsOnMap ? crafter.owner.pos : EClass.pc.pos);
341 if (!point.cell.HasFire)
342 {
343 EClass._map.ModFire(point.x, point.z, 10);
344 }
345 }
346 }
347 return thing;
348 }
349
350 public void MakeDish(Thing t)
351 {
353 List<Thing> list = new List<Thing>();
354 foreach (Ingredient ingredient in ingredients)
355 {
356 list.Add(ingredient.thing);
357 }
359 Rand.SetSeed();
360 if (EClass.pc.HasElement(1658))
361 {
362 t.elements.SetBase(757, 1);
363 t.c_dateCooked = EClass.world.date.GetRaw() + (EClass.pc.Evalue(1658) - 1) * 48 * 60;
364 }
365 }
366
367 public void MixIngredients(Thing t)
368 {
370 List<Thing> list = new List<Thing>();
371 foreach (Ingredient ingredient in ingredients)
372 {
373 list.Add(ingredient.thing);
374 }
376 Rand.SetSeed();
377 }
378
379 public string GetIdFailDish()
380 {
381 return sourceCard.category switch
382 {
383 "meal_meat" => "fail_meat",
384 "meal_fish" => "fail_fish",
385 "meal_vegi" => "fail_vegi",
386 "meal_fruit" => "fail_fruit",
387 "meal_cake" => "fail_dough_cake",
388 "meal_bread" => "fail_dough_bread",
389 "meal_noodle" => "fail_noodle",
390 "meal_egg" => "fail_egg",
391 "meal_rice" => "fail_rice",
392 "meal_soup" => "fail_drink",
393 _ => "fail_dish",
394 };
395 }
396
397 public override void Build(TaskBuild task)
398 {
399 Card card = null;
400 if (task.target != null)
401 {
402 card = task.target;
403 }
404 else if (IngAsProduct)
405 {
406 if (task.resources.Count == 0)
407 {
408 Thing thing = ingredients[0].RefreshThing();
409 if (thing == null)
410 {
411 SE.Beep();
412 return;
413 }
414 Thing item = thing.Split(1);
415 task.resources.Add(item);
416 if (ingredients[0].thing.isDestroyed || ingredients[0].thing.ExistsOnMap)
417 {
418 ingredients[0].thing = null;
419 }
420 }
421 card = task.resources[0];
422 }
423 else if (sourceCard.isChara)
424 {
426 }
427 else
428 {
430 if (!card.IsUnique)
431 {
432 card.ChangeMaterial(GetMainMaterial());
433 }
434 if (base.source.colorIng != 0)
435 {
436 card.Dye(GetColorMaterial());
437 }
438 if (card.IsContainer)
439 {
440 card.RemoveThings();
441 }
442 foreach (Ingredient ingredient in ingredients)
443 {
444 if (ingredient.thing != null && ingredient.thing.HasElement(759))
445 {
446 card.elements.SetBase(759, ingredient.thing.Evalue(759));
447 }
448 }
449 }
450 Build(task.owner, card, task.pos, ingredients[0].mat, task.dir, task.altitude, task.bridgeHeight);
451 card.renderer.PlayAnime(AnimeID.Place);
452 }
453
454 public override void Build(Chara chara, Card t, Point pos, int mat, int dir, int altitude, int bridgeHeight)
455 {
456 if (mat == -1)
457 {
458 mat = 2;
459 }
460 EClass.pc.PlaySound(EClass.sources.materials.rows[mat].GetSoundImpact());
461 t.SetDir(dir);
462 t.idSkin = idSkin;
463 EClass._zone.AddCard(t, pos);
464 if (t.trait is TraitHouseBoard && ActionMode.Build.houseBoard != null)
465 {
466 (t.trait as TraitHouseBoard).data = IO.DeepCopy(ActionMode.Build.houseBoard.data);
467 }
468 t.SetPlaceState(PlaceState.installed, byPlayer: true);
469 t.altitude = altitude;
470 t.isPlayerCreation = true;
471 if (EClass._zone.idCurrentSubset != null)
472 {
473 t.isSubsetCard = true;
474 }
475 t.ignoreStackHeight = Input.GetKey(KeyCode.LeftControl);
476 if (ActionMode.Build.IsActive && t.trait.MaskOnBuild && EClass.debug.enable)
477 {
478 t.isMasked = true;
479 }
481 {
482 t.isRoofItem = true;
483 t.SetPlaceState(PlaceState.roaming);
484 }
485 try
486 {
487 t.ForeachPoint(delegate(Point p, bool main)
488 {
489 CheckBlock(p);
490 });
491 }
492 catch
493 {
494 Debug.LogWarning("kokodayo");
495 }
496 t.freePos = freePos;
497 if (freePos)
498 {
499 t.fx = fx;
500 t.fy = fy;
501 }
503 void CheckBlock(Point _pos)
504 {
505 if (_pos.cell.IsBlocked && _pos.HasChara)
506 {
507 foreach (Chara item in _pos.ListCharas().Copy())
508 {
509 chara.Kick(item, ignoreSelf: false, karmaLoss: false);
510 }
511 }
512 }
513 }
514
515 public override void OnChangeAltitude(int a)
516 {
517 Mold.altitude = a;
518 }
519
520 public override void Rotate()
521 {
522 Mold.Rotate();
523 _dir = Mold.dir;
524 if ((bool)BuildMenu.Instance)
525 {
527 }
528 }
529
530 public override void SetDir(int d)
531 {
532 Mold.dir = d;
533 base.SetDir(d);
534 }
535
536 public override void WriteNote(UINote n)
537 {
538 n.Clear();
539 if (!Mold.isChara)
540 {
542 }
543 n.Build();
544 }
545
546 public override Recipe Duplicate()
547 {
548 RecipeCard recipeCard = IO.DeepCopy(this);
549 recipeCard._mold = _mold;
550 return recipeCard;
551 }
552}
AnimeID
Definition: AnimeID.cs:2
BlessedState
Definition: BlessedState.cs:2
HitResult
Definition: HitResult.cs:2
PlaceState
Definition: PlaceState.cs:2
Rarity
Definition: Rarity.cs:2
new Chara owner
Definition: AIAct.cs:14
int altitude
Definition: AM_Build.cs:8
TraitHouseBoard houseBoard
Definition: AM_Build.cs:16
void Add(Act a, string s="")
Definition: ActPlan.cs:11
virtual bool IsRoofEditMode(Card c=null)
Definition: ActionMode.cs:311
static AM_Build Build
Definition: ActionMode.cs:49
virtual bool IsBuildMode
Definition: ActionMode.cs:181
static BuildMenu Instance
Definition: BuildMenu.cs:77
UIRecipeInfo info1
Definition: BuildMenu.cs:27
static void Set(CardBlueprint _bp=null)
void RefreshSprite()
bool isChara
Definition: CardRow.cs:55
string id
Definition: CardRow.cs:7
Definition: Card.cs:11
bool isDestroyed
Definition: Card.cs:75
bool IsDecayed
Definition: Card.cs:2275
virtual bool isThing
Definition: Card.cs:2069
bool IsAmmo
Definition: Card.cs:2235
SocketData AddRune(Card rune)
Definition: Card.cs:3528
bool CanAddRune(TraitMod mod)
Definition: Card.cs:3591
Thing Split(int a)
Definition: Card.cs:3414
void SetPlaceState(PlaceState newState, bool byPlayer=false)
Definition: Card.cs:3677
ElementContainerCard elements
Definition: Card.cs:41
string id
Definition: Card.cs:35
bool HasElement(int ele, int req=1)
Definition: Card.cs:5816
float fy
Definition: Card.cs:266
SoundSource PlaySound(string id, float v=1f, bool spatial=true)
Definition: Card.cs:6038
Card ChangeMaterial(int idNew, bool ignoreFixedMaterial=false)
Definition: Card.cs:3022
virtual void SetDir(int d)
Definition: Card.cs:6094
float fx
Definition: Card.cs:254
Thing SetNum(int a)
Definition: Card.cs:3425
void ForeachPoint(Action< Point, bool > action)
Definition: Card.cs:7704
virtual void SetBlessedState(BlessedState s)
Definition: Card.cs:3825
Point pos
Definition: Card.cs:59
void RenderMarker(Point point, bool active, HitResult result, bool main, int dir, bool useCurrentPosition=false)
Definition: Card.cs:6186
void Dye(string idMat)
Definition: Card.cs:5894
Trait trait
Definition: Card.cs:53
bool IsEquipment
Definition: Card.cs:2161
void SetEncLv(int a)
Definition: Card.cs:3794
void Destroy()
Definition: Card.cs:4996
virtual void Rotate(bool reverse=false)
Definition: Card.cs:6113
void SetFreePos(Point point)
Definition: Card.cs:6162
virtual bool isChara
Definition: Card.cs:2071
virtual Thing Thing
Definition: Card.cs:2046
int turn
Definition: Card.cs:65
int Evalue(int ele)
Definition: Card.cs:2559
void PlaySoundDrop(bool spatial=true)
Definition: Card.cs:6023
int dir
Definition: Card.cs:146
bool TryStackTo(Thing to)
Definition: Card.cs:3327
int Num
Definition: Card.cs:158
SourceCategory.Row category
Definition: Card.cs:2037
bool IsContainer
Definition: Card.cs:2077
bool freePos
Definition: Card.cs:518
CardRenderer renderer
Definition: Card.cs:61
int LV
Definition: Card.cs:386
string c_idRefCard
Definition: Card.cs:1737
void RemoveThings()
Definition: Card.cs:3240
bool IsBlocked
Definition: Cell.cs:895
bool skipRender
Definition: Cell.cs:270
bool HasFire
Definition: Cell.cs:676
static Chara Create(string id, int lv=-1)
Definition: CharaGen.cs:17
Definition: Chara.cs:10
Card held
Definition: Chara.cs:70
void HoldCard(Card t, int num=-1)
Definition: Chara.cs:4398
void Kick(Point p, bool ignoreSelf=false, bool checkWall=true)
Definition: Chara.cs:5677
bool godCraft
Definition: CoreDebug.cs:181
bool enable
Definition: CoreDebug.cs:286
Game game
Definition: Core.cs:72
bool IsGameStarted
Definition: Core.cs:84
static void MakeDish(Thing food, int lv, Chara crafter=null)
Definition: CraftUtil.cs:61
static Thing MixIngredients(string idProduct, List< Thing > ings, MixType type, int idMat=0, Chara crafter=null)
Definition: CraftUtil.cs:261
int GetRaw(int offsetHours=0)
Definition: Date.cs:322
Definition: EClass.cs:5
static Scene scene
Definition: EClass.cs:30
static Core core
Definition: EClass.cs:6
static Zone _zone
Definition: EClass.cs:20
static World world
Definition: EClass.cs:40
static Map _map
Definition: EClass.cs:18
static int rnd(long a)
Definition: EClass.cs:58
static SourceManager sources
Definition: EClass.cs:42
static Player player
Definition: EClass.cs:12
static Chara pc
Definition: EClass.cs:14
static CoreDebug debug
Definition: EClass.cs:48
void AddNote(UINote n, Func< Element, bool > isValid=null, Action onAdd=null, NoteMode mode=NoteMode.Default, bool addRaceFeat=false, Func< Element, string, string > funcText=null, Action< UINote, Element > onAddNote=null)
Element SetBase(string alias, int v, int potential=0)
int id
Definition: ELEMENT.cs:250
SourceElement.Row source
Definition: ELEMENT.cs:273
bool isLoading
Definition: Game.cs:238
void ModFire(int x, int z, int amount)
Definition: Map.cs:1172
Definition: Msg.cs:5
static string Say(string idLang, string ref1, string ref2=null, string ref3=null, string ref4=null)
Definition: Msg.cs:58
bool canComupWithFoodRecipe
Definition: Player.cs:404
Flags flags
Definition: Player.cs:1091
RecipeManager recipes
Definition: Player.cs:1094
Definition: Point.cs:9
int x
Definition: Point.cs:36
int z
Definition: Point.cs:39
List< Chara > ListCharas()
Definition: Point.cs:1159
Cell cell
Definition: Point.cs:51
bool HasChara
Definition: Point.cs:226
Definition: Rand.cs:4
static void SetSeed(int a=-1)
Definition: Rand.cs:37
float fy
Definition: RecipeCard.cs:16
override void WriteNote(UINote n)
Definition: RecipeCard.cs:536
void MixIngredients(Thing t)
Definition: RecipeCard.cs:367
override Card Mold
Definition: RecipeCard.cs:32
bool isDish
Definition: RecipeCard.cs:34
override void BuildIngredientList()
Definition: RecipeCard.cs:65
CardRow _sourceCard
Definition: RecipeCard.cs:7
override TileType tileType
Definition: RecipeCard.cs:24
override bool IsThing
Definition: RecipeCard.cs:30
override void OnChangeAltitude(int a)
Definition: RecipeCard.cs:515
string GetIdFailDish()
Definition: RecipeCard.cs:379
float fx
Definition: RecipeCard.cs:13
override void Build(TaskBuild task)
Definition: RecipeCard.cs:397
override void OnRenderMarker(Point point, bool active, HitResult result, bool main, int dir, int bridgeHeight)
Definition: RecipeCard.cs:51
override void Build(Chara chara, Card t, Point pos, int mat, int dir, int altitude, int bridgeHeight)
Definition: RecipeCard.cs:454
Card _mold
Definition: RecipeCard.cs:18
override string GetIdThing()
Definition: RecipeCard.cs:46
CardRow sourceCard
Definition: RecipeCard.cs:20
override Thing Craft(BlessedState blessed, bool sound=false, List< Thing > ings=null, TraitCrafter crafter=null, bool model=false)
Definition: RecipeCard.cs:153
override Recipe Duplicate()
Definition: RecipeCard.cs:546
override string GetDetail()
Definition: RecipeCard.cs:41
override RenderRow renderRow
Definition: RecipeCard.cs:22
override void Rotate()
Definition: RecipeCard.cs:520
Card CreateMold()
Definition: RecipeCard.cs:121
override void OnSelected()
Definition: RecipeCard.cs:116
override bool CanRotate
Definition: RecipeCard.cs:28
string idCard
Definition: RecipeCard.cs:26
override void OnChangeIngredient()
Definition: RecipeCard.cs:104
bool freePos
Definition: RecipeCard.cs:10
void MakeDish(Thing t)
Definition: RecipeCard.cs:350
override void SetDir(int d)
Definition: RecipeCard.cs:530
override IRenderer GetRenderer()
Definition: RecipeCard.cs:36
void ComeUpWithRandomRecipe(string idCat=null, int lvBonus=0)
Definition: Recipe.cs:7
string id
Definition: Recipe.cs:179
List< Ingredient > ingredients
Definition: Recipe.cs:182
IngType
Definition: Recipe.cs:15
virtual SourceMaterial.Row GetMainMaterial()
Definition: Recipe.cs:485
int GetQualityBonus()
Definition: Recipe.cs:398
bool UseStock
Definition: Recipe.cs:185
int _dir
Definition: Recipe.cs:193
int idSkin
Definition: Recipe.cs:199
virtual SourceMaterial.Row GetColorMaterial()
Definition: Recipe.cs:499
bool IngAsProduct
Definition: Recipe.cs:188
string[] tag
Definition: RenderRow.cs:58
ActionMode actionMode
Definition: Scene.cs:79
Dictionary< string, CardRow > map
Definition: SourceCard.cs:8
string GetDetail()
Definition: SourceData.cs:543
SourceMaterial materials
SourceCard cards
string idCurrentSubset
Definition: Spatial.cs:28
int altitude
Definition: TaskBuild.cs:17
Card target
Definition: TaskBuild.cs:35
int bridgeHeight
Definition: TaskBuild.cs:14
int dir
Definition: TaskBuild.cs:11
List< Thing > resources
Definition: TaskBuild.cs:20
Point pos
Definition: TaskPoint.cs:11
static Thing Create(string id, int idMat=-1, int lv=-1)
Definition: ThingGen.cs:53
Definition: Thing.cs:8
override int SelfWeight
Definition: Thing.cs:82
Thing Identify(bool show=true, IDTSource idtSource=IDTSource.Identify)
Definition: Thing.cs:2052
virtual bool CanRotate(bool buildMode)
Definition: TileType.cs:294
virtual int CraftNum
Definition: Trait.cs:132
virtual void OnRenderTile(Point point, HitResult result, int dir)
Definition: Trait.cs:702
virtual TileType tileType
Definition: Trait.cs:49
virtual bool MaskOnBuild
Definition: Trait.cs:176
virtual void OnCrafted(Recipe recipe, List< Thing > ings)
Definition: Trait.cs:661
Definition: UINote.cs:6
void Clear()
Definition: UINote.cs:35
void Build()
Definition: UINote.cs:49
void OnRotate()
GameDate date
Definition: World.cs:6
override int DangerLv
Definition: Zone.cs:107
Card AddCard(Card t, Point point)
Definition: Zone.cs:1959