forked from Rxup/space-station-14
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master' into upstream-sync
- Loading branch information
Showing
65 changed files
with
227 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,3 +70,12 @@ jobs: | |
username: ${{ secrets.WIKI_BOT_USER }} | ||
password: ${{ secrets.WIKI_BOT_PASS }} | ||
|
||
- name: Upload entity_prototypes.json to wiki | ||
uses: jtmullen/[email protected] | ||
with: | ||
wiki_text_file: ./bin/Content.Server/data/entity_prototypes.json | ||
edit_summary: Update entity_prototypes.json via GitHub Actions | ||
page_name: "${{ secrets.WIKI_PAGE_ROOT }}/entity_prototypes.json" | ||
api_url: ${{ secrets.WIKI_ROOT_URL }}/api.php | ||
username: ${{ secrets.WIKI_BOT_USER }} | ||
password: ${{ secrets.WIKI_BOT_PASS }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
using System.Linq; | ||
using System.Text.Json.Serialization; | ||
using Robust.Shared.Prototypes; | ||
|
||
namespace Content.Server.GuideGenerator; | ||
|
||
public sealed class EntityEntry | ||
{ | ||
[JsonPropertyName("id")] | ||
public string Id { get; } | ||
|
||
[JsonPropertyName("name")] | ||
public string Name { get; } | ||
|
||
[JsonPropertyName("desc")] | ||
public string Description { get; } | ||
|
||
public EntityEntry(EntityPrototype proto) | ||
{ | ||
Id = proto.ID; | ||
if (proto.Name.Length > 1) | ||
{ | ||
Name = char.ToUpper(proto.Name[0]) + proto.Name.Remove(0, 1); | ||
} | ||
else if (proto.Name.Length == 1) | ||
{ | ||
Name = char.ToUpper(proto.Name[0]).ToString(); // xD | ||
} | ||
else | ||
{ | ||
Name = proto.Name; | ||
} | ||
Description = proto.Description; | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
Content.Server/Corvax/GuideGenerator/EntityJsonGenerator.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
using System.IO; | ||
using System.Linq; | ||
using System.Text.Json; | ||
using System.Text.Json.Serialization; | ||
using Content.Shared.Chemistry.Reaction; | ||
using Content.Shared.Chemistry.Reagent; | ||
using Content.Shared.Damage; | ||
using Content.Shared.FixedPoint; | ||
using Robust.Shared.Prototypes; | ||
|
||
namespace Content.Server.GuideGenerator; | ||
|
||
public sealed class EntityJsonGenerator | ||
{ | ||
public static void PublishJson(StreamWriter file) | ||
{ | ||
var prototype = IoCManager.Resolve<IPrototypeManager>(); | ||
var prototypes = | ||
prototype | ||
.EnumeratePrototypes<EntityPrototype>() | ||
.Where(x => !x.Abstract) | ||
.Select(x => new EntityEntry(x)) | ||
.ToDictionary(x => x.Id, x => x); | ||
|
||
var serializeOptions = new JsonSerializerOptions | ||
{ | ||
WriteIndented = true, | ||
}; | ||
|
||
file.Write(JsonSerializer.Serialize(prototypes, serializeOptions)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
Resources/Locale/en-US/ss14-ru/prototypes/entities/clothing/belt/quiver.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ent-ClothingBeltQuiver = quiver | ||
.desc = Can hold up to 15 arrows, and fits snug around your waist. |
2 changes: 2 additions & 0 deletions
2
Resources/Locale/en-US/ss14-ru/prototypes/entities/clothing/hands/colored.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
Resources/Locale/en-US/ss14-ru/prototypes/entities/markers/spawners/random/trash.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
ent-RandomSpawner = Trash Spawner | ||
.suffix = 50 | ||
.desc = { ent-MarkerBase.desc } | ||
ent-RandomSpawner100 = { ent-RandomSpawner } | ||
.suffix = 100 | ||
.desc = { ent-RandomSpawner.desc } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...le/en-US/ss14-ru/prototypes/entities/objects/devices/syndicate_gadgets/war_declarator.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
ent-NukeOpsDeclarationOfWar = the declaration of war | ||
ent-NukeOpsDeclarationOfWar = declaration of war | ||
.desc = Use to send a declaration of hostilities to the target, delaying your shuttle departure while they prepare for your assault. Such a brazen move will attract the attention of powerful benefactors within the Syndicate, who will supply your team with a massive amount of bonus telecrystals. Must be used at start of mission, or your benefactors will lose interest. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
Resources/Locale/en-US/ss14-ru/prototypes/entities/objects/weapons/guns/bow/bow.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
ent-BaseBow = bow | ||
.desc = The original rooty tooty point and shooty. | ||
ent-BowImprovised = { ent-BaseBow } | ||
.desc = { ent-BaseBow.desc } |
6 changes: 6 additions & 0 deletions
6
...rces/Locale/en-US/ss14-ru/prototypes/entities/objects/weapons/guns/projectiles/arrows.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
ent-BaseArrow = { ent-BaseItem } | ||
.desc = { ent-BaseItem.desc } | ||
ent-ArrowRegular = arrow | ||
.desc = You can feel the power of the steppe within you. | ||
ent-ArrowImprovised = glass shard arrow | ||
.desc = The greyshirt's preferred projectile. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
rat-king-domain-popup = В воздух поднимается облако миазм. | ||
rat-king-too-hungry = Вы слишком голодны, чтобы использовать эту способность! | ||
rat-king-rummage-text = Обшарить |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
nuke-ops-no-more-threat-announcement-shuttle-call = Based on our scans from our long-range sensors, the nuclear threat is now eliminated. We will call emergency shuttle that will arrive shortly. ETA: { $time } { $units }. You can recall the shuttle to extend the shift. | ||
nuke-ops-no-more-threat-announcement = Based on our scans from our long-range sensors, the nuclear threat is now eliminated. Shuttle is already called. |
5 changes: 2 additions & 3 deletions
5
Resources/Locale/ru-RU/nutrition/components/drink-component.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.