Elin Decompiled Documentation EA 23.130 Nightly
|
Public Types | |
enum | NoteMode { Default , CharaMake , CharaMakeAttributes , Domain , BonusTrait } |
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 | rndSeed (int a, int seed) |
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 8 of file ElementContainer.cs.
Enumerator | |
---|---|
Default | |
CharaMake | |
CharaMakeAttributes | |
Domain | |
BonusTrait |
Definition at line 10 of file ElementContainer.cs.
|
inline |
Definition at line 674 of file ElementContainer.cs.
References Element.Create(), EClass.debug, dict, GetSortVal(), Element.GetSortVal(), Element.HasTag(), item, list, CoreDebug.showExtra, Element.SortVal(), Element.Value, and Element.ValueWithoutLink.
Referenced by AddNoteAll(), UICharaMaker.Refresh(), and RecipeCard.WriteNote().
|
inline |
Definition at line 714 of file ElementContainer.cs.
References AddNote(), Element.HasTag(), Element.source, and Element.ValueWithoutLink.
Referenced by UICharaMaker.ListJob(), and UICharaMaker.ListRace().
|
inline |
Definition at line 72 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 97 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 145 of file ElementContainer.cs.
References dict, and Element.HasTag().
Referenced by UICharaMaker.ListJob(), UICharaMaker.ListRace(), and UICharaMaker.Refresh().
|
inline |
Definition at line 250 of file ElementContainer.cs.
References GetElement(), and Element.ValueWithoutLink.
Referenced by Chara.ModTempElement(), and FoodEffect.Proc().
|
inline |
Definition at line 644 of file ElementContainer.cs.
Referenced by Card.Duplicate().
|
inline |
Definition at line 488 of file ElementContainer.cs.
References Element.Create(), and dict.
Referenced by GetOrCreateElement(), and ListElements().
|
inline |
Definition at line 203 of file ElementContainer.cs.
References GetElement(), and Element.vExp.
|
inline |
Definition at line 483 of file ElementContainer.cs.
References dict.
|
inline |
Definition at line 478 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 193 of file ElementContainer.cs.
References Feat.featRef, and GetElement().
Definition at line 500 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 510 of file ElementContainer.cs.
References CreateElement(), and dict.
|
inline |
Definition at line 505 of file ElementContainer.cs.
References SourceManager.elements, GetOrCreateElement(), and EClass.sources.
|
inlinestatic |
Definition at line 656 of file ElementContainer.cs.
References Element.id, Element.IsFoodTraitMain, Element.source, and Element.Value.
Referenced by AddNote(), and Thing.ListLimitedValidTraits().
Definition at line 461 of file ElementContainer.cs.
References Card.Evalue(), Element.GetCost(), Element.source, and ValueWithoutLink().
Referenced by ActMelee.Attack().
|
inline |
Definition at line 208 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 223 of file ElementContainer.cs.
References SourceManager.elements, Has(), and EClass.sources.
|
inline |
Definition at line 228 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 128 of file ElementContainer.cs.
References GetOrCreateElement(), item, and Element.vSource.
Referenced by WindowChara.RefreshNote().
|
inline |
Definition at line 136 of file ElementContainer.cs.
References GetOrCreateElement(), and Element.vSource.
|
inline |
Definition at line 255 of file ElementContainer.cs.
References ModBase(), and OnLearn().
Referenced by DNA.Apply(), Element.CheckLevelBonus(), Religion.JoinFaith(), and TraitBookSkill.OnRead().
|
inline |
Definition at line 607 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 614 of file ElementContainer.cs.
References Element.id, ListElements(), Element.source, and Element.ValueWithoutLink.
Referenced by TraitDrinkMilkMother.OnDrink(), and LayerEmbark.RefreshMembers().
|
inline |
Definition at line 550 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 621 of file ElementContainer.cs.
References ListElements(), Element.source, and Element.Value.
Definition at line 626 of file ElementContainer.cs.
|
inline |
Definition at line 639 of file ElementContainer.cs.
References ListElements(), Element.source, Element.vBase, and Element.vSource.
Referenced by TraitCrafter.Craft().
|
inline |
Definition at line 401 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.Decay(), Card.EjectSockets(), CoreDebug.Fix_EtherDisease(), AI_Shear.GetFur(), Learn(), Card.MakeFoodFrom(), CraftUtil.MixIngredients(), 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 267 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(), 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 449 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 422 of file ElementContainer.cs.
References GetOrCreateElement(), and Element.vPotential.
Referenced by Feat.Apply(), and FoodEffect.Proc().
|
inline |
Definition at line 433 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 418 of file ElementContainer.cs.
|
inlineprivate |
Definition at line 52 of file ElementContainer.cs.
References GetOrCreateElement(), and list.
|
inlinevirtual |
Reimplemented in ElementContainerCard, and ElementContainerZone.
Definition at line 335 of file ElementContainer.cs.
Referenced by Learn().
|
inlinevirtual |
Reimplemented in ElementContainerCard.
Definition at line 347 of file ElementContainer.cs.
Referenced by ModExp().
|
inlinevirtual |
Reimplemented in ElementContainerCard, and ElementContainerZone.
Definition at line 343 of file ElementContainer.cs.
Referenced by ModExp().
|
inlinevirtual |
Reimplemented in ElementContainerCard.
Definition at line 445 of file ElementContainer.cs.
Referenced by ModTempPotential().
|
inlineprivate |
Definition at line 35 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 339 of file ElementContainer.cs.
Referenced by Train().
|
inline |
Definition at line 388 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(), SetBase(), and SetTo().
|
inline |
Definition at line 356 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 351 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(), TraitPotion.Create(), TraitRod.Create(), TraitSpellbook.Create(), DramaOutcome.fiama_starter_gift(), TaskHarvest.HarvestThing(), TraitFoodEggFertilized.Incubate(), Religion.LeaveFaith(), CraftUtil.MakeDish(), Card.MakeFoodFrom(), TraitSeed.MakeSeed(), Trait.OnBarter(), ConFreeze.OnChangePhase(), ConPoison.OnChangePhase(), TraitRod.OnCreate(), TraitToolRangeCane.OnCreate(), Player.OnStartNewGame(), CoreDebug.QuickStart(), Chara.RefreshFaithElement(), SetBase(), CoreDebug.SetElement(), Chara.SetMainElement(), BaseCondition.SetOwner(), ConBuffStats.SetOwner(), Card.SetTier(), CoreDebug.UpdateInput(), and TraitWrench.Upgrade().
|
inline |
Definition at line 520 of file ElementContainer.cs.
References SetParent().
Referenced by Thing.ApplyMaterialElements(), Chara.ClearTempElements(), 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 525 of file ElementContainer.cs.
References Element.CanLink(), dict, Element.id, ModLink(), parent, Element.vBase, and Element.vSource.
|
inline |
Definition at line 374 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(), CraftUtil.MixIngredients(), TraitAgingShelf.OnProduce(), TraitDryBrick.OnProduce(), and Card.SetTier().
|
inline |
Definition at line 261 of file ElementContainer.cs.
References ModTempPotential(), and OnTrain().
|
inline |
Definition at line 156 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(), Card.Evalue(), FactionBranch.Evalue(), Zone.Evalue(), Card.EvalueMax(), Card.GetBestAttribute(), Zone.GetElectricity(), AttackProcess.GetWeaponEnc(), 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 178 of file ElementContainer.cs.
|
inline |
Definition at line 183 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 188 of file ElementContainer.cs.
References GetElement(), and Element.ValueWithoutLink.
Definition at line 19 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(), TraitPotionAlchemy.OnCrafted(), 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(), Card.SetTier(), and Element.BonusInfo.WriteNote().
List<int> ElementContainer.list |
Definition at line 26 of file ElementContainer.cs.
Referenced by AddNote(), ListElements(), ListLearnable(), OnDeserialized(), and OnSerializing().
ElementContainer ElementContainer.parent |
Definition at line 21 of file ElementContainer.cs.
Referenced by ModBase(), ModLink(), Remove(), SetBase(), and SetParent().
|
static |
Definition at line 23 of file ElementContainer.cs.
|
get |
Definition at line 28 of file ElementContainer.cs.
Referenced by Feat.Apply(), Ability.CanLink(), Ability.OnChangeValue(), RaceBonus.OnWriteNote(), ButtonElement.Refresh(), and Element.SortVal().
|
get |
Definition at line 30 of file ElementContainer.cs.
Referenced by Element._WriteNote(), Feat.Apply(), AttbMain.OnChangeValue(), and Skill.OnChangeValue().
|
get |
Definition at line 32 of file ElementContainer.cs.
Referenced by AttbWeapon.CanLink().