15 public override string GetText(
string str =
"")
20 text =
" " +
"mb_invalidLV".lang();
22 return base.GetText(str) + text;
85 if (
card !=
null &&
card.IsPCFactionOrMinion)
98 if (randomPoint !=
null && !randomPoint.
Equals(c.
pos))
117 c.
Talk(
"snow_throw");
143 if ((uint)(throwType - 1) <= 1u)
153 t.c_uidRefCard = c.
uid;
227 if (traitMonsterBall.
chara !=
null)
241 chara.c_originalHostility = c_originalHostility;
246 _c.
Talk(
"little_saved");
248 EClass.player.flags.little_saved =
true;
268 Msg.
Say(
"monsterball_invalid");
276 Msg.
Say(
"monsterball_invalid");
279 if (chara2.
LV > traitMonsterBall.
owner.
LV)
281 Msg.
Say(
"monsterball_lv");
286 Msg.
Say(
"monsterball_hp");
290 Msg.
Say(
"monsterball_capture", c, chara2);
296 Debug.Log(
"Creating Replacement NPC for:" + chara2);
299 traitMonsterBall.chara = chara2;
301 chara2.homeZone =
null;
311 if (!flag &&
Act.
TC !=
null)
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
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)
virtual void Die(Element e=null, Card origin=null, AttackSource attackSource=AttackSource.None)
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 MakeAlly(bool msg=true)
void GiveGift(Chara c, Thing t)
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)
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)
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 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
Card AddCard(Card t, Point point)