12 return EClass.game.config.autoCombat;
18 public int RandomFacotr
40 if (this.sourceChara.aiParam.Length < 1)
42 return this.source.dist;
44 return this.sourceChara.aiParam[0];
56 return this.source.movePC;
58 if (this.sourceChara.aiParam.Length < 2)
60 return this.source.move;
62 return this.sourceChara.aiParam[1];
68 public int ChanceSecondMove
76 if (this.sourceChara.aiParam.Length < 3)
80 return this.sourceChara.aiParam[2];
90 return this.source.party;
100 if (!this.owner.IsPC)
104 return this.source.melee;
114 if (!this.owner.IsPC)
118 return this.source.range;
128 return this.source.heal;
138 if (!this.owner.IsPC)
142 return this.source.spell;
152 return this.source.buff;
162 return this.source.debuff;
172 return this.source.summon;
178 public bool CastPartyBuff
182 if (!this.owner.IsPC)
184 return this.source.tag.Contains(
"pt");
192 public int AbilityChance
200 if (!this.owner.IsPCParty)
210 public int RangedChance
218 if (!this.owner.IsPCParty)
230 if (c.c_genes !=
null)
232 foreach (
DNA dna
in c.c_genes.items)
234 if (dna.type ==
DNA.Type.Brain && !dna.id.IsEmpty())
237 string tactics = row.tactics;
240 if ((defaultStr = ((row2 !=
null) ? row2.id :
null)) ==
null)
243 defaultStr = (((row3 !=
null) ? row3.id :
null) ??
"predator");
245 string key = tactics.IsEmpty(defaultStr);
246 this.source =
EClass.sources.tactics.map[key];
247 this.sourceChara = row;
252 if (this.source ==
null)
257 string tactics2 = c.source.tactics;
260 if ((defaultStr2 = ((row4 !=
null) ? row4.id :
null)) ==
null)
263 defaultStr2 = (((row5 !=
null) ? row5.id :
null) ??
"predator");
265 text = tactics2.IsEmpty(defaultStr2);
272 this.source =
EClass.sources.tactics.map[key2];
273 this.sourceChara = c.source;