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
|
|
@ -2,112 +2,116 @@ using Server.Items;
|
|||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class FleshRenderer : BaseCreature
|
||||
{
|
||||
public override string CorpseName => "a fleshrenderer corpse";
|
||||
public override WeaponAbility GetWeaponAbility() => Utility.RandomBool() ? WeaponAbility.Dismount : WeaponAbility.ParalyzingBlow;
|
||||
public class FleshRenderer : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public FleshRenderer() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
|
||||
{
|
||||
Body = 315;
|
||||
|
||||
public override bool IgnoreYoungProtection => Core.ML;
|
||||
SetStr(401, 460);
|
||||
SetDex(201, 210);
|
||||
SetInt(221, 260);
|
||||
|
||||
public override string DefaultName => "a fleshrenderer";
|
||||
SetHits(4500);
|
||||
|
||||
[Constructible]
|
||||
public FleshRenderer() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
Body = 315;
|
||||
SetDamage(16, 20);
|
||||
|
||||
SetStr( 401, 460 );
|
||||
SetDex( 201, 210 );
|
||||
SetInt( 221, 260 );
|
||||
SetDamageType(ResistanceType.Physical, 80);
|
||||
SetDamageType(ResistanceType.Poison, 20);
|
||||
|
||||
SetHits( 4500 );
|
||||
SetResistance(ResistanceType.Physical, 80, 90);
|
||||
SetResistance(ResistanceType.Fire, 50, 60);
|
||||
SetResistance(ResistanceType.Cold, 50, 60);
|
||||
SetResistance(ResistanceType.Poison, 100);
|
||||
SetResistance(ResistanceType.Energy, 70, 80);
|
||||
|
||||
SetDamage( 16, 20 );
|
||||
SetSkill(SkillName.DetectHidden, 80.0);
|
||||
SetSkill(SkillName.MagicResist, 155.1, 160.0);
|
||||
SetSkill(SkillName.Meditation, 100.0);
|
||||
SetSkill(SkillName.Tactics, 100.0);
|
||||
SetSkill(SkillName.Wrestling, 90.1, 100.0);
|
||||
|
||||
SetDamageType( ResistanceType.Physical, 80 );
|
||||
SetDamageType( ResistanceType.Poison, 20 );
|
||||
Fame = 23000;
|
||||
Karma = -23000;
|
||||
|
||||
SetResistance( ResistanceType.Physical, 80, 90 );
|
||||
SetResistance( ResistanceType.Fire, 50, 60 );
|
||||
SetResistance( ResistanceType.Cold, 50, 60 );
|
||||
SetResistance( ResistanceType.Poison, 100 );
|
||||
SetResistance( ResistanceType.Energy, 70, 80 );
|
||||
VirtualArmor = 24;
|
||||
}
|
||||
|
||||
SetSkill( SkillName.DetectHidden, 80.0 );
|
||||
SetSkill( SkillName.MagicResist, 155.1, 160.0 );
|
||||
SetSkill( SkillName.Meditation, 100.0 );
|
||||
SetSkill( SkillName.Tactics, 100.0 );
|
||||
SetSkill( SkillName.Wrestling, 90.1, 100.0 );
|
||||
public FleshRenderer(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
Fame = 23000;
|
||||
Karma = -23000;
|
||||
public override string CorpseName => "a fleshrenderer corpse";
|
||||
|
||||
VirtualArmor = 24;
|
||||
}
|
||||
public override bool IgnoreYoungProtection => Core.ML;
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot( LootPack.UltraRich, 2 );
|
||||
}
|
||||
public override string DefaultName => "a fleshrenderer";
|
||||
|
||||
public override void OnDeath( Container c )
|
||||
{
|
||||
base.OnDeath( c );
|
||||
public override bool AutoDispel => true;
|
||||
public override bool BardImmune => !Core.SE;
|
||||
public override bool Unprovokable => Core.SE;
|
||||
public override bool AreaPeaceImmune => Core.SE;
|
||||
public override Poison PoisonImmune => Poison.Lethal;
|
||||
|
||||
if ( !Summoned && !NoKillAwards && DemonKnight.CheckArtifactChance( this ) )
|
||||
DemonKnight.DistributeArtifact( this );
|
||||
}
|
||||
public override int TreasureMapLevel => 1;
|
||||
|
||||
public override bool AutoDispel => true;
|
||||
public override bool BardImmune => !Core.SE;
|
||||
public override bool Unprovokable => Core.SE;
|
||||
public override bool AreaPeaceImmune => Core.SE;
|
||||
public override Poison PoisonImmune => Poison.Lethal;
|
||||
public override WeaponAbility GetWeaponAbility()
|
||||
{
|
||||
return Utility.RandomBool() ? WeaponAbility.Dismount : WeaponAbility.ParalyzingBlow;
|
||||
}
|
||||
|
||||
public override int TreasureMapLevel => 1;
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.UltraRich, 2);
|
||||
}
|
||||
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x34C;
|
||||
}
|
||||
public override void OnDeath(Container c)
|
||||
{
|
||||
base.OnDeath(c);
|
||||
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x354;
|
||||
}
|
||||
if (!Summoned && !NoKillAwards && DemonKnight.CheckArtifactChance(this))
|
||||
DemonKnight.DistributeArtifact(this);
|
||||
}
|
||||
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 0x34C;
|
||||
}
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x34C;
|
||||
}
|
||||
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x34C;
|
||||
}
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x354;
|
||||
}
|
||||
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x354;
|
||||
}
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 0x34C;
|
||||
}
|
||||
|
||||
public FleshRenderer( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x34C;
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
writer.Write( (int) 0 );
|
||||
}
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x354;
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
int version = reader.ReadInt();
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
writer.Write(0);
|
||||
}
|
||||
|
||||
if ( BaseSoundID == 660 )
|
||||
BaseSoundID = -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
int version = reader.ReadInt();
|
||||
|
||||
if (BaseSoundID == 660)
|
||||
BaseSoundID = -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue