15 public override string GetText(
string str =
"")
23 text =
" " +
"mb_invalidLV".lang();
26 return base.GetText(str) + text;
89 if (
card !=
null &&
card.IsPCFactionOrMinion)
102 if (randomPoint !=
null && !randomPoint.
Equals(c.
pos))
121 c.
Talk(
"snow_throw");
154 if ((uint)(throwType - 1) <= 1u)
168 t.c_uidRefCard = c.
uid;
245 if (traitMonsterBall.
chara !=
null)
268 _c.
Kick(p2, ignoreSelf:
true, checkWall:
false);
274 if ((traitMonsterBall.
IsSilvercatBall || _c.
id ==
"cat_silver") && EClass._zone.id ==
"startVillage2")
280 chara.c_originalHostility = c_originalHostility;
290 chara2.c_originalHostility = c_originalHostility;
299 chara3.c_originalHostility = c_originalHostility;
304 _c.
Talk(
"little_saved");
306 EClass.player.flags.little_saved =
true;
326 Msg.
Say(
"monsterball_invalid");
334 Msg.
Say(
"monsterball_invalid");
342 Msg.
Say(
"monsterball_invalid");
345 chara4.
SetBool(132, enable:
true);
351 Msg.
Say(
"monsterball_invalid");
354 if (chara4.
LV > traitMonsterBall.
owner.
LV)
356 Msg.
Say(
"monsterball_lv");
361 Msg.
Say(
"monsterball_hp");
365 Msg.
Say(
"monsterball_capture", c, chara4);
371 Debug.Log(
"Creating Replacement NPC for:" + chara4);
374 traitMonsterBall.chara = chara4;
377 chara4.homeZone =
null;
392 if (!flag &&
Act.
TC !=
null)
397 AttackProcess.Current.critFury =
true;
static EffectIRenderer Throw(Card c, Point p, Thing t, ThrowMethod method=ThrowMethod.Default, float failChance=0f)
override bool CanPerform()
override int PerformDistance
override string GetText(string str="")
static bool CanThrow(Chara c, Thing t, Card target, Point p=null)
static EffectIRenderer Throw(Card c, Point p, Card target, Thing t, ThrowMethod method=ThrowMethod.Default)
override bool CanPressRepeat
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
void SetBool(int id, bool enable)
List< Action > actionsNextFrame
virtual MoveResult _Move(Point p, MoveType type=MoveType.Walk)
bool IsRestrainedResident
virtual void Die(Element e=null, Card origin=null, AttackSource attackSource=AttackSource.None, Chara originalTarget=null)
SoundSource PlaySound(string id, float v=1f, bool spatial=true)
Card ChangeMaterial(int idNew, bool ignoreFixedMaterial=false)
virtual void SetDir(int d)
void Talk(string idTopic, string ref1=null, string ref2=null, bool forceSync=false)
void Kick(Point p, bool ignoreSelf=false, bool checkWall=true)
void ForeachPoint(Action< Point, bool > action)
virtual void LookAt(Card c)
Effect PlayEffect(string id, bool useRenderPos=true, float range=0f, Vector3 fix=default(Vector3))
virtual bool IsAliveInCurrentZone
void ModExp(string alias, int a)
SourceCategory.Row category
bool HasElement(int ele, bool includeNagative=false)
void Say(string lang, string ref1=null, string ref2=null)
Chara CreateReplacement()
Condition AddCondition(string id, int p=100, bool force=false)
bool CanSeeLos(Card c, int dist=-1)
ConTransmuteMimic mimicry
void DestroyPath(Point pos)
void MakeAlly(bool msg=true)
void GiveGift(Chara c, Thing t)
override bool IsMultisize
void DoHostileAction(Card _tg, bool immediate=false)
Thing Pick(Thing t, bool msg=true, bool tryStack=true)
void OnGiveErohon(Thing t)
virtual void RevealMimicry(Card c, bool surprise)
bool shiftToUseNegativeAbilityOnSelf
static float rndf(float a)
EffectIRenderer Play(Card _card, Card _origin, Vector3 _to)
static Effect Get(Effect original)
static string Say(string idLang, string ref1, string ref2=null, string ref3=null, string ref4=null)
Point Set(int _x, int _z)
void ModFire(int value, bool extinguish=false)
bool Equals(int _x, int _z)
List< Chara > ListCharas()
Point GetRandomPoint(int radius, bool requireLos=true, bool allowChara=true, bool allowBlocked=false, int tries=100)
static TargetTypeGround Ground
override string GetName(NameStyle style, int _num=-1)
virtual bool IsSilvercatBall
virtual bool IsDuponneBall
virtual bool IsLittleBall
virtual bool CanExtendBuild
virtual bool CanBeAttacked
virtual void OnThrowGround(Chara c, Point p)
virtual bool CanBeDestroyed
virtual void OnDrink(Chara c)
virtual bool CanDrink(Chara c)
virtual ThrowType ThrowType
virtual bool CanOnlyCarry
void SetBGM(List< int > ids, bool refresh=true, float fadeDuration=0f)
Card AddCard(Card t, Point point)