1using System.Collections.Generic;
44 return base.GetTextSmall(c);
84 return base.CanPerform();
92 public bool Attack(
float dmgMulti = 1f,
bool maxRoll =
false)
94 Act.CC.combatCount = 10;
112 if (effect !=
null && effect.
id == 6 &&
EClass.
rnd(2) == 0)
119 bool usedWeapon =
false;
120 bool usedTalisman =
false;
168 if (dist <= 1 || dist <= num)
178 int num2 = GetWeaponEnc(606, addSelfEnc:
false);
179 int scatter = GetWeaponEnc(607, addSelfEnc:
false);
180 splash = GetWeaponEnc(608, addSelfEnc:
true);
181 chaser = GetWeaponEnc(620, addSelfEnc:
true);
182 flurry = GetWeaponEnc(621, addSelfEnc:
true);
183 frustration = GetWeaponEnc(624, addSelfEnc:
true);
184 int num3 = GetWeaponEnc(622, addSelfEnc:
true);
185 feint = GetWeaponEnc(623, addSelfEnc:
true);
187 AttackWithFlurry(
Act.
TC,
Act.
TP, 1f, subAttack:
false);
192 if (!
item.Equals(orgPos))
197 AttackWithFlurry(firstChara,
item, 1f, subAttack:
false);
202 else if (scatter > 0)
208 Chara firstChara2 = p.FirstChara;
209 if (firstChara2 != null && firstChara2.IsHostile(Act.CC))
211 AttackWithFlurry(firstChara2, p, Mathf.Min(0.5f + 0.05f * Mathf.Sqrt(scatter), 1f + 0.01f * Mathf.Sqrt(scatter)), subAttack: true);
218 List<Point> list =
new List<Point>();
225 for (
int i = 0; i < 9 && num3 >
EClass.
rnd(10 + (
int)Mathf.Pow(3f, i + 2)); i++)
229 foreach (
Point item2
in list)
239 AttackWithFlurry(item3, item2, 1f, subAttack:
true);
256 for (
int j = 0; j < 10; j++)
258 if (chaser >
EClass.
rnd(4 + (
int)Mathf.Pow(4f, j + 2)))
265 for (
int k = 0; k < num5; k++)
272 if (!flag && frustration > 0 && 10f + 2f * Mathf.Sqrt(frustration) > (
float)
EClass.
rnd(100))
274 AttackProcess.Current.critFury =
true;
276 AttackProcess.Current.critFury =
false;
286 TraitAmmo traitAmmo = ((w.ammoData ==
null) ?
null : (w.ammoData.trait as
TraitAmmo));
307 if (w.ammoData !=
null)
309 w.ammoData.Num = w.c_ammo;
323 if (feint > 0 && 10f + 4f * Mathf.Sqrt(feint) > (float)
EClass.
rnd(100))
353 void AttackWithFlurry(
Card _tc,
Point _tp,
float mtp,
bool subAttack)
358 for (
int l = 0; l < 10 && flurry >
EClass.
rnd(25 + (
int)Mathf.Pow(5f, l + 2)); l++)
363 for (
int m = 0; m < num6; m++)
377 Attack(_tc, _tp, mtp, subAttack);
380 int GetWeaponEnc(
int ele,
bool addSelfEnc)
static Act Create(int id)
bool Attack(float dmgMulti=1f, bool maxRoll=false)
override CursorInfo GetCursorIcon(Card c)
override bool CanPerform()
override string GetTextSmall(Card c)
override bool CanPressRepeat
override string GetHintText(string str="")
override int PerformDistance
override bool ShowMouseHint(Card c)
static bool TryReload(Thing weapon, Thing ammo=null)
void Prepare(Chara _CC, Thing _weapon, Card _TC=null, Point _TP=null, int _attackIndex=0, bool _isThrow=false)
bool Perform(int count, bool hasHit, float dmgMulti=1f, bool maxRoll=false, bool subAttack=false)
static AttackProcess Current
int GetRawDamage(float dmgMulti, bool crit, bool maxRoll)
void PlayAnime(AnimeID id, bool force)
ElementContainerCard elements
void DamageHP(int dmg, AttackSource attackSource=AttackSource.None, Card origin=null)
SoundSource PlaySound(string id, float v=1f, bool spatial=true)
virtual int ApplyProtection(int dmg, int mod=100)
virtual bool IsAliveInCurrentZone
void ModExp(string alias, int a)
void Say(string lang, string ref1=null, string ref2=null)
override bool IsAliveInCurrentZone
Condition AddCondition(string id, int p=100, bool force=false)
bool CanSeeLos(Card c, int dist=-1)
bool HasCondition(string alias)
bool CanInteractTo(Card c)
void DoHostileAction(Card _tg, bool immediate=false)
void RequestProtection(Chara attacker, Action< Chara > action)
override void LookAt(Card c)
static CursorInfo IconMelee
static void Wait(float a, Card c)
int GetSpellExp(Chara c, Element e, int costMod=100)
Element GetElement(string alias)
ElementContainerFaction charaElements
static void SetDirty(Thing t)
List< Point > ListPointsInLine(Point center, Point to, int radius)
List< Card > ListCards(bool includeMasked=false)
void ForeachNeighbor(Action< Point > action, bool diagonal=true)
bool Equals(int _x, int _z)
Effect PlayEffect(string id)
void Animate(AnimeID id, bool animeBlock=false)
virtual bool CanBeAttacked