public override void OnDoubleClick(Mobile from) { if (Parent != from) { from.SendLocalizedMessage(1116250); // That must be equipped before you can use it. } else if (ChargeTime > 0) { from.SendLocalizedMessage(1074882, ChargeTime.ToString()); // You must wait ~1_val~ seconds for this to recharge. } else if (SpellHelper.CheckTown(from.Location, from)) { MeteorSwarmSpell spell = new MeteorSwarmSpell(from, null, this); spell.Cast(); } }
public override Dictionary <string, object> SaveToDict() { var dict = new Dictionary <string, object>(); dict.Add(GDMConstants.SchemaKey, "Weapon"); dict.Merge(true, ID.ToGDEDict(IDKey)); dict.Merge(true, MagazineSize.ToGDEDict(MagazineSizeKey)); dict.Merge(true, ConsumePerHit.ToGDEDict(ConsumePerHitKey)); dict.Merge(true, DamageVal.ToGDEDict(DamageValKey)); dict.Merge(true, AtkInterval.ToGDEDict(AtkIntervalKey)); dict.Merge(true, ChargeTime.ToGDEDict(ChargeTimeKey)); dict.Merge(true, ReloadTime.ToGDEDict(ReloadTimeKey)); dict.Merge(true, Thrust.ToGDEDict(ThrustKey)); dict.Merge(true, AlertRange.ToGDEDict(AlertRangeKey)); dict.Merge(true, PrefabPath.ToGDEDict(PrefabPathKey)); dict.Merge(true, SkinName.ToGDEDict(SkinNameKey)); dict.Merge(true, OpaType.ToGDEDict(OpaTypeKey)); dict.Merge(true, AniType.ToGDEDict(AniTypeKey)); return(dict); }