Cleans up comments for localization (#260)
This commit is contained in:
parent
fd9ec089f7
commit
13e2693b59
52 changed files with 751 additions and 798 deletions
|
|
@ -76,9 +76,9 @@ namespace Server.Engines.Craft
|
|||
365,
|
||||
150,
|
||||
18,
|
||||
1044017 + (context == null ? 0 : (int)context.MarkOption),
|
||||
1044017 + (int)(context?.MarkOption ?? CraftMarkOption.MarkItem), // MARK ITEM
|
||||
LabelColor
|
||||
); // MARK ITEM
|
||||
);
|
||||
}
|
||||
// ****************************************
|
||||
|
||||
|
|
@ -640,10 +640,10 @@ namespace Server.Engines.Craft
|
|||
m_From,
|
||||
m_CraftSystem,
|
||||
m_Tool,
|
||||
1044165,
|
||||
1044165, // You haven't made anything yet.
|
||||
m_Page
|
||||
)
|
||||
); // You haven't made anything yet.
|
||||
);
|
||||
}
|
||||
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -100,20 +100,15 @@ namespace Server.Engines.Craft
|
|||
302 + m_OtherCount++ * 20,
|
||||
310,
|
||||
18,
|
||||
1048176,
|
||||
1048176, // Makes as many as possible at once
|
||||
LabelColor
|
||||
); // Makes as many as possible at once
|
||||
);
|
||||
}
|
||||
|
||||
DrawItem();
|
||||
DrawSkill();
|
||||
DrawResource();
|
||||
|
||||
/*
|
||||
if (craftItem.RequiresSE)
|
||||
AddHtmlLocalized( 170, 302 + (m_OtherCount++ * 20), 310, 18, 1063363, LabelColor, false, false ); //* Requires the "Samurai Empire" expansion
|
||||
* */
|
||||
|
||||
if (craftItem.RequiredExpansion != Expansion.None)
|
||||
{
|
||||
var supportsEx = from.NetState?.SupportsExpansion(craftItem.RequiredExpansion) == true;
|
||||
|
|
@ -138,9 +133,9 @@ namespace Server.Engines.Craft
|
|||
302 + m_OtherCount++ * 20,
|
||||
310,
|
||||
18,
|
||||
1073620,
|
||||
1073620, // You have not learned this recipe.
|
||||
RedLabelColor
|
||||
); // You have not learned this recipe.
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -167,9 +162,9 @@ namespace Server.Engines.Craft
|
|||
302 + m_OtherCount++ * 20,
|
||||
310,
|
||||
18,
|
||||
1044059,
|
||||
1044059, // This item may hold its maker's mark
|
||||
LabelColor
|
||||
); // This item may hold its maker's mark
|
||||
);
|
||||
m_ShowExceptionalChance = true;
|
||||
}
|
||||
}
|
||||
|
|
@ -270,9 +265,9 @@ namespace Server.Engines.Craft
|
|||
302 + m_OtherCount++ * 20,
|
||||
310,
|
||||
18,
|
||||
1044152,
|
||||
1044152, // * The item retains the color of this material
|
||||
LabelColor
|
||||
); // * The item retains the color of this material
|
||||
);
|
||||
AddLabel(500, 219 + i * 20, LabelHue, "*");
|
||||
}
|
||||
|
||||
|
|
@ -301,9 +296,9 @@ namespace Server.Engines.Craft
|
|||
302 + m_OtherCount++ * 20,
|
||||
360,
|
||||
18,
|
||||
1044379,
|
||||
1044379, // Inscribing scrolls also requires a blank scroll and mana.
|
||||
LabelColor
|
||||
); // Inscribing scrolls also requires a blank scroll and mana.
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1015,9 +1015,9 @@ namespace Server.Engines.Craft
|
|||
from,
|
||||
craftSystem,
|
||||
tool,
|
||||
1072847
|
||||
1072847 // You must learn that recipe from a scroll.
|
||||
)
|
||||
); // You must learn that recipe from a scroll.
|
||||
);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
@ -1028,9 +1028,9 @@ namespace Server.Engines.Craft
|
|||
from,
|
||||
craftSystem,
|
||||
tool,
|
||||
1044153
|
||||
1044153 // You don't have the required skills to attempt this item.
|
||||
)
|
||||
); // You don't have the required skills to attempt this item.
|
||||
);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
@ -1041,9 +1041,9 @@ namespace Server.Engines.Craft
|
|||
from,
|
||||
craftSystem,
|
||||
tool,
|
||||
RequiredExpansionMessage(RequiredExpansion)
|
||||
RequiredExpansionMessage(RequiredExpansion) // The {0} expansion is required to attempt this item.
|
||||
)
|
||||
); // The {0} expansion is required to attempt this item.
|
||||
);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
@ -1052,8 +1052,7 @@ namespace Server.Engines.Craft
|
|||
}
|
||||
}
|
||||
|
||||
// Eventually convert to TextDefinition, but that requires that we convert all the gumps to ues it too. Not that it wouldn't be a bad idea.
|
||||
private object RequiredExpansionMessage(Expansion expansion)
|
||||
private TextDefinition RequiredExpansionMessage(Expansion expansion)
|
||||
{
|
||||
return expansion switch
|
||||
{
|
||||
|
|
|
|||
|
|
@ -356,9 +356,8 @@ namespace Server.Engines.Craft
|
|||
if (resource != CraftResource.None)
|
||||
{
|
||||
from.Target = new InternalTarget(craftSystem, tool, res.ItemType, resource);
|
||||
from.SendLocalizedMessage(
|
||||
1061004
|
||||
); // Target an item to enhance with the properties of your selected material.
|
||||
// Target an item to enhance with the properties of your selected material.
|
||||
from.SendLocalizedMessage(1061004);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -367,9 +366,10 @@ namespace Server.Engines.Craft
|
|||
from,
|
||||
craftSystem,
|
||||
tool,
|
||||
// You must select a special material in order to enhance an item with its properties.
|
||||
1061010
|
||||
)
|
||||
); // You must select a special material in order to enhance an item with its properties.
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -380,9 +380,10 @@ namespace Server.Engines.Craft
|
|||
from,
|
||||
craftSystem,
|
||||
tool,
|
||||
// You must select a special material in order to enhance an item with its properties.
|
||||
1061010
|
||||
)
|
||||
); // You must select a special material in order to enhance an item with its properties.
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -239,8 +239,8 @@ namespace Server.Engines.Craft
|
|||
typeof(IronIngot),
|
||||
1044036,
|
||||
28,
|
||||
1044037
|
||||
); // Double check skill
|
||||
1044037 // Double check skill
|
||||
);
|
||||
SetNeededExpansion(index, Expansion.SE);
|
||||
|
||||
index = AddCraft(
|
||||
|
|
|
|||
|
|
@ -141,7 +141,7 @@ namespace Server.Engines.Craft
|
|||
1044041,
|
||||
5,
|
||||
1044351
|
||||
); // This is in the categor of Other during AoS
|
||||
);
|
||||
AddSkill(index, SkillName.Tailoring, 40.0, 45.0);
|
||||
AddRes(index, typeof(Cloth), 1044286, 5, 1044287);
|
||||
}
|
||||
|
|
@ -483,7 +483,7 @@ namespace Server.Engines.Craft
|
|||
1044041,
|
||||
5,
|
||||
1044351
|
||||
); // This is in the categor of Other during AoS
|
||||
);
|
||||
AddSkill(index, SkillName.Tailoring, 40.0, 45.0);
|
||||
AddRes(index, typeof(Cloth), 1044286, 5, 1044287);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -192,12 +192,12 @@ namespace Server.Engines.Craft
|
|||
1061677,
|
||||
1060509 + spell,
|
||||
minSkill,
|
||||
minSkill + 1.0,
|
||||
minSkill + 1.0, // Yes, on OSI it's only 1.0 skill diff'. Don't blame me, blame OSI.
|
||||
regs[0],
|
||||
CraftItem.LabelNumber(regs[0]),
|
||||
1,
|
||||
501627
|
||||
); // Yes, on OSI it's only 1.0 skill diff'. Don't blame me, blame OSI.
|
||||
);
|
||||
|
||||
for (var i = 1; i < regs.Length; ++i)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue