Elin Decompiled Documentation EA 23.102 Nightly
|
Public Types | |
enum | NoteMode { Default , CharaMake , CharaMakeAttributes , Domain , Trait } |
Public Member Functions | |
void | ApplyElementMap (int uid, SourceValueType type, Dictionary< int, int > map, int lv, bool invert=false, bool applyFeat=false) |
void | ApplyMaterialElementMap (Thing t, bool invert=false) |
void | ImportElementMap (Dictionary< int, int > map) |
ElementContainer | ImportElementMap (int[] ints) |
void | ApplyPotential (int mode=0) |
int | Value (int ele) |
virtual int | ValueBonus (Element e) |
int | ValueWithoutLink (int ele) |
int | ValueWithoutLink (string alias) |
int | GetFeatRef (int ele, int idx=0) |
int | Exp (int ele) |
bool | Has (int ele) |
bool | Has (SourceElement.Row row) |
bool | Has (string alias) |
bool | HasBase (int ele) |
int | Base (int ele) |
void | Learn (int ele, int v=1) |
void | Train (int ele, int a=10) |
void | ModExp (int ele, int a, bool chain=false) |
virtual void | OnLearn (int ele) |
virtual void | OnTrain (int ele) |
virtual void | OnLevelUp (Element e, int lastValue) |
virtual void | OnLevelDown (Element e, int lastValue) |
Element | SetBase (string alias, int v, int potential=0) |
Element | SetBase (int id, int v, int potential=0) |
void | SetTo (int id, int v) |
void | Remove (int id) |
Element | ModBase (int ele, int v) |
virtual void | OnChangeValue () |
Element | ModPotential (int ele, int v) |
Element | ModTempPotential (int ele, int v, int threshMsg=0) |
virtual void | OnModTempPotential (Element e, int v, int threshMsg) |
int | GetSpellExp (Chara c, Element e, int costMod=100) |
Element | GetElement (string alias) |
Element | GetElement (int id) |
Element | CreateElement (int id) |
Element | GetOrCreateElement (Element ele) |
Element | GetOrCreateElement (string alias) |
Element | GetOrCreateElement (int id) |
void | SetParent (Card c) |
void | SetParent (ElementContainer newParent=null) |
List< Element > | ListElements (Func< Element, bool > shoudList=null, Comparison< Element > comparison=null) |
List< Element > | ListBestAttributes () |
List< Element > | ListBestSkills () |
List< Element > | ListGeneFeats () |
List< Element > | ListLearnable (Chara c) |
List< Element > | ListRune () |
void | CopyTo (ElementContainer container) |
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) |
void | AddNoteAll (UINote n) |
Static Public Member Functions | |
static int | GetSortVal (Element a) |
![]() | |
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) |
Public Attributes | |
Dictionary< int, Element > | dict = new Dictionary<int, Element>() |
ElementContainer | parent |
List< int > | list |
Static Public Attributes | |
const int | sizeElement = 5 |
![]() | |
static Core | core |
Properties | |
virtual Card | Card [get] |
virtual Chara | Chara [get] |
virtual bool | IsMeleeWeapon [get] |
![]() | |
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] |
Private Member Functions | |
void | OnSerializing (StreamingContext context) |
void | OnDeserialized (StreamingContext context) |
Element | ModLink (int id, int v) |
Definition at line 9 of file ElementContainer.cs.
Enumerator | |
---|---|
Default | |
CharaMake | |
CharaMakeAttributes | |
Domain | |
Trait |
Definition at line 11 of file ElementContainer.cs.
|
inline |
Definition at line 675 of file ElementContainer.cs.
References UIItem.button1, CoreRef.Icons.Enc.card, CoreRef.Icons.Enc.cat, Color, EClass.core, Element.Create(), SkinManager.CurrentColors, EClass.debug, dict, Card.elements, SourceManager.elements, CoreRef.Icons.Enc.enc, CoreRef.Icons.enc, BaseCard.GetInt(), Card.GetRuneEnc(), GetSortVal(), Element.GetSortVal(), Element.HasTag(), CoreRef.icons, Element.id, UIItem.image1, UIItem.image2, Element.IsActive(), Element.IsFoodTrait, Element.IsFoodTraitMain, Element.IsGlobalElement, Element.IsTrait, list, CoreRef.Icons.Enc.mat, Card.material, Element.Name, UITooltip.note, EClass.pc, Core.refs, CoreRef.Icons.Enc.rune, Element.SetImage(), CoreDebug.showExtra, Card.ShowFoodEnc, Element.SortVal(), Element.source, Thing.source, EClass.sources, CoreRef.spritesPotential, SkinColorProfile.textBad, SkinColorProfile.textGood, Card.Thing, Element.Value, Element.ValueWithoutLink, and Element.WriteNote().
Referenced by AddNoteAll(), UICharaMaker.Refresh(), RecipeCard.WriteNote(), and Thing.WriteNote().
|
inline |
Definition at line 854 of file ElementContainer.cs.
References AddNote(), Element.HasTag(), Element.source, and Element.ValueWithoutLink.
Referenced by UICharaMaker.ListJob(), and UICharaMaker.ListRace().
|
inline |
Definition at line 73 of file ElementContainer.cs.
References GetOrCreateElement(), Element.GetSourcePotential(), Element.GetSourceValue(), item, Rand.SetSeed(), and Element.source.
Referenced by Chara.ApplyJob(), Chara.ApplyRace(), UICharaMaker.ListJob(), UICharaMaker.ListRace(), Chara.OnDeserialized(), Card.SetLv(), and ElementContainerCard.SetOwner().
|
inline |
Definition at line 98 of file ElementContainer.cs.
References Element.GetMaterialSourceValue(), GetOrCreateElement(), Element.id, item, Card.material, material, Remove(), Rand.SetSeed(), Element.source, Card.uid, Element.vBase, Element.vExp, Element.vLink, Element.vPotential, and Element.vSource.
Referenced by Thing.ApplyMaterialElements().
|
inline |
Definition at line 146 of file ElementContainer.cs.
References dict, and Element.HasTag().
Referenced by UICharaMaker.ListJob(), UICharaMaker.ListRace(), and UICharaMaker.Refresh().
|
inline |
Definition at line 251 of file ElementContainer.cs.
References GetElement(), and Element.ValueWithoutLink.
Referenced by Chara.ModTempElement(), and FoodEffect.Proc().
|
inline |
Definition at line 645 of file ElementContainer.cs.
Referenced by Card.Duplicate().
|
inline |
Definition at line 489 of file ElementContainer.cs.
References Element.Create(), and dict.
Referenced by GetOrCreateElement(), and ListElements().
|
inline |
Definition at line 204 of file ElementContainer.cs.
References GetElement(), and Element.vExp.
|
inline |
Definition at line 484 of file ElementContainer.cs.
References dict.
|
inline |
Definition at line 479 of file ElementContainer.cs.
References SourceManager.elements, GetElement(), and EClass.sources.
Referenced by PolicyManager.AddPolicy(), ActMelee.Attack(), Base(), WidgetStatsBar.Build(), Thing.CanAutoFire(), Thing.CanStackTo(), ElementContainerCard.CheckSkillActions(), Chara.CureTempElements(), Player.DreamSpell(), Exp(), Party.GetBestSkill(), GetElement(), GetFeatRef(), Check.GetFinalDC(), Has(), HasBase(), Card.HasGlobalElement(), Feat.IsPurchaseFeatReqMet(), ModExp(), TraitDrinkMilkMother.OnDrink(), FoodEffect.Proc(), WidgetTracker.Refresh(), Remove(), TraitAbility.SetMainText(), ButtonAbility.SpecialHoldAction(), CalcPlat.Train(), Value(), ElementContainerCard.ValueBonus(), ValueWithoutLink(), and Element.BonusInfo.WriteNote().
|
inline |
Definition at line 194 of file ElementContainer.cs.
References Feat.featRef, and GetElement().
Definition at line 501 of file ElementContainer.cs.
References GetOrCreateElement(), and Element.id.
Referenced by TraitAltar._OnOffer(), Element._WriteNote(), ApplyElementMap(), ApplyMaterialElementMap(), Card.ApplyProtection(), CoreDebug.Fix_EtherDisease(), GetOrCreateElement(), Element.GetParent(), ImportElementMap(), ModBase(), ModLink(), ModPotential(), ModTempPotential(), OnDeserialized(), TaskCraft.OnProgress(), TaskCraft.OnProgressComplete(), Act.Perform(), AttackProcess.Prepare(), ActEffect.Proc(), ItemCulture.Refresh(), WindowCharaMini.Refresh(), UIRecipeInfo.RefreshList(), WindowChara.RefreshProfile(), WindowChara.RefreshSkill(), AI_UseCrafter.Run(), SetBase(), Recipe.SetTextDifficulty(), SetTo(), Value(), Element.BonusInfo.WriteNote(), Thing.WriteNote(), and Recipe.WriteReqSkill().
|
inline |
Definition at line 511 of file ElementContainer.cs.
References CreateElement(), and dict.
|
inline |
Definition at line 506 of file ElementContainer.cs.
References SourceManager.elements, GetOrCreateElement(), and EClass.sources.
|
inlinestatic |
Definition at line 657 of file ElementContainer.cs.
References Element.id, Element.IsFoodTraitMain, Element.source, and Element.Value.
Referenced by AddNote(), and Thing.ListLimitedValidTraits().
Definition at line 462 of file ElementContainer.cs.
References Card.Evalue(), Element.GetCost(), Element.source, and ValueWithoutLink().
Referenced by ActMelee.Attack().
|
inline |
Definition at line 209 of file ElementContainer.cs.
References GetElement().
Referenced by BaseCondition._WriteNote(), Element.CheckLevelBonus(), Has(), BuildMenu.OnActivate(), HotbarManager.ResetHotbar(), AI_PassTime.Run(), Card.Teleport(), BuildMenu.Toggle(), TraitFoodEgg.Update(), and Element.BonusInfo.WriteNote().
|
inline |
|
inline |
Definition at line 224 of file ElementContainer.cs.
References SourceManager.elements, Has(), and EClass.sources.
|
inline |
Definition at line 229 of file ElementContainer.cs.
References GetElement(), Value(), and Element.ValueWithoutLink.
Referenced by ElementContainerCard.CheckSkillActions(), TraitBookSkill.OnRead(), TraitBookSkill.SetName(), TraitBookPlan.WriteNote(), and TraitBookSkill.WriteNote().
|
inline |
Definition at line 129 of file ElementContainer.cs.
References GetOrCreateElement(), item, and Element.vSource.
Referenced by WindowChara.RefreshNote().
|
inline |
Definition at line 137 of file ElementContainer.cs.
References GetOrCreateElement(), and Element.vSource.
|
inline |
Definition at line 256 of file ElementContainer.cs.
References ModBase(), and OnLearn().
Referenced by DNA.Apply(), Element.CheckLevelBonus(), Religion.JoinFaith(), and TraitBookSkill.OnRead().
|
inline |
Definition at line 608 of file ElementContainer.cs.
References Element.HasTag(), Element.id, ListElements(), and Element.ValueWithoutLink.
Referenced by AI_Fuck.Finish(), and TraitDrinkMilkMother.OnDrink().
|
inline |
Definition at line 615 of file ElementContainer.cs.
References Element.id, ListElements(), Element.source, and Element.ValueWithoutLink.
Referenced by TraitDrinkMilkMother.OnDrink(), and LayerEmbark.RefreshMembers().
|
inline |
Definition at line 551 of file ElementContainer.cs.
References Card.Chara, Faction.charaElements, CreateElement(), dict, Card.elements, Chara.faction, Chara.faithElements, Element.id, Chara.IsPCFaction, item, list, EClass.pc, and Element.Value.
Referenced by WidgetStatsBar.Build(), Card.CanAddRune(), ListBestAttributes(), ListBestSkills(), ListGeneFeats(), ListRune(), ActEffect.Proc(), WindowCharaMini.Refresh(), WindowChara.RefreshSkill(), and WindowChara.RefreshStatic().
|
inline |
Definition at line 622 of file ElementContainer.cs.
References ListElements(), Element.source, and Element.Value.
Definition at line 627 of file ElementContainer.cs.
|
inline |
Definition at line 640 of file ElementContainer.cs.
References ListElements(), Element.source, Element.vBase, and Element.vSource.
Referenced by TraitCrafter.Craft().
|
inline |
Definition at line 402 of file ElementContainer.cs.
References Element.CanLink(), Element.CheckLevelBonus(), GetOrCreateElement(), Element.id, ModLink(), Element.OnChangeValue(), parent, Remove(), Element.vBase, Element.vExp, Element.vLink, Element.vPotential, and Element.vSource.
Referenced by DNA.Apply(), Feat.Apply(), Thing.ApplyMaterial(), Card.ApplySocket(), TraitDrink.BlendLove(), TraitDrink.BlendPoison(), CoreDebug.COM_MaxConstruction(), Card.EjectSockets(), CoreDebug.Fix_EtherDisease(), AI_Shear.GetFur(), Learn(), Card.MakeFoodFrom(), Card.ModEncLv(), ModExp(), Chara.ModTempElement(), TraitDrinkMilkMother.OnDrink(), ElementContainerFaction.OnEquip(), FactionBranch.OnUnclaimZone(), ElementContainerFaction.OnUnequip(), ActEffect.Proc(), CoreDebug.QuickStart(), Chara.RefreshWorkElements(), AI_Idle.Run(), Card.SetBlessedState(), Card.SetLv(), Chara.SetMainElement(), SetTo(), ConDisease.Tick(), Map.TryShatter(), TraitFoodEgg.Update(), and FactionBranch.Upgrade().
|
inline |
Definition at line 268 of file ElementContainer.cs.
References Element.CanGainExp, Card.Chara, Element.ExpToNext, GetElement(), Element.GetParent(), Element.id, Card.isChara, Chara.isDead, ModBase(), ModExp(), OnLevelDown(), OnLevelUp(), EClass.rnd(), EClass.rndf(), Element.source, Element.UseExpMod, Element.ValueWithoutLink, Element.vBase, Element.vExp, and Element.vTempPotential.
Referenced by TraitAltar._OnOffer(), Chara.ApplyDeathPenalty(), Card.DamageHP(), StatsMana.Mod(), Card.ModExp(), ModExp(), Player.MoveZone(), Policy.OnAdvanceHour(), TaskChopWood.OnCreateProgress(), TaskDig.OnCreateProgress(), TaskDrawWater.OnCreateProgress(), TaskHarvest.OnCreateProgress(), TaskMine.OnCreateProgress(), TaskPlow.OnCreateProgress(), TaskPourWater.OnCreateProgress(), TaskCraft.OnProgress(), AI_Fish.ProgressFish.OnProgressComplete(), TaskCraft.OnProgressComplete(), TaskDig.OnProgressComplete(), TaskMine.OnProgressComplete(), TraitBookSkill.OnRead(), TraitScrollStatic.OnRead(), FoodEffect.Proc(), AI_Fuck.Run(), AI_PlayMusic.Run(), AI_Shear.Run(), AI_Slaughter.Run(), AI_Steal.Run(), AI_UseCrafter.Run(), and Card.SpawnLoot().
|
inlineprivate |
Definition at line 450 of file ElementContainer.cs.
References Element.CanLink(), GetOrCreateElement(), ModLink(), Element.OnChangeValue(), and parent.
Referenced by ModBase(), ModLink(), Remove(), SetBase(), and SetParent().
|
inline |
Definition at line 423 of file ElementContainer.cs.
References GetOrCreateElement(), and Element.vPotential.
Referenced by Feat.Apply(), and FoodEffect.Proc().
|
inline |
Definition at line 434 of file ElementContainer.cs.
References GetOrCreateElement(), OnModTempPotential(), and Element.vTempPotential.
Referenced by AI_Fuck.Finish(), FoodEffect.Proc(), ActEffect.Proc(), AI_Idle.Run(), and Train().
|
inlinevirtual |
Definition at line 419 of file ElementContainer.cs.
|
inlineprivate |
Definition at line 53 of file ElementContainer.cs.
References GetOrCreateElement(), and list.
|
inlinevirtual |
Reimplemented in ElementContainerCard, and ElementContainerZone.
Definition at line 336 of file ElementContainer.cs.
Referenced by Learn().
|
inlinevirtual |
Reimplemented in ElementContainerCard.
Definition at line 348 of file ElementContainer.cs.
Referenced by ModExp().
|
inlinevirtual |
Reimplemented in ElementContainerCard, and ElementContainerZone.
Definition at line 344 of file ElementContainer.cs.
Referenced by ModExp().
|
inlinevirtual |
Reimplemented in ElementContainerCard.
Definition at line 446 of file ElementContainer.cs.
Referenced by ModTempPotential().
|
inlineprivate |
Definition at line 36 of file ElementContainer.cs.
References dict, Element.id, list, Element.vBase, Element.vExp, Element.vPotential, and Element.vTempPotential.
|
inlinevirtual |
Reimplemented in ElementContainerCard.
Definition at line 340 of file ElementContainer.cs.
Referenced by Train().
|
inline |
Definition at line 389 of file ElementContainer.cs.
References Element.CanLink(), dict, GetElement(), ModLink(), parent, and Element.Value.
Referenced by ApplyMaterialElementMap(), Card.CheckJustCooked(), ModBase(), Chara.ModTempElement(), Trait.OnBarter(), Player.OnStartNewGame(), LayerCraft.RefreshProduct(), SetBase(), and SetTo().
|
inline |
Definition at line 357 of file ElementContainer.cs.
References Element.CanLink(), GetOrCreateElement(), Element.id, ModLink(), Element.OnChangeValue(), parent, Remove(), Element.vBase, Element.vExp, Element.vLink, Element.vPotential, and Element.vSource.
|
inline |
Definition at line 352 of file ElementContainer.cs.
References SourceManager.elements, SetBase(), and EClass.sources.
Referenced by TraitAltar._OnOffer(), PolicyManager.AddPolicy(), Thing.ApplyMaterial(), TraitTrainingDummyArmor.CalcPV(), ElementContainerCard.CheckSkillActions(), RecipeCard.Craft(), Card.Decay(), DramaOutcome.fiama_starter_gift(), TaskHarvest.HarvestThing(), TraitFoodEggFertilized.Incubate(), Religion.LeaveFaith(), CraftUtil.MakeDish(), Card.MakeFoodFrom(), TraitSeed.MakeSeed(), Trait.OnBarter(), ConFreeze.OnChangePhase(), ConPoison.OnChangePhase(), TraitToolRangeCane.OnCreate(), Player.OnStartNewGame(), CoreDebug.QuickStart(), Chara.RefreshFaithElement(), SetBase(), CoreDebug.SetElement(), Chara.SetMainElement(), BaseCondition.SetOwner(), ConBuffStats.SetOwner(), CoreDebug.UpdateInput(), and TraitWrench.Upgrade().
|
inline |
Definition at line 521 of file ElementContainer.cs.
References SetParent().
Referenced by Thing.ApplyMaterialElements(), CharaBody.Equip(), Condition.Kill(), Chara.ModTempElement(), Chara.OnDeserialized(), ConDisease.OnRemoved(), Chara.RefreshFaithElement(), Chara.RefreshWorkElements(), BaseCondition.SetOwner(), ConBuffStats.SetOwner(), ConDisease.SetOwner(), CharaBody.SetOwner(), SetParent(), and CharaBody.Unequip().
|
inline |
Definition at line 526 of file ElementContainer.cs.
References Element.CanLink(), dict, Element.id, ModLink(), parent, Element.vBase, and Element.vSource.
|
inline |
Definition at line 375 of file ElementContainer.cs.
References GetOrCreateElement(), Element.id, ModBase(), Remove(), Element.vBase, Element.vExp, Element.vLink, Element.vPotential, and Element.vSource.
Referenced by Card.AddRune(), DNA.GenerateWithGene(), TraitSeed.MakeSeed(), TraitAgingShelf.OnProduce(), and TraitDryBrick.OnProduce().
|
inline |
Definition at line 262 of file ElementContainer.cs.
References ModTempPotential(), and OnTrain().
|
inline |
Definition at line 157 of file ElementContainer.cs.
References Faction.charaElements, EClass.core, Chara.faction, Core.game, GetElement(), GetOrCreateElement(), Card.IsPCFactionOrMinion, EClass.pc, Element.Value, and Value().
Referenced by BaseCondition._WriteNote(), Element._WriteNote(), ActMelee.Attack(), Card.Evalue(), FactionBranch.Evalue(), Zone.Evalue(), Card.EvalueMax(), Card.GetBestAttribute(), Zone.GetElectricity(), HasBase(), Card.HasElement(), Feat.IsPurchaseFeatReqMet(), ActRanged.Perform(), WidgetStatsBar.Refresh(), Zone.RefreshElectricity(), Value(), Element.BonusInfo.WriteNote(), Element.WriteNoteWithRef(), and Feat.WritePurchaseReq().
|
inlinevirtual |
Reimplemented in ElementContainerCard.
Definition at line 179 of file ElementContainer.cs.
|
inline |
Definition at line 184 of file ElementContainer.cs.
References GetElement(), and Element.ValueWithoutLink.
Referenced by DNA.Apply(), ElementContainerCard.CheckSkillActions(), Card.DamageHP(), AI_Fuck.Finish(), GetSpellExp(), AttackProcess.Perform(), ButtonElement.Refresh(), and Chara.RefreshSpeed().
|
inline |
Definition at line 189 of file ElementContainer.cs.
References GetElement(), and Element.ValueWithoutLink.
Definition at line 20 of file ElementContainer.cs.
Referenced by AddNote(), Feat.Apply(), Chara.ApplyDeathPenalty(), ApplyPotential(), Chara.CalculateMaxStamina(), Thing.CanStackTo(), TraitAmmo.CanStackTo(), CopyTo(), CreateElement(), Chara.DiminishTempElements(), Chara.Duplicate(), CoreDebug.Fix_EtherDisease(), Card.GetBestAttribute(), GetElement(), GetOrCreateElement(), Card.GetValue(), Chara.GiveGift(), Element.IsFactionElement(), ListElements(), ListLearnable(), TraitSeed.MakeSeed(), CraftUtil.MixIngredients(), Chara.ModTempElement(), OnSerializing(), Player.OnStartNewGame(), AttackProcess.Perform(), AttackProcess.PlayRangedAnime(), FoodEffect.Proc(), ActEffect.Proc(), LayerHome.RefreshFeat(), LayerCraft.RefreshProduct(), Remove(), AI_Eat.Run(), AI_Idle.Run(), LayerAbility.SelectGroup(), Card.SetLv(), SetParent(), and Element.BonusInfo.WriteNote().
List<int> ElementContainer.list |
Definition at line 27 of file ElementContainer.cs.
Referenced by AddNote(), ListElements(), ListLearnable(), OnDeserialized(), and OnSerializing().
ElementContainer ElementContainer.parent |
Definition at line 22 of file ElementContainer.cs.
Referenced by ModBase(), ModLink(), Remove(), SetBase(), and SetParent().
|
static |
Definition at line 24 of file ElementContainer.cs.
|
get |
Definition at line 29 of file ElementContainer.cs.
Referenced by Feat.Apply(), Ability.CanLink(), Ability.OnChangeValue(), RaceBonus.OnWriteNote(), and ButtonElement.Refresh().
|
get |
Definition at line 31 of file ElementContainer.cs.
Referenced by Element._WriteNote(), Feat.Apply(), AttbMain.OnChangeValue(), and Skill.OnChangeValue().
|
get |
Definition at line 33 of file ElementContainer.cs.
Referenced by AttbWeapon.CanLink().