|
Elin Decompiled Documentation EA 23.345.1 Nightly
|
Public Member Functions | |
| void | SetOwner (Chara chara, bool deserialized=false) |
| void | Unequip (Thing thing, bool refresh=true) |
| void | UnequipAll (int idSlot) |
| void | Unequip (BodySlot slot, bool refresh=true) |
| bool | IsEquippable (Thing thing, BodySlot slot, bool text=true) |
| bool | IsTooHeavyToEquip (Thing thing) |
| void | UnqeuipIfTooHeavy (Thing t) |
| bool | Equip (Thing thing, BodySlot slot=null, bool msg=true) |
| void | AddBodyPart (int ele, Thing thing=null) |
| void | RefreshBodyParts () |
| void | RemoveBodyPart (int ele) |
| void | RemoveBodyPartAt (int idx) |
| BodySlot | GetSlot (Thing t, bool onlyEmpty=false, bool secondSlot=false) |
| BodySlot | GetSlot (int elementId, bool onlyEmpty=true, bool getSecondSlot=false) |
| bool | HasWeapon () |
| bool | HasElement (int idEle) |
| Thing | GetEquippedThing (int elementId) |
| int | GetWeight (bool armorOnly=false) |
| int | GetAttackIndex (Thing t) |
| int | GetMeleeDistance () |
| AttackStyle | GetAttackStyle () |
| int | GetAttackStyleElement (AttackStyle style) |
| int | GetSortVal (BodySlot slot) |
| void | SetBodyIndexText (BodySlot b, UIText t) |
| int | CountWeapons () |
Public Attributes | |
| Chara | owner |
| List< BodySlot > | slots = new List<BodySlot>() |
| BodySlot | slotMainHand |
| BodySlot | slotOffHand |
| BodySlot | slotRange |
Properties | |
| int[] | rawSlots [get] |
Properties inherited from EClass | |
| 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] |
Additional Inherited Members | |
Static Public Member Functions inherited from EClass | |
| static int | rndSeed (int a, int seed) |
| static int | rnd (long a) |
| static int | rnd (int a) |
| static int | curve (long _a, int start, int step, int rate=75) |
| static int | sqrt (int a) |
| 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 inherited from EClass | |
| static Core | core |
Definition at line 4 of file CharaBody.cs.
|
inline |
Definition at line 312 of file CharaBody.cs.
References item, slotMainHand, slotOffHand, slotRange, and slots.
Referenced by CoreDebug._AddBodyPart(), Card._OnDeserialized(), Chara.AddRandomBodyPart(), DNA.Apply(), Chara.ApplyRace(), CoreDebug.ChangeRace(), Player.CreateEquip(), CoreDebug.QuickStart(), Chara.ResetBody(), and SetOwner().
|
inline |
Definition at line 589 of file CharaBody.cs.
References Card.IsMeleeWeapon, slots, and BodySlot.thing.
Referenced by Element.GetCost().
Definition at line 213 of file CharaBody.cs.
References Card.AddCard(), DNA.Apply(), Card.blessedState, Card.c_DNA, Card.c_uidAttune, Card.category, Faction.charaElements, EClass.core, DNA.cost, EClass.debug, Debug, BodySlot.elementId, Card.elements, Card.Evalue(), Chara.faction, GetSlot(), CoreDebug.godMode, Card.HasElement(), Card.id, Chara.isCreated, IsEquippable(), Thing.isEquipped, Core.IsGameStarted, Chara.IsPC, item, ThingContainer.List(), Trait.OnEquip(), ElementContainerFaction.OnEquip(), owner, Card.parent, EClass.pc, Card.PlaySound(), Card.RecalculateFOV(), LayerChara.Refresh(), Chara.Refresh(), Msg.Say(), Card.Say(), Card.SetBlessedState(), Card.SetBool(), WidgetEquip.SetDirty(), LayerInventory.SetDirty(), ElementContainer.SetParent(), Chara.SetTempHand(), slotMainHand, slotOffHand, BodySlot.thing, Card.things, Card.trait, and Unequip().
Referenced by CoreDebug.ChangeRace(), Chara.EQ_CAT(), Chara.EQ_ID(), join_party(), InvOwner.ListInteractions(), InvOwner.OnDrag(), TraitMannequin.OnUse(), HotItemEQSet.Perform(), InvOwner.PutBack(), Chara.RestockEquip(), AI_Equip.Run(), and Chara.TryEquip().
|
inline |
Definition at line 478 of file CharaBody.cs.
References BodySlot.elementId, slots, Thing.source, and BodySlot.thing.
|
inline |
Definition at line 508 of file CharaBody.cs.
References BodySlot.elementId, Card.IsMeleeWeapon, slots, and BodySlot.thing.
Referenced by ActMelee.Attack(), Chara.CalcCastingChance(), Card.DamageHP(), AttackProcess.GetTwoHandEncBonus(), AttackProcess.Prepare(), WindowCharaMini.Refresh(), and WindowChara.RefreshProfile().
|
inline |
Definition at line 541 of file CharaBody.cs.
Referenced by AttackProcess.Perform().
|
inline |
Definition at line 453 of file CharaBody.cs.
References BodySlot.elementId, slots, and BodySlot.thing.
Referenced by QuestCrafter.CanUpdateOnTalk(), Card.GetLightRadius(), and CoreDebug.QuickStart().
|
inline |
Definition at line 495 of file CharaBody.cs.
References BodySlot.elementId, Card.Evalue(), owner, slots, and BodySlot.thing.
Referenced by GoalCombat.TryUseAbility().
|
inline |
Definition at line 412 of file CharaBody.cs.
References BodySlot.elementId, slots, and BodySlot.thing.
Definition at line 398 of file CharaBody.cs.
References Card.category, and GetSlot().
Referenced by Card._OnDeserialized(), Chara.EQ_CAT(), Chara.EQ_ID(), Equip(), AI_Fuck.Finish(), GetSlot(), InvOwner.ListInteractions(), HotItemEQSet.Perform(), Chara.RefreshSpeed(), Chara.ShouldEquip(), and Chara.TryEquip().
|
inline |
Definition at line 551 of file CharaBody.cs.
References Chara.body, owner, and slots.
Referenced by LayerEquip.RefreshEquipment(), WidgetEquip.RefreshEquipment(), WindowChara.RefreshEquipment(), and ButtonElement.SetGrid().
|
inline |
Definition at line 465 of file CharaBody.cs.
References Card.ChildrenAndSelfWeight, BodySlot.elementId, slots, and BodySlot.thing.
Referenced by Chara.GetArmorSkill(), WindowCharaMini.Refresh(), and WindowChara.RefreshProfile().
|
inline |
Definition at line 441 of file CharaBody.cs.
References Card.elements, ElementContainer.Has(), slots, and BodySlot.thing.
Referenced by Chara.TickConditions().
|
inline |
Definition at line 429 of file CharaBody.cs.
References Card.IsWeapon, slots, and BodySlot.thing.
Referenced by Chara.RestockEquip().
Definition at line 114 of file CharaBody.cs.
References Card.blessedState, Card.c_DNA, Card.c_uidAttune, EClass.core, DNA.cost, BodySlot.element, BodySlot.elementId, Card.feat, Card.GetBool(), Card.HasElement(), Core.IsGameStarted, Chara.IsPC, IsTooHeavyToEquip(), owner, EClass.pc, Msg.Say(), BodySlot.thing, and Card.uid.
Referenced by Equip(), InvOwner.OnDrag(), and Chara.ShouldEquip().
|
inline |
Definition at line 187 of file CharaBody.cs.
References Card.ChildrenAndSelfWeight, Card.HasElement(), and owner.
Referenced by Thing.CanAutoFire(), Chara.CanEquipRanged(), IsEquippable(), ActRanged.Perform(), and UnqeuipIfTooHeavy().
|
inline |
Definition at line 338 of file CharaBody.cs.
References BodySlot.elementId, slotMainHand, slotOffHand, slotRange, slots, and BodySlot.thing.
Referenced by CoreDebug._AddBodyPart(), Card._OnDeserialized(), CoreDebug._RemoveBodyPart(), DNA.Apply(), Chara.ApplyRace(), CoreDebug.ChangeRace(), and Chara.ResetBody().
|
inline |
Definition at line 367 of file CharaBody.cs.
References BodySlot.elementId, RemoveBodyPartAt(), and slots.
Referenced by CoreDebug._RemoveBodyPart(), DNA.Apply(), Chara.ApplyRace(), CoreDebug.ChangeRace(), and Chara.ResetBody().
|
inline |
Definition at line 373 of file CharaBody.cs.
References slotMainHand, slotOffHand, slotRange, slots, BodySlot.thing, and Unequip().
Referenced by RemoveBodyPart(), and Chara.RemoveLastBodyPart().
Definition at line 556 of file CharaBody.cs.
References BodySlot.element, BodySlot.elementId, BodySlot.indexPart, UIText.SetText(), and slots.
Referenced by ButtonGrid.SetBodySlot().
|
inline |
Definition at line 18 of file CharaBody.cs.
References AddBodyPart(), Card.elements, Thing.isEquipped, Trait.OnEquip(), owner, rawSlots, ElementContainer.SetParent(), slots, Card.things, and Card.trait.
Referenced by Chara.OnCreate(), and Chara.OnDeserialized().
|
inline |
Definition at line 68 of file CharaBody.cs.
References DNA.Apply(), Card.c_DNA, Faction.charaElements, EClass.core, DNA.cost, BodySlot.elementId, Card.elements, Chara.faction, Card.HasElement(), Chara.isCreated, Core.IsGameStarted, Chara.IsPC, Trait.OnUnequip(), ElementContainerFaction.OnUnequip(), owner, EClass.pc, Card.RecalculateFOV(), LayerChara.Refresh(), Chara.Refresh(), Card.Say(), WidgetEquip.SetDirty(), LayerInventory.SetDirty(), ElementContainer.SetParent(), BodySlot.thing, and Card.trait.
|
inline |
Definition at line 49 of file CharaBody.cs.
References Card.c_equippedSlot, Thing.isEquipped, slots, and Unequip().
Referenced by CoreDebug.ChangeRace(), Equip(), InvOwner.Grab(), Player.OnStartNewGame(), HotItemEQSet.Perform(), RemoveBodyPartAt(), Card.RemoveThing(), Unequip(), UnequipAll(), and UnqeuipIfTooHeavy().
|
inline |
Definition at line 57 of file CharaBody.cs.
References BodySlot.elementId, slots, and Unequip().
Referenced by Feat.Apply().
|
inline |
Definition at line 196 of file CharaBody.cs.
References Thing.isEquipped, Chara.IsPC, IsTooHeavyToEquip(), owner, Card.Say(), slots, Chara.TryEquip(), and Unequip().
Referenced by ActEffect.Proc().
| Chara CharaBody.owner |
Definition at line 6 of file CharaBody.cs.
Referenced by Equip(), GetMeleeDistance(), GetSortVal(), IsEquippable(), IsTooHeavyToEquip(), SetOwner(), Unequip(), and UnqeuipIfTooHeavy().
| BodySlot CharaBody.slotMainHand |
Definition at line 10 of file CharaBody.cs.
Referenced by AddBodyPart(), Equip(), CharaActorPCC.OnRender(), RefreshBodyParts(), RemoveBodyPartAt(), Chara.RestockEquip(), Chara.ShouldEquip(), and Chara.TryEquip().
| BodySlot CharaBody.slotOffHand |
Definition at line 12 of file CharaBody.cs.
Referenced by AddBodyPart(), Equip(), CharaActorPCC.OnRender(), RefreshBodyParts(), and RemoveBodyPartAt().
| BodySlot CharaBody.slotRange |
Definition at line 14 of file CharaBody.cs.
Referenced by AddBodyPart(), RefreshBodyParts(), and RemoveBodyPartAt().
Definition at line 8 of file CharaBody.cs.
Referenced by AddBodyPart(), ActMelee.Attack(), CoreDebug.ChangeRace(), CountWeapons(), DragItemCard.DragInfo.DragInfo(), GetAttackIndex(), GetAttackStyle(), GetEquippedThing(), GetMeleeDistance(), GetSlot(), GetSortVal(), GetWeight(), HasElement(), HasWeapon(), TraitFoodEggFertilized.Incubate(), Chara.OnSerializing(), Chara.OnSleep(), Player.OnStartNewGame(), TraitAmmo.OnUse(), TraitMannequin.OnUse(), HotItemEQSet.Perform(), AttackProcess.ProcShieldEncs(), RefreshBodyParts(), WindowCharaMini.RefreshEquipment(), LayerEquip.RefreshEquipment(), WidgetEquip.RefreshEquipment(), WindowChara.RefreshEquipment(), HotItemEQSet.Register(), RemoveBodyPart(), RemoveBodyPartAt(), Chara.RemoveLastBodyPart(), Chara.ResetBody(), SetBodyIndexText(), ButtonElement.SetGrid(), SetOwner(), Unequip(), UnequipAll(), UnqeuipIfTooHeavy(), and Element.BonusInfo.WriteNote().
|
get |
Definition at line 16 of file CharaBody.cs.
Referenced by SetOwner().