allow to unlock modules when destroying defence stations
This commit is contained in:
@@ -194,16 +194,19 @@ void GameWorldView::onFrame()
|
||||
m_sim->drainSchematicDropEvents();
|
||||
for (const SchematicDropEvent& ev : drops)
|
||||
{
|
||||
const QString shipName = toDisplayName(ev.schematicId);
|
||||
const QString name = toDisplayName(ev.schematicId);
|
||||
ToastEntry toast;
|
||||
if (ev.wasNewUnlock)
|
||||
if (ev.isModuleSchematic)
|
||||
{
|
||||
toast.text = "Schematic unlocked: " + shipName;
|
||||
toast.text = ev.wasNewUnlock
|
||||
? tr("Module unlocked: ") + name
|
||||
: name + tr(" production level -> ") + QString::number(ev.newLevel);
|
||||
}
|
||||
else
|
||||
{
|
||||
toast.text = shipName + " production level -> "
|
||||
+ QString::number(ev.newLevel);
|
||||
toast.text = ev.wasNewUnlock
|
||||
? tr("Schematic unlocked: ") + name
|
||||
: name + tr(" production level -> ") + QString::number(ev.newLevel);
|
||||
}
|
||||
toast.createdWallMs = m_wallMs;
|
||||
m_toasts.push_back(toast);
|
||||
|
||||
Reference in New Issue
Block a user