Skip to content

Commit

Permalink
IPCs have names now
Browse files Browse the repository at this point in the history
  • Loading branch information
Pspritechologist committed Jul 26, 2023
1 parent b897bd2 commit 8449285
Show file tree
Hide file tree
Showing 6 changed files with 1,123 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"omnisharp.analyzeOpenDocumentsOnly": true
"omnisharp.analyzeOpenDocumentsOnly": true,
"dotnet.defaultSolution": "SpaceStation14.sln"
}
5 changes: 5 additions & 0 deletions Content.Shared/Humanoid/NamingSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ public string GetName(string species, Gender? gender = null)
case SpeciesNaming.XnoY:
return Loc.GetString("namepreset-x-no-y",
("first", GetFirstName(speciesProto, gender)), ("last", GetLastName(speciesProto)));
// Parkstation-IPC-Start
case SpeciesNaming.FirstDashLast:
return Loc.GetString("namepreset-firstdashlast",
("first", GetFirstName(speciesProto, gender)), ("last", GetLastName(speciesProto)));
// Parkstation-IPC-End
case SpeciesNaming.FirstLast:
default:
return Loc.GetString("namepreset-firstlast",
Expand Down
3 changes: 2 additions & 1 deletion Content.Shared/Humanoid/Prototypes/SpeciesPrototype.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,5 +127,6 @@ public enum SpeciesNaming : byte
FirstLast,
FirstDashFirst,
XnoY,
TheFirstofLast
TheFirstofLast,
FirstDashLast, // Parkstation-IPC
}
3 changes: 3 additions & 0 deletions Resources/Locale/en-US/species/namepreset.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@ namepreset-firstlast = {$first} {$last}
namepreset-firstdashfirst = {$first1}-{$first2}
namepreset-thefirstoflast = The {$first} of {$last}
namepreset-x-no-y = {$last}-no-{$first}
## Parkstation
namepreset-firstdashlast = {$first}-{$last}
Loading

0 comments on commit 8449285

Please sign in to comment.