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: case ExpendableLightState.Fading:
component.CurrentState = ExpendableLightState.Dead; component.CurrentState = ExpendableLightState.Dead;
var meta = MetaData(component.Owner); var meta = MetaData(component.Owner);
meta.EntityName = component.SpentName; meta.EntityName = Loc.GetString(component.SpentName);
meta.EntityDescription = component.SpentDesc; meta.EntityDescription = Loc.GetString(component.SpentDesc);
UpdateSpriteAndSounds(component); UpdateSpriteAndSounds(component);
UpdateVisualizer(component); UpdateVisualizer(component);

View File

@@ -1 +1,14 @@
expendable-light-start-verb = Start Light 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. description: A torch fashioned from some wood.
components: components:
- type: ExpendableLight - type: ExpendableLight
spentName: burnt torch spentName: expendable-light-burnt-torch-name
spentDesc: It looks like this torch has burnt out. What a bummer. spentDesc: expendable-light-burnt-torch-desc
glowDuration: 100 glowDuration: 100
fadeOutDuration: 4 fadeOutDuration: 4
iconStateSpent: torch_spent iconStateSpent: torch_spent

View File

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

View File

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