rename blueprint to schematic
This commit is contained in:
@@ -163,17 +163,17 @@ void GameWorldView::onFrame()
|
||||
}
|
||||
}
|
||||
|
||||
// Drain blueprint drop events → toasts
|
||||
// Drain schematic drop events → toasts
|
||||
{
|
||||
const std::vector<BlueprintDropEvent> drops =
|
||||
m_sim->drainBlueprintDropEvents();
|
||||
for (const BlueprintDropEvent& ev : drops)
|
||||
const std::vector<SchematicDropEvent> drops =
|
||||
m_sim->drainSchematicDropEvents();
|
||||
for (const SchematicDropEvent& ev : drops)
|
||||
{
|
||||
const QString shipName = toDisplayName(ev.blueprintId);
|
||||
const QString shipName = toDisplayName(ev.schematicId);
|
||||
ToastEntry toast;
|
||||
if (ev.wasNewUnlock)
|
||||
{
|
||||
toast.text = "Blueprint unlocked: " + shipName;
|
||||
toast.text = "Schematic unlocked: " + shipName;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#include <QTimer>
|
||||
#include <QVector2D>
|
||||
|
||||
#include "BlueprintDropEvent.h"
|
||||
#include "SchematicDropEvent.h"
|
||||
#include "BuildingType.h"
|
||||
#include "EntityId.h"
|
||||
#include "FireEvent.h"
|
||||
|
||||
@@ -187,7 +187,7 @@ void SelectedBuildingPanel::buildSingle(EntityId id)
|
||||
{
|
||||
for (const ShipDef& def : m_config->ships.ships)
|
||||
{
|
||||
if (m_sim->isBlueprintUnlocked(def.id))
|
||||
if (m_sim->isSchematicUnlocked(def.id))
|
||||
{
|
||||
m_recipeCombo->addItem(
|
||||
QString::fromStdString(def.id),
|
||||
@@ -267,7 +267,7 @@ void SelectedBuildingPanel::refreshBuffers(const Building* b)
|
||||
}
|
||||
else if (shipDef)
|
||||
{
|
||||
for (const RecipeIngredient& mat : shipDef->blueprint.materials)
|
||||
for (const RecipeIngredient& mat : shipDef->schematic.materials)
|
||||
{
|
||||
if (mat.item == entry.first.id) { perCycle = mat.amount; break; }
|
||||
}
|
||||
@@ -320,7 +320,7 @@ void SelectedBuildingPanel::refreshBuffers(const Building* b)
|
||||
{
|
||||
const double durationSeconds = recipe
|
||||
? recipe->durationSeconds
|
||||
: shipDef->blueprint.productionTimeSeconds;
|
||||
: shipDef->schematic.productionTimeSeconds;
|
||||
|
||||
bufText += QString("Cycle: %1 s\n").arg(durationSeconds, 0, 'f', 1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user