#W# Initial Commit: Avatars Conquest
This commit is contained in:
commit
8eae46895e
7512 changed files with 416187 additions and 0 deletions
74
Scripts/Mobiles/Animals/Birds/Bird.cs
Normal file
74
Scripts/Mobiles/Animals/Birds/Bird.cs
Normal file
|
|
@ -0,0 +1,74 @@
|
|||
using System;
|
||||
using Server;
|
||||
using Server.Misc;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
[CorpseName( "a bird corpse" )]
|
||||
public class Bird : BaseCreature
|
||||
{
|
||||
[Constructable]
|
||||
public Bird() : base( AIType.AI_Timid, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
if ( Utility.RandomBool() )
|
||||
{
|
||||
Hue = 0x901;
|
||||
|
||||
switch ( Utility.Random( 3 ) )
|
||||
{
|
||||
case 0: Name = "a crow"; break;
|
||||
case 2: Name = "a raven"; break;
|
||||
case 1: Name = "a magpie"; break;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Hue = Utility.RandomBirdHue();
|
||||
Name = NameList.RandomName( "bird" );
|
||||
}
|
||||
|
||||
Body = 6;
|
||||
BaseSoundID = 0x1B;
|
||||
|
||||
VirtualArmor = Utility.RandomMinMax( 0, 6 );
|
||||
|
||||
SetStr( 10 );
|
||||
SetDex( 25, 35 );
|
||||
SetInt( 10 );
|
||||
|
||||
SetDamage( 0 );
|
||||
|
||||
SetSkill( SkillName.HandToHand, 4.2, 6.4 );
|
||||
SetSkill( SkillName.Tactics, 4.0, 6.0 );
|
||||
SetSkill( SkillName.MagicResist, 4.0, 5.0 );
|
||||
|
||||
Fame = 0;
|
||||
Karma = 0;
|
||||
}
|
||||
|
||||
public override MeatType MeatType{ get{ return MeatType.Bird; } }
|
||||
public override int Meat{ get{ return 1; } }
|
||||
public override int Feathers{ get{ return 25; } }
|
||||
|
||||
public Bird( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
|
||||
writer.Write( (int) 0 );
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
|
||||
int version = reader.ReadInt();
|
||||
|
||||
if ( Hue == 0 )
|
||||
Hue = Utility.RandomBirdHue();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue