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)
157 t.c_uidRefCard = c.
uid;
231 if (traitMonsterBall.
chara !=
null)
254 _c.
Kick(p2, ignoreSelf:
true, checkWall:
false);
266 chara.c_originalHostility = c_originalHostility;
275 chara2.c_originalHostility = c_originalHostility;
280 _c.
Talk(
"little_saved");
282 EClass.player.flags.little_saved =
true;
302 Msg.
Say(
"monsterball_invalid");
310 Msg.
Say(
"monsterball_invalid");
318 Msg.
Say(
"monsterball_invalid");
321 if (chara3.
LV > traitMonsterBall.
owner.
LV)
323 Msg.
Say(
"monsterball_lv");
328 Msg.
Say(
"monsterball_hp");
332 Msg.
Say(
"monsterball_capture", c, chara3);
338 Debug.Log(
"Creating Replacement NPC for:" + chara3);
341 traitMonsterBall.chara = chara3;
344 chara3.homeZone =
null;
360 if (!flag &&
Act.
TC !=
null)
365 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
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)
bool HasElement(int ele, int req=1)
SoundSource PlaySound(string id, float v=1f, bool spatial=true)
Card ChangeMaterial(int idNew, bool ignoreFixedMaterial=false)
void Talk(string idTopic, string ref1=null, string ref2=null, bool forceSync=false)
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
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)
void DestroyPath(Point pos)
void Kick(Point p, bool ignoreSelf=false, bool checkWall=true)
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)
bool shiftToUseNegativeAbilityOnSelf
static float rndf(float a)
static SoundManager Sound
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 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)
Card AddCard(Card t, Point point)