Removes literal variables (#257)
This commit is contained in:
parent
580da8a0cc
commit
4d6e584b6c
359 changed files with 1306 additions and 1306 deletions
|
|
@ -28,8 +28,8 @@ namespace Server.ContextMenus
|
|||
{
|
||||
if (targeted is Spellbook book)
|
||||
{
|
||||
if (@from.CheckAlive() && !m_Scroll.Deleted && m_Scroll.Movable && m_Scroll.Amount >= 1 &&
|
||||
m_Scroll.CheckItemUse(@from))
|
||||
if (from.CheckAlive() && !m_Scroll.Deleted && m_Scroll.Movable && m_Scroll.Amount >= 1 &&
|
||||
m_Scroll.CheckItemUse(from))
|
||||
{
|
||||
var type = Spellbook.GetTypeForSpell(m_Scroll.SpellID);
|
||||
|
||||
|
|
@ -38,7 +38,7 @@ namespace Server.ContextMenus
|
|||
}
|
||||
else if (book.HasSpell(m_Scroll.SpellID))
|
||||
{
|
||||
@from.SendLocalizedMessage(500179); // That spell is already present in that spellbook.
|
||||
from.SendLocalizedMessage(500179); // That spell is already present in that spellbook.
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -50,7 +50,7 @@ namespace Server.ContextMenus
|
|||
|
||||
m_Scroll.Consume();
|
||||
|
||||
@from.Send(new PlaySound(0x249, book.GetWorldLocation()));
|
||||
from.Send(new PlaySound(0x249, book.GetWorldLocation()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue