Skip to content

Commit

Permalink
Fix Foreigner Translators AGAIN (#559)
Browse files Browse the repository at this point in the history
# Description
Previous fix made it so that foreigner translators use no power (due to
being parented off of the wrong proto).

So I took some time to rearrange translators.yml because the file was
shitfucked and that's what caused the mistake in the first place.

This time it was made sure that:
- All (powered) translators can hold a power cell and do use power
- Foreigner's translator starts with a high-cap power cell and
unspawnable Translator spawns with a medium
- All children of the base powered translator spawn without a power cell
and cannot work as such until a power cell is inserted.

---

# Changelog
:cl:
- fix: Foreigner translator should now consume power, as intended.

Signed-off-by: Mnemotechnican <69920617+Mnemotechnician@users.noreply.github.com>
  • Loading branch information
Mnemotechnician authored Jul 18, 2024
1 parent fa1bd9f commit 8939fa1
Showing 1 changed file with 21 additions and 19 deletions.
40 changes: 21 additions & 19 deletions Resources/Prototypes/Entities/Objects/Devices/translators.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Translator that doesn't need power to work
- type: entity
noSpawn: true
id: TranslatorUnpowered
Expand Down Expand Up @@ -29,37 +30,38 @@
unequipDelay: 0.3
quickEquip: false # Would conflict

# Base translator that uses a power cell. Starts with an empty slot.
- type: entity
noSpawn: true
id: Translator
id: TranslatorPoweredBase
parent: [ TranslatorUnpowered, PowerCellSlotMediumItem ]
suffix: Powered
components:
- type: PowerCellDraw
drawRate: 1

- type: entity
noSpawn: true
id: TranslatorEmpty
parent: Translator
suffix: Empty
components:
- type: ItemSlots
slots:
cell_slot:
name: power-cell-slot-component-slot-name-default

# Normal translator with medium power cell in it
- type: entity
noSpawn: true
id: Translator
parent: [ PowerCellSlotMediumItem, TranslatorPoweredBase ]
suffix: Powered

# Normal translator with a high power cell and special appearance
- type: entity
noSpawn: true
id: TranslatorForeigner
parent: [ TranslatorUnpowered, PowerCellSlotHighItem ]
parent: [ PowerCellSlotHighItem, TranslatorPoweredBase ]
name: foreigner's translator
description: A special-issue translator that helps foreigner's speak and understand this station's primary language.


- type: entity
id: CanilunztTranslator
parent: [ TranslatorEmpty ]
parent: [ TranslatorPoweredBase ]
name: Canilunzt translator
description: Translates speech between Canilunzt and Galactic Common, allowing your local yeepers to communicate with the locals and vice versa!
components:
Expand All @@ -76,7 +78,7 @@

- type: entity
id: BubblishTranslator
parent: [ TranslatorEmpty ]
parent: [ TranslatorPoweredBase ]
name: Bubblish translator
description: Translates speech between Bubblish and Galactic Common, helping communicate with slimes and slime people.
components:
Expand All @@ -93,7 +95,7 @@

- type: entity
id: NekomimeticTranslator
parent: [ TranslatorEmpty ]
parent: [ TranslatorPoweredBase ]
name: Nekomimetic translator
description: Translates speech between Nekomimetic and Galactic Common, enabling you to communicate with your pet cats.
components:
Expand All @@ -110,7 +112,7 @@

- type: entity
id: DraconicTranslator
parent: [ TranslatorEmpty ]
parent: [ TranslatorPoweredBase ]
name: Draconic translator
description: Translates speech between Draconic and Galactic Common, making it easier to understand your local Uniathi.
components:
Expand All @@ -127,7 +129,7 @@

- type: entity
id: SolCommonTranslator
parent: [ TranslatorEmpty ]
parent: [ TranslatorPoweredBase ]
name: Sol Common translator
description: Translates speech between Sol Common and Galactic Common. Like a true Earthman!
components:
Expand All @@ -144,7 +146,7 @@

- type: entity
id: RootSpeakTranslator
parent: [ TranslatorEmpty ]
parent: [ TranslatorPoweredBase ]
name: RootSpeak translator
description: Translates speech between RootSpeak and Galactic Common. You may now speak for the trees.
components:
Expand All @@ -161,7 +163,7 @@

- type: entity
id: MofficTranslator
parent: [ TranslatorEmpty ]
parent: [ TranslatorPoweredBase ]
name: Moffic translator
description: Translates speech between Moffic and Galactic Common, helping you understand the buzzes of your pet mothroach!
components:
Expand All @@ -178,7 +180,7 @@

- type: entity
id: XenoTranslator
parent: [ TranslatorEmpty ]
parent: [ TranslatorPoweredBase ]
name: Xeno translator
description: Translates speech between Xeno and Galactic Common. This will probably not help you survive an encounter, though.
components:
Expand All @@ -194,7 +196,7 @@

- type: entity
id: AnimalTranslator
parent: [ TranslatorEmpty ]
parent: [ TranslatorPoweredBase ]
name: Animal translator
description: Translates all the cutes noises that most animals make into a more understandable form!
components:
Expand Down

0 comments on commit 8939fa1

Please sign in to comment.