Skip to content

Commit

Permalink
Localization of the threat level in an emergency lamp (space-wizards#…
Browse files Browse the repository at this point in the history
  • Loading branch information
chavonadelal authored and themias committed Aug 9, 2024
1 parent da7b3f9 commit 1a36e01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Content.Server/Light/EntitySystems/EmergencyLightSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ private void OnEmergencyExamine(EntityUid uid, EmergencyLightComponent component
args.PushMarkup(
Loc.GetString("emergency-light-component-on-examine-alert",
("color", color.ToHex()),
("level", name)));
("level", Loc.GetString($"alert-level-{name.ToString().ToLower()}"))));
}
}

Expand Down Expand Up @@ -234,6 +234,6 @@ private void TurnOn(Entity<EmergencyLightComponent> entity, Color color)
_pointLight.SetColor(entity.Owner, color);
_appearance.SetData(entity.Owner, EmergencyLightVisuals.Color, color);
_appearance.SetData(entity.Owner, EmergencyLightVisuals.On, true);
_ambient.SetAmbience(entity.Owner, true);
_ambient.SetAmbience(entity.Owner, true);
}
}

0 comments on commit 1a36e01

Please sign in to comment.