mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2024-11-14 21:39:09 +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())
|
||||
{
|
||||
//load mod ingredients
|
||||
fname = localisePath(dsq->mod.getPath() + "ingredients.txt", dsq->mod.getPath());
|
||||
loadIngredientData(fname);
|
||||
loadIngredientData(dsq->mod.getPath() + "ingredients.txt");
|
||||
}
|
||||
|
||||
//load ingredients for the main game
|
||||
if(ingredientData.empty() && recipes.empty()) {
|
||||
fname = localisePath("data/ingredients.txt");
|
||||
loadIngredientData(fname);
|
||||
loadIngredientData("data/ingredients.txt");
|
||||
}
|
||||
|
||||
loadPetData();
|
||||
|
|
|
@ -129,15 +129,7 @@ RecipeMenuEntry::RecipeMenuEntry(Recipe *recipe) : RenderObject(), recipe(recipe
|
|||
text->scale = Vector(0.8, 0.8);
|
||||
text->position = Vector(100*c, 0); //-20
|
||||
|
||||
std::string typeName = 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);
|
||||
std::string typeName = dsq->continuity.getIngredientDisplayName(recipe->types[i].typeName);
|
||||
|
||||
if (recipe->types[i].type != IT_ANYTHING)
|
||||
typeName = dsq->continuity.stringBank.get(2031) + "\n" + typeName;
|
||||
|
|
|
@ -38,7 +38,7 @@ Mushroom Mushroom
|
|||
Oil Oil
|
||||
Part Part
|
||||
Perogi Perogi
|
||||
PerogiType Perogi Type
|
||||
PerogiType Perogi
|
||||
PlantBulb Plant Bulb
|
||||
PlantLeaf Plant Leaf
|
||||
PlumpPerogi Plump Perogi
|
||||
|
|
Loading…
Reference in a new issue