Elin Decompiled Documentation EA 23.102 Nightly
|
Public Types | |
enum | MixType { General , Food } |
Static Public Member Functions | |
static void | ModRandomFoodEnc (Thing t) |
static void | AddRandomFoodEnc (Thing t) |
static void | MakeDish (Thing food, int lv, Chara crafter=null) |
static void | MakeDish (Card food, List< Thing > ings, int qualityBonus, Chara crafter=null) |
static Thing | MixIngredients (string idProduct, List< Thing > ings, MixType type, int idMat=0, Chara crafter=null) |
static Card | MixIngredients (Card product, List< Thing > ings, MixType type, int maxQuality, Chara crafter=null) |
![]() | |
static int | rnd (int a) |
static int | curve (int a, int start, int step, int rate=75) |
static int | rndHalf (int a) |
static float | rndf (float a) |
static int | rndSqrt (int a) |
static void | Wait (float a, Card c) |
static void | Wait (float a, Point p) |
static int | Bigger (int a, int b) |
static int | Smaller (int a, int b) |
Static Public Attributes | |
static string[] | ListFoodEffect = new string[2] { "exp", "pot" } |
![]() | |
static Core | core |
Additional Inherited Members | |
![]() | |
static Game | game [get] |
static bool | AdvMode [get] |
static Player | player [get] |
static Chara | pc [get] |
static UI | ui [get] |
static Map | _map [get] |
static Zone | _zone [get] |
static FactionBranch | Branch [get] |
static FactionBranch | BranchOrHomeBranch [get] |
static Faction | Home [get] |
static Faction | Wilds [get] |
static Scene | scene [get] |
static BaseGameScreen | screen [get] |
static GameSetting | setting [get] |
static GameData | gamedata [get] |
static ColorProfile | Colors [get] |
static World | world [get] |
static SourceManager | sources [get] |
static SourceManager | editorSources [get] |
static SoundManager | Sound [get] |
static CoreDebug | debug [get] |
Definition at line 5 of file CraftUtil.cs.
enum CraftUtil.MixType |
Enumerator | |
---|---|
General | |
Food |
Definition at line 7 of file CraftUtil.cs.
|
inlinestatic |
Definition at line 36 of file CraftUtil.cs.
References SourceManager.elements, ListFoodEffect, and EClass.sources.
Referenced by TraitSeed.LevelSeed().
|
inlinestatic |
Definition at line 79 of file CraftUtil.cs.
References CardRow._origin, Card.Add(), Card.c_idRefCard, food, Card.id, and Card.sourceCard.
Definition at line 54 of file CraftUtil.cs.
References RecipeManager.BuildList(), ThingGen.Create(), Debug, Card.elements, Card.encLV, food, RecipeManager.Get(), RecipeSource.GetIngredients(), TraitSeed.LevelSeed(), EClass.rnd(), ElementContainer.SetBase(), and Card.SetEncLv().
Referenced by FactionBranch.DailyOutcome(), RecipeCard.MakeDish(), Trait.OnBarter(), Map.TryShatter(), and TraitFoodEgg.Update().
|
inlinestatic |
Definition at line 143 of file CraftUtil.cs.
References ElementContainer.dict, Card.elements, Card.Evalue(), Card.FameLv, Card.GetValue(), Element.HasTag(), Card.id, Element.id, Element.IsFoodTrait, Element.IsFoodTraitMain, Element.IsTrait, EClass.pc, Thing.SelfWeight, Card.Thing, and Element.Value.
|
inlinestatic |
Definition at line 132 of file CraftUtil.cs.
References Card.ChangeMaterial(), and ThingGen.Create().
Referenced by TraitCrafter.Craft(), RecipeCard.MixIngredients(), TraitBrewery.OnChildDecay(), and TaskChopWood.OnCreateProgress().
|
inlinestatic |
Definition at line 15 of file CraftUtil.cs.
References Element.id, Element.IsFoodTrait, EClass.rnd(), and Element.Value.
Referenced by TraitSeed.LevelSeed().
|
static |
Definition at line 13 of file CraftUtil.cs.
Referenced by AddRandomFoodEnc().