2using System.Collections.Generic;
50 FindRanged(hotbar:
true);
61 owner.ranged = ranged;
66 void FindRanged(
bool hotbar)
93 List<int> list =
new List<int>();
108 if (config.bUseHotBar)
112 Element element = owner.elements.GetElement(
item.c_idAbility);
113 if (element !=
null && func(element) && (element.
id != 9150 ||
EClass.
player.
favAbility.Contains(element.
id)) && !list.Contains(element.
id))
115 AddAbility(element.
act, 15);
119 if (!config.bUseInventory)
123 foreach (
Element value
in owner.elements.dict.Values)
127 AddAbility(value.
act);
134 base.BuildAbilityList();
135 GetAbilities((
Element e) => e.
source.abilityType.Length != 0);
146 if (condition !=
null && condition.
value <= 3)
148 Msg.
Say(
"abort_sentense");
bool IsCriticallyWounded(bool includeRide=false)
Thing FindAmmo(Thing weapon)
bool CanEquipRanged(Thing t)
Color colorActCriticalWarning
static ColorProfile Colors
ConfigAutoCombat autoCombat
override Thing RenderThing
override bool TryAbortCombat()
override bool TryUseRanged(int dist)
override Color GetActPlanColor()
List< Chara > listHealthy
override void BuildAbilityList()
void GetAbilities(Func< Element, bool > func)
static string Say(string idLang, string ref1, string ref2=null, string ref3=null, string ref4=null)
bool IsCriticallyWounded(bool includePc=false)
HashSet< int > favAbility
void Foreach(Action< Thing > action, bool onlyAccessible=true)