Localize spent lights name & desc (#10225)

This commit is contained in:
Morber
2022-08-02 06:21:57 +03:00
committed by GitHub
parent 985678faf3
commit 14d361a57f
5 changed files with 30 additions and 17 deletions

View File

@@ -57,8 +57,8 @@ namespace Content.Server.Light.EntitySystems
case ExpendableLightState.Fading:
component.CurrentState = ExpendableLightState.Dead;
var meta = MetaData(component.Owner);
meta.EntityName = component.SpentName;
meta.EntityDescription = component.SpentDesc;
meta.EntityName = Loc.GetString(component.SpentName);
meta.EntityDescription = Loc.GetString(component.SpentDesc);
UpdateSpriteAndSounds(component);
UpdateVisualizer(component);

View File

@@ -1 +1,14 @@
expendable-light-start-verb = Start Light
expendable-light-spent-flare-name = spent flare
expendable-light-spent-flare-desc = It looks like this flare has burnt out. What a bummer.
expendable-light-burnt-torch-name = burnt torch
expendable-light-burnt-torch-desc = It looks like this torch has burnt out. What a bummer.
expendable-light-spent-green-glowstick-name = spent green glowstick
expendable-light-spent-red-glowstick-name = spent red glowstick
expendable-light-spent-purple-glowstick-name = spent purple glowstick
expendable-light-spent-yellow-glowstick-name = spent purple glowstick
expendable-light-spent-blue-glowstick-name = spent blue glowstick
expendable-light-spent-glowstick-desc = It looks like this glowstick has stopped glowing. How tragic.

View File

@@ -5,8 +5,8 @@
description: A torch fashioned from some wood.
components:
- type: ExpendableLight
spentName: burnt torch
spentDesc: It looks like this torch has burnt out. What a bummer.
spentName: expendable-light-burnt-torch-name
spentDesc: expendable-light-burnt-torch-desc
glowDuration: 100
fadeOutDuration: 4
iconStateSpent: torch_spent

View File

@@ -11,8 +11,8 @@
- type: Recyclable
- type: SpaceGarbage
- type: ExpendableLight
spentName: spent flare
spentDesc: It looks like this flare has burnt out. What a bummer.
spentName: expendable-light-spent-flare-name
spentDesc: expendable-light-spent-flare-desc
glowDuration: 225
fadeOutDuration: 15
iconStateOn: flare_unlit

View File

@@ -10,8 +10,8 @@
- type: Recyclable
- type: SpaceGarbage
- type: ExpendableLight
spentName: spent green glowstick
spentDesc: It looks like this glowstick has stopped glowing. How tragic.
spentName: expendable-light-spent-green-glowstick-name
spentDesc: expendable-light-spent-glowstick-desc
glowDuration: 900 # time in seconds
fadeOutDuration: 300
iconStateOn: glowstick_lit
@@ -72,8 +72,8 @@
id: GlowstickRed
components:
- type: ExpendableLight
spentName: spent red glowstick
spentDesc: It looks like this glowstick has stopped glowing. How tragic.
spentName: expendable-light-spent-red-glowstick-name
spentDesc: expendable-light-spent-glowstick-desc
glowDuration: 900
fadeOutDuration: 300
iconStateOn: glowstick_lit
@@ -107,8 +107,8 @@
id: GlowstickPurple
components:
- type: ExpendableLight
spentName: spent purple glowstick
spentDesc: It looks like this glowstick has stopped glowing. How tragic.
spentName: expendable-light-spent-purple-glowstick-name
spentDesc: expendable-light-spent-glowstick-desc
glowDuration: 900
fadeOutDuration: 300
iconStateOn: glowstick_lit
@@ -142,8 +142,8 @@
id: GlowstickYellow
components:
- type: ExpendableLight
spentName: spent yellow glowstick
spentDesc: It looks like this glowstick has stopped glowing. How tragic.
spentName: expendable-light-spent-yellow-glowstick-name
spentDesc: expendable-light-spent-glowstick-desc
glowDuration: 900
fadeOutDuration: 300
iconStateOn: glowstick_lit
@@ -177,8 +177,8 @@
id: GlowstickBlue
components:
- type: ExpendableLight
spentName: spent blue glowstick
spentDesc: It looks like this glowstick has stopped glowing. How tragic.
spentName: expendable-light-spent-blue-glowstick-name
spentDesc: expendable-light-spent-glowstick-desc
glowDuration: 900
fadeOutDuration: 300
iconStateOn: glowstick_lit