-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Language Traits and some fixes (#782)
* ghoul max age is now 250 from 120 * disable scavenger and musician, use loadouts. * tribal elder can be telepathic * disable christmas music * disable unused traits * adds new language traits and a new special job datafield for giving traits to jobs. * adds the language and trait localisations * disable more traits * hide more unused antags * disable more traits to fix lint
- Loading branch information
Showing
22 changed files
with
698 additions
and
609 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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using Content.Server.Traits; | ||
using Content.Shared.Roles; | ||
using Content.Shared.Traits; | ||
using JetBrains.Annotations; | ||
using Robust.Shared.Prototypes; | ||
|
||
namespace Content.Server.Jobs; | ||
|
||
|
||
[UsedImplicitly] | ||
public sealed partial class AddTraitSpecial : JobSpecial | ||
{ | ||
// Datafield for storing multiple trait prototype IDs as strings | ||
[DataField(required: true)] | ||
public HashSet<string> Traits { get; private set; } = new(); | ||
|
||
public override void AfterEquip(EntityUid mob) | ||
{ | ||
// Resolve the necessary systems | ||
var entityManager = IoCManager.Resolve<IEntityManager>(); | ||
var prototypeManager = IoCManager.Resolve<IPrototypeManager>(); | ||
var traitSystem = entityManager.System<TraitSystem>(); | ||
|
||
// Iterate through each trait and add it to the entity | ||
foreach (var traitId in Traits) | ||
if (prototypeManager.TryIndex<TraitPrototype>(traitId, out var traitPrototype)) | ||
|
||
traitSystem.AddTrait(mob, traitPrototype); | ||
} | ||
} |
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,11 @@ | ||
trait-name-LanguageTribal = Tribal Language | ||
trait-description-LanguageTribal = You can understand and speak the local Tribal language. Whether through learning or backstory. | ||
trait-name-LanguageChinese = Chinese Language | ||
trait-description-Chinese = You can understand and speak the Chinese language. Whether through learning or backstory. | ||
language-English-name = English | ||
language-English-description = The common language of the Wasteland. | ||
language-Chinese-name = Chinese | ||
language-Chinese-description = You can understand and speak the Chinese language. Whether through learning or backstory. | ||
language-Tribal-name = Tribal | ||
language-Tribal-description = You can understand and speak the local Tribal language. Whether through learning or backstory. |
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
Oops, something went wrong.