#W# Initial Commit: Avatars Conquest
This commit is contained in:
commit
5df497787a
7510 changed files with 416048 additions and 0 deletions
60
Scripts/Items/Weapons/Maces/BaseBashing.cs
Normal file
60
Scripts/Items/Weapons/Maces/BaseBashing.cs
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
using System;
|
||||
using Server;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public abstract class BaseBashing : BaseMeleeWeapon
|
||||
{
|
||||
public override int DefHitSound{ get{ return 0x233; } }
|
||||
public override int DefMissSound{ get{ return 0x239; } }
|
||||
|
||||
public override SkillName DefSkill{ get{ return SkillName.Bludgeoning; } }
|
||||
public override WeaponType DefType{ get{ return WeaponType.Bashing; } }
|
||||
public override WeaponAnimation DefAnimation{ get{ return WeaponAnimation.Bash1H; } }
|
||||
|
||||
public BaseBashing( int itemID ) : base( itemID )
|
||||
{
|
||||
}
|
||||
|
||||
public BaseBashing( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
|
||||
writer.Write( (int) 0 ); // version
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
|
||||
public override void OnHit( Mobile attacker, Mobile defender, double damageBonus )
|
||||
{
|
||||
base.OnHit( attacker, defender, damageBonus );
|
||||
|
||||
defender.Stam -= Utility.Random( 3, 3 ); // 3-5 points of stamina loss
|
||||
}
|
||||
|
||||
public override double GetBaseDamage( Mobile attacker )
|
||||
{
|
||||
double damage = base.GetBaseDamage( attacker );
|
||||
|
||||
if ( (attacker.Player || attacker.Body.IsHuman) && Layer == Layer.TwoHanded && (attacker.Skills[SkillName.Tactics].Value / 400.0) >= Utility.RandomDouble() )
|
||||
{
|
||||
damage *= 1.5;
|
||||
|
||||
attacker.SendMessage( "You deliver a crushing blow!" ); // Is this not localized?
|
||||
attacker.PlaySound( 0x11C );
|
||||
}
|
||||
|
||||
return damage;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue