Skip to content

Commit

Permalink
Fix cargo panel | fix bot craft translate
Browse files Browse the repository at this point in the history
  • Loading branch information
Rinary1 committed Jul 23, 2024
1 parent 496d2d9 commit 24016e0
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 14 deletions.
4 changes: 2 additions & 2 deletions Content.Shared/Cargo/Prototypes/CargoProductPrototype.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public string Name

if (IoCManager.Resolve<IPrototypeManager>().TryIndex(Product, out EntityPrototype? prototype))
{
_name = Loc.GetString($"cargoproduct-name-{prototype.Name.ToLower().Replace(" ", "-")}");
_name = prototype.Name;
}

return _name;
Expand All @@ -58,7 +58,7 @@ public string Description

if (IoCManager.Resolve<IPrototypeManager>().TryIndex(Product, out EntityPrototype? prototype))
{
_description = Loc.GetString($"cargoproduct-description-{prototype.Name.ToLower().Replace(" ", "-")}");
_description = prototype.Description;
}

return _description;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,18 @@ public override ConstructionGuideEntry GenerateGuideEntry()
{
if (item.TryGetComponent<TagComponent>(out var entityTag) && entityManager.System<TagSystem>().HasTag(entityTag, Tag))
{
if(item.Name == "левая рука киборга-официанта")
{
nameLocale = "левая рука киборга"
}
else if(item.Name == "голова киборга-уборщика")
{
nameLocale = "голова киборга"
}
else
{
nameLocale = item.Name;
}
break;
}
}
Expand Down

This file was deleted.

4 changes: 2 additions & 2 deletions Resources/Prototypes/Catalog/Cargo/cargo_engines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
group: market

- type: cargoProduct
name: "emitter crate"
name: "ящик с эмиттером"
id: EngineSingularityEmitter
description: "Contains an emitter. Used only for dangerous applications."
description: "Эмиттер, использующийся в сингулярном двигателе."
icon:
sprite: Structures/Power/Generation/Singularity/emitter.rsi
state: emitter
Expand Down
4 changes: 2 additions & 2 deletions Resources/Prototypes/Catalog/Cargo/cargo_vending.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

- type: cargoProduct
id: CrateVendingMachineRestockChefvend
name: ChefVend restock crate
name: ящик пополнения ШефВенд
icon:
sprite: Objects/Specific/Service/vending_machine_restock.rsi
state: base
Expand Down Expand Up @@ -59,7 +59,7 @@

- type: cargoProduct
id: CrateVendingMachineRestockCondimentStation
name: condiment station restock crate
name: ящик пополнения Островок соусов
icon:
sprite: Objects/Specific/Service/vending_machine_restock.rsi
state: base
Expand Down
4 changes: 2 additions & 2 deletions Resources/Prototypes/Catalog/Fills/Crates/engineering.yml
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,8 @@
- type: entity
id: CrateEngineeringSpaceHeater
parent: CrateEngineering
name: space heater crate
description: Contains a space heater for climate control.
name: ящик с термостатом
description: Содержит термостат для климат контроля.
components:
- type: StorageFill
contents:
Expand Down

0 comments on commit 24016e0

Please sign in to comment.