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,95 +1,95 @@
|
|||
namespace Server.Mobiles
|
||||
{
|
||||
public class MasterJonath : BoneMagi
|
||||
{
|
||||
public override string CorpseName => "a Master Jonath corpse";
|
||||
public override string DefaultName => "Master Jonath";
|
||||
public class MasterJonath : BoneMagi
|
||||
{
|
||||
[Constructible]
|
||||
public MasterJonath()
|
||||
{
|
||||
IsParagon = true;
|
||||
|
||||
[Constructible]
|
||||
public MasterJonath()
|
||||
{
|
||||
IsParagon = true;
|
||||
Hue = 0x455;
|
||||
|
||||
Hue = 0x455;
|
||||
SetStr(109, 131);
|
||||
SetDex(98, 110);
|
||||
SetInt(232, 259);
|
||||
|
||||
SetStr( 109, 131 );
|
||||
SetDex( 98, 110 );
|
||||
SetInt( 232, 259 );
|
||||
SetHits(766, 920);
|
||||
|
||||
SetHits( 766, 920 );
|
||||
SetDamage(10, 15);
|
||||
|
||||
SetDamage( 10, 15 );
|
||||
SetDamageType(ResistanceType.Physical, 100);
|
||||
|
||||
SetDamageType( ResistanceType.Physical, 100 );
|
||||
SetResistance(ResistanceType.Physical, 55, 60);
|
||||
SetResistance(ResistanceType.Fire, 43, 49);
|
||||
SetResistance(ResistanceType.Cold, 45, 80);
|
||||
SetResistance(ResistanceType.Poison, 41, 45);
|
||||
SetResistance(ResistanceType.Energy, 54, 55);
|
||||
|
||||
SetResistance( ResistanceType.Physical, 55, 60 );
|
||||
SetResistance( ResistanceType.Fire, 43, 49 );
|
||||
SetResistance( ResistanceType.Cold, 45, 80 );
|
||||
SetResistance( ResistanceType.Poison, 41, 45 );
|
||||
SetResistance( ResistanceType.Energy, 54, 55 );
|
||||
SetSkill(SkillName.Wrestling, 80.5, 88.6);
|
||||
SetSkill(SkillName.Tactics, 88.5, 95.1);
|
||||
SetSkill(SkillName.MagicResist, 102.7, 102.9);
|
||||
SetSkill(SkillName.Magery, 100.0, 106.6);
|
||||
SetSkill(SkillName.EvalInt, 99.6, 106.9);
|
||||
SetSkill(SkillName.Necromancy, 100.0, 106.6);
|
||||
SetSkill(SkillName.SpiritSpeak, 99.6, 106.9);
|
||||
|
||||
SetSkill( SkillName.Wrestling, 80.5, 88.6 );
|
||||
SetSkill( SkillName.Tactics, 88.5, 95.1 );
|
||||
SetSkill( SkillName.MagicResist, 102.7, 102.9 );
|
||||
SetSkill( SkillName.Magery, 100.0, 106.6 );
|
||||
SetSkill( SkillName.EvalInt, 99.6, 106.9 );
|
||||
SetSkill( SkillName.Necromancy, 100.0, 106.6 );
|
||||
SetSkill( SkillName.SpiritSpeak, 99.6, 106.9 );
|
||||
Fame = 18000;
|
||||
Karma = -18000;
|
||||
|
||||
Fame = 18000;
|
||||
Karma = -18000;
|
||||
if (Utility.RandomBool())
|
||||
PackNecroScroll(Utility.RandomMinMax(5, 9));
|
||||
else
|
||||
PackScroll(4, 7);
|
||||
|
||||
if ( Utility.RandomBool() )
|
||||
PackNecroScroll( Utility.RandomMinMax( 5, 9 ) );
|
||||
else
|
||||
PackScroll( 4, 7 );
|
||||
PackReg(7);
|
||||
PackReg(7);
|
||||
PackReg(8);
|
||||
}
|
||||
|
||||
PackReg( 7 );
|
||||
PackReg( 7 );
|
||||
PackReg( 8 );
|
||||
}
|
||||
public MasterJonath(Serial serial)
|
||||
: base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot( LootPack.UltraRich, 3 );
|
||||
}
|
||||
public override string CorpseName => "a Master Jonath corpse";
|
||||
public override string DefaultName => "Master Jonath";
|
||||
|
||||
// TODO: Special move?
|
||||
// TODO: Special move?
|
||||
|
||||
/*
|
||||
// TODO: uncomment once added
|
||||
public override void OnDeath( Container c )
|
||||
{
|
||||
base.OnDeath( c );
|
||||
/*
|
||||
// TODO: uncomment once added
|
||||
public override void OnDeath( Container c )
|
||||
{
|
||||
base.OnDeath( c );
|
||||
|
||||
if ( Utility.RandomDouble() < 0.05 )
|
||||
c.DropItem( new ParrotItem() );
|
||||
if ( Utility.RandomDouble() < 0.05 )
|
||||
c.DropItem( new ParrotItem() );
|
||||
|
||||
if ( Utility.RandomDouble() < 0.15 )
|
||||
c.DropItem( new DisintegratingThesisNotes() );
|
||||
}
|
||||
*/
|
||||
if ( Utility.RandomDouble() < 0.15 )
|
||||
c.DropItem( new DisintegratingThesisNotes() );
|
||||
}
|
||||
*/
|
||||
|
||||
public override bool GivesMLMinorArtifact => true;
|
||||
public override int TreasureMapLevel => 5;
|
||||
public override bool GivesMLMinorArtifact => true;
|
||||
public override int TreasureMapLevel => 5;
|
||||
|
||||
public MasterJonath( Serial serial )
|
||||
: base( serial )
|
||||
{
|
||||
}
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.UltraRich, 3);
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue