9 public override int MaxRadius
19 public override int PerformDistance
38 public override bool Perform()
40 Act.CC.Say(
"zapRod",
Act.CC,
this.trait.owner.Name,
null);
41 if (this.trait.owner.c_charges > 0)
43 this.trait.owner.ModCharge(-1,
false);
44 Act.CC.PlayEffect(
"rod",
true, 0f,
default(Vector3));
45 Act.CC.PlaySound(
"rod", 1f,
true);
47 EffectId idEffect = this.trait.IdEffect;
48 int power = this.trait.Power * (100 +
Act.CC.Evalue(305) * 10 +
Act.CC.MAG / 2 +
Act.CC.PER / 2) / 100;
49 ActEffect.ProcAt(idEffect, power, this.trait.owner.blessedState,
Act.CC,
null,
Act.TP,
this.trait.IsNegative,
new ActRef
51 aliasEle = this.trait.aliasEle,
53 act = ((this.trait.source != null) ? ACT.Create(this.trait.source) : null)
55 if (
Act.CC.IsPC && (idEffect == EffectId.Identify || idEffect == EffectId.GreaterIdentify))
57 this.trait.owner.Thing.Identify(
Act.CC.IsPCParty, IDTSource.Identify);
59 Act.CC.ModExp(305, 50);
62 Act.CC.Say(
"nothingHappens",
null,
null);
63 Act.CC.PlaySound(
"rod_empty", 1f,
true);