mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-05-11 03:23:50 +00:00
Some simplifications in ingredient name handling, by Henrik Holst
This commit is contained in:
parent
0caed714fb
commit
918c69d15b
3 changed files with 4 additions and 14 deletions
|
@ -3263,14 +3263,12 @@ void Continuity::reset()
|
||||||
if(dsq->mod.isActive())
|
if(dsq->mod.isActive())
|
||||||
{
|
{
|
||||||
//load mod ingredients
|
//load mod ingredients
|
||||||
fname = localisePath(dsq->mod.getPath() + "ingredients.txt", dsq->mod.getPath());
|
loadIngredientData(dsq->mod.getPath() + "ingredients.txt");
|
||||||
loadIngredientData(fname);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//load ingredients for the main game
|
//load ingredients for the main game
|
||||||
if(ingredientData.empty() && recipes.empty()) {
|
if(ingredientData.empty() && recipes.empty()) {
|
||||||
fname = localisePath("data/ingredients.txt");
|
loadIngredientData("data/ingredients.txt");
|
||||||
loadIngredientData(fname);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
loadPetData();
|
loadPetData();
|
||||||
|
|
|
@ -129,15 +129,7 @@ RecipeMenuEntry::RecipeMenuEntry(Recipe *recipe) : RenderObject(), recipe(recipe
|
||||||
text->scale = Vector(0.8, 0.8);
|
text->scale = Vector(0.8, 0.8);
|
||||||
text->position = Vector(100*c, 0); //-20
|
text->position = Vector(100*c, 0); //-20
|
||||||
|
|
||||||
std::string typeName = recipe->types[i].typeName;
|
std::string typeName = dsq->continuity.getIngredientDisplayName(recipe->types[i].typeName);
|
||||||
|
|
||||||
size_t loc = typeName.find("Type");
|
|
||||||
if (loc != std::string::npos)
|
|
||||||
{
|
|
||||||
typeName = typeName.substr(0, loc) + typeName.substr(loc+4, typeName.size());
|
|
||||||
}
|
|
||||||
|
|
||||||
typeName = dsq->continuity.getIngredientDisplayName(typeName);
|
|
||||||
|
|
||||||
if (recipe->types[i].type != IT_ANYTHING)
|
if (recipe->types[i].type != IT_ANYTHING)
|
||||||
typeName = dsq->continuity.stringBank.get(2031) + "\n" + typeName;
|
typeName = dsq->continuity.stringBank.get(2031) + "\n" + typeName;
|
||||||
|
|
|
@ -38,7 +38,7 @@ Mushroom Mushroom
|
||||||
Oil Oil
|
Oil Oil
|
||||||
Part Part
|
Part Part
|
||||||
Perogi Perogi
|
Perogi Perogi
|
||||||
PerogiType Perogi Type
|
PerogiType Perogi
|
||||||
PlantBulb Plant Bulb
|
PlantBulb Plant Bulb
|
||||||
PlantLeaf Plant Leaf
|
PlantLeaf Plant Leaf
|
||||||
PlumpPerogi Plump Perogi
|
PlumpPerogi Plump Perogi
|
||||||
|
|
Loading…
Add table
Reference in a new issue