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,83 +2,83 @@ using System;
|
|||
|
||||
namespace Server.Factions
|
||||
{
|
||||
public class FactionExplosionTrap : BaseFactionTrap
|
||||
{
|
||||
public override int LabelNumber => 1044599; // faction explosion trap
|
||||
public class FactionExplosionTrap : BaseFactionTrap
|
||||
{
|
||||
[Constructible]
|
||||
public FactionExplosionTrap() : this(null)
|
||||
{
|
||||
}
|
||||
|
||||
public override int AttackMessage => 1010543; // You are enveloped in an explosion of fire!
|
||||
public override int DisarmMessage => 1010539; // You carefully remove the pressure trigger and disable the trap.
|
||||
public override int EffectSound => 0x307;
|
||||
public override int MessageHue => 0x78;
|
||||
public FactionExplosionTrap(Faction f) : this(f, null)
|
||||
{
|
||||
}
|
||||
|
||||
public override AllowedPlacing AllowedPlacing => AllowedPlacing.AnyFactionTown;
|
||||
public FactionExplosionTrap(Faction f, Mobile m) : base(f, m, 0x11C1)
|
||||
{
|
||||
}
|
||||
|
||||
public override void DoVisibleEffect()
|
||||
{
|
||||
Effects.SendLocationEffect( GetWorldLocation(), Map, 0x36BD, 15, 10 );
|
||||
}
|
||||
public FactionExplosionTrap(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override void DoAttackEffect( Mobile m )
|
||||
{
|
||||
m.Damage( Utility.Dice( 6, 10, 40 ), m );
|
||||
}
|
||||
public override int LabelNumber => 1044599; // faction explosion trap
|
||||
|
||||
[Constructible]
|
||||
public FactionExplosionTrap() : this( null )
|
||||
{
|
||||
}
|
||||
public override int AttackMessage => 1010543; // You are enveloped in an explosion of fire!
|
||||
public override int DisarmMessage => 1010539; // You carefully remove the pressure trigger and disable the trap.
|
||||
public override int EffectSound => 0x307;
|
||||
public override int MessageHue => 0x78;
|
||||
|
||||
public FactionExplosionTrap( Faction f ) : this( f, null )
|
||||
{
|
||||
}
|
||||
public override AllowedPlacing AllowedPlacing => AllowedPlacing.AnyFactionTown;
|
||||
|
||||
public FactionExplosionTrap( Faction f, Mobile m ) : base( f, m, 0x11C1 )
|
||||
{
|
||||
}
|
||||
public override void DoVisibleEffect()
|
||||
{
|
||||
Effects.SendLocationEffect(GetWorldLocation(), Map, 0x36BD, 15, 10);
|
||||
}
|
||||
|
||||
public FactionExplosionTrap( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
public override void DoAttackEffect(Mobile m)
|
||||
{
|
||||
m.Damage(Utility.Dice(6, 10, 40), m);
|
||||
}
|
||||
|
||||
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 class FactionExplosionTrapDeed : BaseFactionTrapDeed
|
||||
{
|
||||
public override Type TrapType => typeof( FactionExplosionTrap );
|
||||
public override int LabelNumber => 1044603; // faction explosion trap deed
|
||||
public class FactionExplosionTrapDeed : BaseFactionTrapDeed
|
||||
{
|
||||
public FactionExplosionTrapDeed() : base(0x36D2)
|
||||
{
|
||||
}
|
||||
|
||||
public FactionExplosionTrapDeed() : base( 0x36D2 )
|
||||
{
|
||||
}
|
||||
public FactionExplosionTrapDeed(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public FactionExplosionTrapDeed( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
public override Type TrapType => typeof(FactionExplosionTrap);
|
||||
public override int LabelNumber => 1044603; // faction explosion trap deed
|
||||
|
||||
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 );
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue