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,23 +2,23 @@ using Server.Items;
|
|||
|
||||
namespace Server.Targeting
|
||||
{
|
||||
public class WandTarget : Target
|
||||
{
|
||||
private BaseWand m_Item;
|
||||
public class WandTarget : Target
|
||||
{
|
||||
private BaseWand m_Item;
|
||||
|
||||
public WandTarget( BaseWand item ) : base( 6, false, TargetFlags.None )
|
||||
{
|
||||
m_Item = item;
|
||||
}
|
||||
public WandTarget(BaseWand item) : base(6, false, TargetFlags.None)
|
||||
{
|
||||
m_Item = item;
|
||||
}
|
||||
|
||||
private static int GetOffset( Mobile caster )
|
||||
{
|
||||
return 5 + (int)(caster.Skills[SkillName.Magery].Value * 0.02 );
|
||||
}
|
||||
private static int GetOffset(Mobile caster)
|
||||
{
|
||||
return 5 + (int)(caster.Skills[SkillName.Magery].Value * 0.02);
|
||||
}
|
||||
|
||||
protected override void OnTarget( Mobile from, object targeted )
|
||||
{
|
||||
m_Item.DoWandTarget( from, targeted );
|
||||
}
|
||||
}
|
||||
protected override void OnTarget(Mobile from, object targeted)
|
||||
{
|
||||
m_Item.DoWandTarget(from, targeted);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue