woops on my part. ninjaweps and spellhelper multi checks.

This commit is contained in:
xavier 2011-01-23 14:33:58 +00:00
parent b56f20b39f
commit 07e45156e5
5 changed files with 15 additions and 12 deletions

View file

@ -94,8 +94,8 @@ namespace Server.Items
if ( IsChildOf( from ) )
{
list.Add(new NinjaWeapon.LoadEntry(this));
list.Add(new NinjaWeapon.UnloadEntry(this));
list.Add(new NinjaWeapon.LoadEntry(this, 6224));
list.Add(new NinjaWeapon.UnloadEntry(this, 6225));
}
}

View file

@ -107,8 +107,8 @@ namespace Server.Items
if ( IsChildOf( from ) )
{
list.Add( new NinjaWeapon.LoadEntry( this ) );
list.Add( new NinjaWeapon.UnloadEntry( this ) );
list.Add(new NinjaWeapon.LoadEntry(this, 6222));
list.Add(new NinjaWeapon.UnloadEntry(this, 6222));
}
}

View file

@ -346,8 +346,8 @@ namespace Server.Items
{
private INinjaWeapon weapon;
public LoadEntry(INinjaWeapon wep)
: base(6222, 0)
public LoadEntry(INinjaWeapon wep, int entry)
: base(entry, 0)
{
weapon = wep;
}
@ -365,10 +365,10 @@ namespace Server.Items
{
private INinjaWeapon weapon;
public UnloadEntry(INinjaWeapon belt)
: base(6223, 0)
public UnloadEntry(INinjaWeapon wep, int entry)
: base(entry, 0)
{
weapon = belt;
weapon = wep;
Enabled = (weapon.UsesRemaining > 0);
}