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");
147 if ((uint)(throwType - 1) <= 1u)
161 t.c_uidRefCard = c.
uid;
238 if (traitMonsterBall.
chara !=
null)
261 _c.
Kick(p2, ignoreSelf:
true, checkWall:
false);
267 if ((traitMonsterBall.
IsSilvercatBall || _c.
id ==
"cat_silver") && EClass._zone.id ==
"startVillage2")
273 chara.c_originalHostility = c_originalHostility;
283 chara2.c_originalHostility = c_originalHostility;
292 chara3.c_originalHostility = c_originalHostility;
297 _c.
Talk(
"little_saved");
299 EClass.player.flags.little_saved =
true;
319 Msg.
Say(
"monsterball_invalid");
327 Msg.
Say(
"monsterball_invalid");
335 Msg.
Say(
"monsterball_invalid");
338 chara4.
SetBool(132, enable:
true);
344 Msg.
Say(
"monsterball_invalid");
347 if (chara4.
LV > traitMonsterBall.
owner.
LV)
349 Msg.
Say(
"monsterball_lv");
354 Msg.
Say(
"monsterball_hp");
358 Msg.
Say(
"monsterball_capture", c, chara4);
364 Debug.Log(
"Creating Replacement NPC for:" + chara4);
367 traitMonsterBall.chara = chara4;
370 chara4.homeZone =
null;
385 if (!flag &&
Act.
TC !=
null)
390 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)