Elin Decompiled Documentation EA 23.130 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 secondSlot=false) |
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) |
Public Attributes | |
Chara | owner |
List< BodySlot > | slots = new List<BodySlot>() |
BodySlot | slotMainHand |
BodySlot | slotOffHand |
BodySlot | slotRange |
Properties | |
int[] | rawSlots [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] |
Additional Inherited Members | |
![]() | |
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) |
![]() | |
static Core | core |
Definition at line 4 of file CharaBody.cs.
|
inline |
Definition at line 261 of file CharaBody.cs.
References item, slotMainHand, slotOffHand, slotRange, and slots.
Referenced by Chara.AddRandomBodyPart(), DNA.Apply(), Chara.ApplyRace(), CoreDebug.ChangeRace(), Player.CreateEquip(), Chara.ResetBody(), and SetOwner().
Definition at line 182 of file CharaBody.cs.
References Card.AddCard(), Card.blessedState, Card.category, Faction.charaElements, EClass.core, Debug, BodySlot.elementId, Card.elements, Card.Evalue(), Chara.faction, GetSlot(), Card.HasElement(), Chara.isCreated, IsEquippable(), Core.IsGameStarted, Chara.IsPC, Trait.OnEquip(), ElementContainerFaction.OnEquip(), owner, Card.parent, EClass.pc, Card.PlaySound(), Card.RecalculateFOV(), LayerChara.Refresh(), Chara.Refresh(), Msg.Say(), Card.Say(), WidgetEquip.SetDirty(), LayerInventory.SetDirty(), ElementContainer.SetParent(), Chara.SetTempHand(), slotMainHand, slotOffHand, BodySlot.thing, Card.trait, and Unequip().
Referenced by CoreDebug.ChangeRace(), Chara.EQ_CAT(), Chara.EQ_ID(), InvOwner.ListInteractions(), InvOwner.OnDrag(), TraitMannequin.OnUse(), HotItemEQSet.Perform(), InvOwner.PutBack(), AI_Equip.Run(), and Chara.TryEquip().
|
inline |
Definition at line 403 of file CharaBody.cs.
References BodySlot.elementId, slots, Thing.source, and BodySlot.thing.
|
inline |
Definition at line 433 of file CharaBody.cs.
References BodySlot.elementId, Card.IsMeleeWeapon, slots, and BodySlot.thing.
Referenced by Chara.CalcCastingChance(), Card.DamageHP(), AttackProcess.Prepare(), WindowCharaMini.Refresh(), and WindowChara.RefreshProfile().
|
inline |
Definition at line 466 of file CharaBody.cs.
Referenced by AttackProcess.Perform().
|
inline |
Definition at line 378 of file CharaBody.cs.
References BodySlot.elementId, slots, and BodySlot.thing.
Referenced by QuestCrafter.CanUpdateOnTalk(), Card.GetLightRadius(), and CoreDebug.QuickStart().
|
inline |
Definition at line 420 of file CharaBody.cs.
References BodySlot.elementId, Card.Evalue(), owner, slots, and BodySlot.thing.
Referenced by GoalCombat.TryUseAbility().
|
inline |
Definition at line 361 of file CharaBody.cs.
References BodySlot.elementId, slots, and BodySlot.thing.
Definition at line 347 of file CharaBody.cs.
References Card.category, and GetSlot().
Referenced by Chara.EQ_CAT(), Chara.EQ_ID(), Equip(), GetSlot(), InvOwner.ListInteractions(), HotItemEQSet.Perform(), Chara.RefreshSpeed(), Chara.ShouldEquip(), and Chara.TryEquip().
|
inline |
Definition at line 476 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 390 of file CharaBody.cs.
References Card.ChildrenAndSelfWeight, BodySlot.elementId, slots, and BodySlot.thing.
Referenced by Chara.GetArmorSkill(), WindowCharaMini.Refresh(), and WindowChara.RefreshProfile().
Definition at line 106 of file CharaBody.cs.
References Card.blessedState, EClass.core, BodySlot.element, BodySlot.elementId, Card.HasElement(), Core.IsGameStarted, Chara.IsPC, IsTooHeavyToEquip(), owner, Msg.Say(), and BodySlot.thing.
Referenced by Equip(), InvOwner.OnDrag(), and Chara.ShouldEquip().
|
inline |
Definition at line 156 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 287 of file CharaBody.cs.
References BodySlot.elementId, slotMainHand, slotOffHand, slotRange, slots, and BodySlot.thing.
Referenced by DNA.Apply(), Chara.ApplyRace(), and Chara.ResetBody().
|
inline |
Definition at line 316 of file CharaBody.cs.
References BodySlot.elementId, RemoveBodyPartAt(), and slots.
Referenced by DNA.Apply(), Chara.ApplyRace(), CoreDebug.ChangeRace(), and Chara.ResetBody().
|
inline |
Definition at line 322 of file CharaBody.cs.
References slotMainHand, slotOffHand, slotRange, slots, BodySlot.thing, and Unequip().
Referenced by RemoveBodyPart(), and Chara.RemoveLastBodyPart().
Definition at line 481 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 Faction.charaElements, EClass.core, 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 165 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 Thing.AddAttackEvaluation(), AddBodyPart(), ActMelee.Attack(), CoreDebug.ChangeRace(), DragItemCard.DragInfo.DragInfo(), GetAttackIndex(), GetAttackStyle(), Element.GetCost(), GetEquippedThing(), GetMeleeDistance(), GetSlot(), GetSortVal(), GetWeight(), TraitFoodEggFertilized.Incubate(), Chara.OnSerializing(), Player.OnStartNewGame(), TraitAmmo.OnUse(), TraitMannequin.OnUse(), HotItemEQSet.Perform(), 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().