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

Add ability to add additional friendly and hostile factions in prototypes #29636

Merged
merged 3 commits into from
Jul 2, 2024

Conversation

lzk228
Copy link
Contributor

@lzk228 lzk228 commented Jul 1, 2024

About the PR

title

Why / Balance

i need this in fork

@lzk228 lzk228 changed the title Make friendly and hostile factions in NpcFactionMemberComponent dataf… Make friendly and hostile factions in NpcFactionMemberComponent datafield Jul 1, 2024
@github-actions github-actions bot added the Status: Needs Review This PR requires new reviews before it can be merged. label Jul 1, 2024
@lzk228 lzk228 changed the title Make friendly and hostile factions in NpcFactionMemberComponent datafield Make friendly and hostile factions in NpcFactionMemberComponent datafields Jul 1, 2024
@Tayrtahn
Copy link
Member

Tayrtahn commented Jul 1, 2024

Hm, I don't think this is the right way to do this. Those fields look like they're meant to be temporary caches of friendly/hostile factions calculated from the factions the entity belongs to. They shouldn't be used to manually set the factions for an individual entity.

I would think you could make a new faction for the entity that has those relationships set up. If that's not possible, you could probably add two extra fields to the component (like additionalFriends, additionalEnemies or something) that are DataFields, and have those get unioned into the calculation when it updates the caches.

@lzk228 lzk228 changed the title Make friendly and hostile factions in NpcFactionMemberComponent datafields Add ability to add additional friendly and hostile factions in prototypes Jul 1, 2024
@EmoGarbage404 EmoGarbage404 merged commit 2a6b7db into space-wizards:master Jul 2, 2024
11 checks passed
@lzk228 lzk228 deleted the patch-1 branch July 2, 2024 14:13
aspiringLich pushed a commit to aspiringLich/space-station-14 that referenced this pull request Jul 21, 2024
…ypes (space-wizards#29636)

* Make friendly and hostile factions in NpcFactionMemberComponent datafiels

* :trollface:

* :trollface:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Review This PR requires new reviews before it can be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants