Adds style cop (#109)
This commit is contained in:
parent
3e715bcb60
commit
556a17aba8
1725 changed files with 33831 additions and 38046 deletions
|
|
@ -24,11 +24,11 @@ namespace Server.Items
|
|||
{
|
||||
}
|
||||
|
||||
public virtual int WrongAmmoMessage => 1063329; //You can only load fukiya darts
|
||||
public virtual int NoFreeHandMessage => 1063327; //You must have a free hand to use a fukiya.
|
||||
public virtual int EmptyWeaponMessage => 1063325; //You have no fukiya darts!
|
||||
public virtual int RecentlyUsedMessage => 1063326; //You are already using that fukiya.
|
||||
public virtual int FullWeaponMessage => 1063330; //You can only load fukiya darts
|
||||
public virtual int WrongAmmoMessage => 1063329; // You can only load fukiya darts
|
||||
public virtual int NoFreeHandMessage => 1063327; // You must have a free hand to use a fukiya.
|
||||
public virtual int EmptyWeaponMessage => 1063325; // You have no fukiya darts!
|
||||
public virtual int RecentlyUsedMessage => 1063326; // You are already using that fukiya.
|
||||
public virtual int FullWeaponMessage => 1063330; // You can only load fukiya darts
|
||||
|
||||
public virtual int WeaponMinRange => 0;
|
||||
public virtual int WeaponMaxRange => 6;
|
||||
|
|
@ -131,14 +131,14 @@ namespace Server.Items
|
|||
switch (version)
|
||||
{
|
||||
case 0:
|
||||
{
|
||||
m_UsesRemaining = reader.ReadInt();
|
||||
{
|
||||
m_UsesRemaining = reader.ReadInt();
|
||||
|
||||
m_Poison = Poison.Deserialize(reader);
|
||||
m_PoisonCharges = reader.ReadInt();
|
||||
m_Poison = Poison.Deserialize(reader);
|
||||
m_PoisonCharges = reader.ReadInt();
|
||||
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -100,14 +100,14 @@ namespace Server.Items
|
|||
switch (version)
|
||||
{
|
||||
case 0:
|
||||
{
|
||||
m_UsesRemaining = reader.ReadInt();
|
||||
{
|
||||
m_UsesRemaining = reader.ReadInt();
|
||||
|
||||
m_Poison = Poison.Deserialize(reader);
|
||||
m_PoisonCharges = reader.ReadInt();
|
||||
m_Poison = Poison.Deserialize(reader);
|
||||
m_PoisonCharges = reader.ReadInt();
|
||||
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@ namespace Server.Items
|
|||
|
||||
[Constructible]
|
||||
public LeatherNinjaBelt() : base(0x2790)
|
||||
|
||||
{
|
||||
Weight = 1.0;
|
||||
Layer = Layer.Waist;
|
||||
|
|
@ -27,11 +26,11 @@ namespace Server.Items
|
|||
|
||||
public override CraftResource DefaultResource => CraftResource.RegularLeather;
|
||||
|
||||
public virtual int WrongAmmoMessage => 1063301; //You can only place shuriken in a ninja belt.
|
||||
public virtual int NoFreeHandMessage => 1063299; //You must have a free hand to throw shuriken.
|
||||
public virtual int EmptyWeaponMessage => 1063297; //You have no shuriken in your ninja belt!
|
||||
public virtual int RecentlyUsedMessage => 1063298; //You cannot throw another shuriken yet.
|
||||
public virtual int FullWeaponMessage => 1063302; //You cannot add any more shuriken.
|
||||
public virtual int WrongAmmoMessage => 1063301; // You can only place shuriken in a ninja belt.
|
||||
public virtual int NoFreeHandMessage => 1063299; // You must have a free hand to throw shuriken.
|
||||
public virtual int EmptyWeaponMessage => 1063297; // You have no shuriken in your ninja belt!
|
||||
public virtual int RecentlyUsedMessage => 1063298; // You cannot throw another shuriken yet.
|
||||
public virtual int FullWeaponMessage => 1063302; // You cannot add any more shuriken.
|
||||
|
||||
public virtual int WeaponMinRange => 2;
|
||||
public virtual int WeaponMaxRange => 10;
|
||||
|
|
@ -145,14 +144,14 @@ namespace Server.Items
|
|||
switch (version)
|
||||
{
|
||||
case 0:
|
||||
{
|
||||
m_UsesRemaining = reader.ReadInt();
|
||||
{
|
||||
m_UsesRemaining = reader.ReadInt();
|
||||
|
||||
m_Poison = Poison.Deserialize(reader);
|
||||
m_PoisonCharges = reader.ReadInt();
|
||||
m_Poison = Poison.Deserialize(reader);
|
||||
m_PoisonCharges = reader.ReadInt();
|
||||
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,23 +18,23 @@ namespace Server.Items
|
|||
{
|
||||
public interface INinjaAmmo : IUsesRemaining
|
||||
{
|
||||
int PoisonCharges{ get; set; }
|
||||
Poison Poison{ get; set; }
|
||||
int PoisonCharges { get; set; }
|
||||
Poison Poison { get; set; }
|
||||
}
|
||||
|
||||
public interface INinjaWeapon : IUsesRemaining
|
||||
{
|
||||
int NoFreeHandMessage{ get; }
|
||||
int EmptyWeaponMessage{ get; }
|
||||
int RecentlyUsedMessage{ get; }
|
||||
int FullWeaponMessage{ get; }
|
||||
int WrongAmmoMessage{ get; }
|
||||
Type AmmoType{ get; }
|
||||
int PoisonCharges{ get; set; }
|
||||
Poison Poison{ get; set; }
|
||||
int WeaponDamage{ get; }
|
||||
int WeaponMinRange{ get; }
|
||||
int WeaponMaxRange{ get; }
|
||||
int NoFreeHandMessage { get; }
|
||||
int EmptyWeaponMessage { get; }
|
||||
int RecentlyUsedMessage { get; }
|
||||
int FullWeaponMessage { get; }
|
||||
int WrongAmmoMessage { get; }
|
||||
Type AmmoType { get; }
|
||||
int PoisonCharges { get; set; }
|
||||
Poison Poison { get; set; }
|
||||
int WeaponDamage { get; }
|
||||
int WeaponMinRange { get; }
|
||||
int WeaponMaxRange { get; }
|
||||
|
||||
void AttackAnimation(Mobile from, Mobile to);
|
||||
}
|
||||
|
|
@ -114,8 +114,8 @@ namespace Server.Items
|
|||
else
|
||||
{
|
||||
if (weapon.UsesRemaining > 0)
|
||||
if (weapon.Poison == null && ammo.Poison != null
|
||||
|| weapon.Poison != null && ammo.Poison != null && weapon.Poison.Level != ammo.Poison.Level)
|
||||
if ((weapon.Poison == null && ammo.Poison != null)
|
||||
|| (weapon.Poison != null && ammo.Poison != null && weapon.Poison.Level != ammo.Poison.Level))
|
||||
{
|
||||
Unload(from, weapon);
|
||||
need = Math.Min(MaxUses, ammo.UsesRemaining);
|
||||
|
|
@ -276,7 +276,7 @@ namespace Server.Items
|
|||
|
||||
public class LoadEntry : ContextMenuEntry
|
||||
{
|
||||
private INinjaWeapon weapon;
|
||||
private readonly INinjaWeapon weapon;
|
||||
|
||||
public LoadEntry(INinjaWeapon wep, int entry)
|
||||
: base(entry, 0) =>
|
||||
|
|
@ -291,7 +291,7 @@ namespace Server.Items
|
|||
|
||||
public class UnloadEntry : ContextMenuEntry
|
||||
{
|
||||
private INinjaWeapon weapon;
|
||||
private readonly INinjaWeapon weapon;
|
||||
|
||||
public UnloadEntry(INinjaWeapon wep, int entry)
|
||||
: base(entry, 0)
|
||||
|
|
|
|||
|
|
@ -101,14 +101,14 @@ namespace Server.Items
|
|||
switch (version)
|
||||
{
|
||||
case 0:
|
||||
{
|
||||
m_UsesRemaining = reader.ReadInt();
|
||||
{
|
||||
m_UsesRemaining = reader.ReadInt();
|
||||
|
||||
m_Poison = Poison.Deserialize(reader);
|
||||
m_PoisonCharges = reader.ReadInt();
|
||||
m_Poison = Poison.Deserialize(reader);
|
||||
m_PoisonCharges = reader.ReadInt();
|
||||
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue