Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Foreigner Traits #525

Merged
merged 6 commits into from
Jul 12, 2024

Conversation

Mnemotechnician
Copy link
Contributor

Description

Adds two negative traits, foreigner and its light version. Both of them make you unable to speak galactic common and give you a translator that lets you speak/understand GC, and also requires you to know one of the non-GC languages your entity normally speaks in order to work. The translator starts with a high-capacity power cell to compensate for the usual scarcity of publicly accessible chargers on most stations.

The light version of the trait only makes you unable to speak GC. The heavy version also makes you unable to understand others when they speak it.

This PR also makes you able to wear translator in the neck slot for convenience and transparency, and rewamps the examination menu of translators to provide more useful info.

One little known issue (as seen in the screenshots below) is that, since the system chooses the first language in the list of languages your entity can speak, it can sometimes pick wrong if your species speaks more than two language, but it won't prevent you from using the translator normally.

Also, the name of the light version of the trait is subject to change. I just couldn't think of anything more creative for it.

Why

Although supposedly trystan or others have a language menu in mind, it's still not even being worked on yet. At the same time, I've already seen some people roleplay as though their characters do not speak galactic common.

Media

image

image

image

image

image


Changelog

🆑

  • add: Added two new foreigner traits that make your character unable to speak Galactic Common and give you a translator instead.
  • tweak: Translators can now be equipped in the neck slot and display useful info when examined.

@github-actions github-actions bot added Changes: C# Changes any cs files Changes: Localization Changes any ftl files Changes: YML Changes any yml files labels Jul 7, 2024
@SimpleStation14 SimpleStation14 changed the title Foreigner traits Foreigner Traits Jul 7, 2024
@Mnemotechnician
Copy link
Contributor Author

Test fail is my Log.Error statement :trollface:

@Mnemotechnician
Copy link
Contributor Author

Now it's just the mimic.

@DEATHB4DEFEAT
Copy link
Member

Although supposedly trystan or others have a language menu in mind, it's still not even being worked on yet.

This is a good use of languages in traits (the idea at least, haven't reviewed the code yet).

@FoxxoTrystan
Copy link
Contributor

Indeed, Languages Menu just select optional Langauges for those, yeah those need to be in traits.

Comment on lines +53 to +55
/// <summary>
/// Tries to create and give the entity a translator to translator that translates speech between the two specified languages.
/// </summary>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It may be worth discussing, but I just thought that its an option to make it so that this item can be bought in your loadouts if you have the trait. But that may also fuck over players who aren't aware that they don't spawn with the item.

@@ -42,3 +42,13 @@ trait-name-Thieving = Thieving
trait-description-Thieving =
You are deft with your hands, and talented at convincing people of their belongings.
You can identify pocketed items, steal them quieter, and steal ~33% faster.

trait-name-ForeignerLight = Foreigner (light)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
trait-name-ForeignerLight = Foreigner (light)
trait-name-ForeignerLight = New in Town

Don't really like the Light appended to the end; this should differentiate them enough I guess, makes some sense too?

Shrug

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally this would also change the Loc string but I'm on mobile and don't want to go looking for every instance manually....

@github-actions github-actions bot added the Status: Needs Review Someone please review this label Jul 11, 2024
@VMSolidus VMSolidus merged commit 6084740 into Simple-Station:master Jul 12, 2024
13 checks passed
SimpleStation14 added a commit that referenced this pull request Jul 12, 2024
VMSolidus pushed a commit that referenced this pull request Jul 12, 2024
# Description

#525 Added foreigner traits, now during testing I revealed a few bugs.
This PR fixes them:
- The light version now correctly allows you to understand common (it
would not because I forgot to add [DataField])
- The translator now correctly starts with a high-capacity power cell
- Equipping the translator in a pocket slot no longer takes time

<details><summary><h1>Media</h1></summary><p>


![image](https://github.com/user-attachments/assets/4d2cabc7-2ce2-498b-822b-8ff9b82eea7d)

</p></details>

# Changelog
:cl:
- fix: Foreigner traits now work correctly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changes: C# Changes any cs files Changes: Localization Changes any ftl files Changes: YML Changes any yml files Status: Needs Review Someone please review this
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants