13 return this.owner.GetObj<
Chara>(8);
17 this.owner.SetObj(8, value);
23 public override bool IsThrowMainAction
33 public override ThrowType ThrowType
37 return ThrowType.MonsterBall;
43 public override EffectDead EffectDead
47 return EffectDead.None;
53 public virtual bool IsLittleBall
62 public override void OnCreate(
int lv)
64 if (!this.IsLittleBall)
66 this.owner.SetLv(1 +
EClass.rnd(lv + 10));
71 public override bool CanStackTo(
Thing to)
73 return to.GetObj<
Chara>(8) ==
null && this.chara ==
null && to.LV ==
this.owner.LV;
77 public override void SetName(ref
string s)
79 s = (this.IsLittleBall ?
"_littleBall" :
"_monsterball").lang(s, this.owner.LV.ToString() ??
"", (
this.chara ==
null) ?
"_monsterball_empty".lang() :
this.chara.Name,
null,
null);
83 public override int GetValue()
85 if (this.IsLittleBall)
87 return base.GetValue();
89 return base.GetValue() * (100 + this.owner.LV * 15) / 100;