Fixes code according to modern code style. Fixes a few expression bugs.
This commit is contained in:
parent
89eea25e5f
commit
970fd563b2
3324 changed files with 441118 additions and 433755 deletions
|
|
@ -1,56 +1,61 @@
|
|||
using Server.Engines.ConPVP;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public abstract class BaseBashing : BaseMeleeWeapon
|
||||
{
|
||||
public override int DefHitSound => 0x233;
|
||||
public override int DefMissSound => 0x239;
|
||||
public abstract class BaseBashing : BaseMeleeWeapon
|
||||
{
|
||||
public BaseBashing(int itemID) : base(itemID)
|
||||
{
|
||||
}
|
||||
|
||||
public override SkillName DefSkill => SkillName.Macing;
|
||||
public override WeaponType DefType => WeaponType.Bashing;
|
||||
public override WeaponAnimation DefAnimation => WeaponAnimation.Bash1H;
|
||||
public BaseBashing(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public BaseBashing( int itemID ) : base( itemID )
|
||||
{
|
||||
}
|
||||
public override int DefHitSound => 0x233;
|
||||
public override int DefMissSound => 0x239;
|
||||
|
||||
public BaseBashing( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
public override SkillName DefSkill => SkillName.Macing;
|
||||
public override WeaponType DefType => WeaponType.Bashing;
|
||||
public override WeaponAnimation DefAnimation => WeaponAnimation.Bash1H;
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
|
||||
writer.Write( (int) 0 ); // version
|
||||
}
|
||||
writer.Write(0); // version
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
|
||||
public override void OnHit( Mobile attacker, Mobile defender, double damageBonus = 1 )
|
||||
{
|
||||
base.OnHit( attacker, defender, damageBonus );
|
||||
public override void OnHit(Mobile attacker, Mobile defender, double damageBonus = 1)
|
||||
{
|
||||
base.OnHit(attacker, defender, damageBonus);
|
||||
|
||||
defender.Stam -= Utility.Random( 3, 3 ); // 3-5 points of stamina loss
|
||||
}
|
||||
defender.Stam -= Utility.Random(3, 3); // 3-5 points of stamina loss
|
||||
}
|
||||
|
||||
public override double GetBaseDamage( Mobile attacker )
|
||||
{
|
||||
double damage = base.GetBaseDamage( attacker );
|
||||
public override double GetBaseDamage(Mobile attacker)
|
||||
{
|
||||
double damage = base.GetBaseDamage(attacker);
|
||||
|
||||
if (!Core.AOS && (attacker.Player || attacker.Body.IsHuman) && Layer == Layer.TwoHanded && attacker.Skills[SkillName.Anatomy].Value >= 80 && (attacker.Skills[SkillName.Anatomy].Value / 400.0) >= Utility.RandomDouble() && Engines.ConPVP.DuelContext.AllowSpecialAbility(attacker, "Crushing Blow", false))
|
||||
{
|
||||
damage *= 1.5;
|
||||
if (!Core.AOS && (attacker.Player || attacker.Body.IsHuman) && Layer == Layer.TwoHanded &&
|
||||
attacker.Skills[SkillName.Anatomy].Value >= 80 &&
|
||||
attacker.Skills[SkillName.Anatomy].Value / 400.0 >= Utility.RandomDouble() &&
|
||||
DuelContext.AllowSpecialAbility(attacker, "Crushing Blow", false))
|
||||
{
|
||||
damage *= 1.5;
|
||||
|
||||
attacker.SendMessage( "You deliver a crushing blow!" ); // Is this not localized?
|
||||
attacker.PlaySound( 0x11C );
|
||||
}
|
||||
attacker.SendMessage("You deliver a crushing blow!"); // Is this not localized?
|
||||
attacker.PlaySound(0x11C);
|
||||
}
|
||||
|
||||
return damage;
|
||||
}
|
||||
}
|
||||
}
|
||||
return damage;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue