8 public override bool CanAutofire
18 public virtual bool NeedAmmo
32 return (base.GetParam(1,
null) ??
"12").ToInt() * (100 + this.owner.Evalue(600) * 5) / 100;
42 return (base.GetParam(2,
null) ??
"4").ToInt() * 100 / (100 + this.owner.Evalue(601) * 10);
48 public virtual Element WeaponSkill
58 public virtual bool NeedReload
67 public virtual bool IsAmmo(
Thing t)
78 Thing thing = this.owner.Thing;
83 return thing.source.range;
88 public override void OnCreate(
int lv)
90 this.owner.c_ammo = this.MaxAmmo;
94 public override void SetMainText(UIText t,
bool hotitem)
98 string text = this.owner.c_ammo.ToString() +
"/" + this.MaxAmmo.ToString();
99 t.SetText(text ??
"", FontColor.Charge);
103 base.SetMainText(t, hotitem);