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

Adds Synthetic Manufacturers #4685

Closed
wants to merge 3 commits into from

Conversation

Steelpoint
Copy link
Contributor

@Steelpoint Steelpoint commented Oct 15, 2023

About the pull request

Allows Synthetic players to select a manufacturer for their Synthetic character.

This currently does not have any tangible in-game effect outside of allowing a Synthetic player to inform themselves of who manufactured them.

In addition to a broad suite of manufactures, all of which have some basis in Aliens lore (noted in the photos below), I added a 'independent manufacturer' for edge cases. Currently players will default to Weyland-Yutani if they don't select anything.

Explain why it's good for the game

Adds a little bit of lore and flavour to a Synthetic players character building.

Testing Photographs and Procedure

Screenshots & Videos

Screenshot 2023-10-15 13 53 32

Changelog

🆑
add: Synthetics may now select their manufacturer. This currently has no tangible in-game effect.
/:cl:

@github-actions github-actions bot added the Feature Feature coder badge label Oct 15, 2023
@Steelpoint
Copy link
Contributor Author

Requested changes made.

@@ -1611,6 +1614,11 @@ var/const/MAX_SAVE_SLOTS = 10
if(new_relation)
nanotrasen_relation = new_relation

if("synth_manufacturer")
var/synth_builder = input(user, "Choose your manufacturer.") as null|anything in list("Weyland-Yutani", "Borgia Industries", "Hyperdyne Systems", "Lasalle Bionational", "Seegson", "MedTech", "Grant Corporation", "AlphaTech Hardware", "Independent Manufacturer")
Copy link
Member

Choose a reason for hiding this comment

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

tgui_input_list

@@ -242,6 +243,7 @@
adaptive_zoom = sanitize_integer(adaptive_zoom, 0, 2, 0)
tooltips = sanitize_integer(tooltips, FALSE, TRUE, TRUE)

if(isnull(synth_manufacturer)) synth_manufacturer = initial(synth_manufacturer)
Copy link
Member

Choose a reason for hiding this comment

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

this should use sanitize_inlist() with the above global list

@@ -1611,6 +1614,11 @@ var/const/MAX_SAVE_SLOTS = 10
if(new_relation)
nanotrasen_relation = new_relation

if("synth_manufacturer")
var/synth_builder = input(user, "Choose your manufacturer.") as null|anything in list("Weyland-Yutani", "Borgia Industries", "Hyperdyne Systems", "Lasalle Bionational", "Seegson", "MedTech", "Grant Corporation", "AlphaTech Hardware", "Independent Manufacturer")
Copy link
Member

Choose a reason for hiding this comment

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

this list should be a global list or define so it can be referenced later for sanitizing

@harryob harryob marked this pull request as draft October 18, 2023 19:49
@github-actions
Copy link
Contributor

This PR has been inactive for long enough to be automatically marked as stale. This means it is at risk of being auto closed in ~ 7 days, please address any outstanding review items and ensure your PR is finished, if these are all true and you are auto-staled anyway, you need to actively ask maintainers if your PR will be merged. Once you have done any of the previous actions then you should request a maintainer remove the stale label on your PR, to reset the stale timer. If you feel no maintainer will respond in that time, you may wish to close this PR youself, while you seek maintainer comment, as you will then be able to reopen the PR yourself

@github-actions github-actions bot added the Stale beg a maintainer to review your PR label Oct 26, 2023
@github-actions github-actions bot closed this Nov 2, 2023
@Steelpoint Steelpoint deleted the SynthPerson branch July 17, 2024 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Feature coder badge Stale beg a maintainer to review your PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants