Skip to content

[DRAFT] Faction R&D#637

Draft
Ossa88 wants to merge 3 commits intoPentestSS13:masterfrom
Ossa88:faction_rnd
Draft

[DRAFT] Faction R&D#637
Ossa88 wants to merge 3 commits intoPentestSS13:masterfrom
Ossa88:faction_rnd

Conversation

@Ossa88
Copy link
Copy Markdown
Collaborator

@Ossa88 Ossa88 commented Mar 20, 2026

About The Pull Request

December 17, 2025

This was my working branch and notes for the factional R&D system.

It is highly volatile and will probably not pass any tests.

Why It's Good For The Game

Changelog

🆑
/:cl:

@Ossa88 Ossa88 requested a review from Constellado as a code owner March 20, 2026 02:45
@Ossa88 Ossa88 marked this pull request as draft March 20, 2026 02:47
/datum/overmap/ship/controlled/proc/get_faction_techweb(datum/faction/faction_datum)
if(!faction_datum)
return null

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

You could add faction tag to each datum as a string, then initial() the variable without having to initialize/create the actual datum. Then pass the tag through a switch() instead of doing the if() chain and istype() checking.
I think it looks something like this, though it's been a bit since I've looked at the actual syntax:

var/datum/faction/this_faction = faction_datum
var/faction_tag = initial(faction_datum.faction_tag)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Ill be totally honest I did most of this draft stuff back in December but then started my modular ruin stuff.

I have not even really sat down to start testing it.

Really I just made it a PR since I never published it to my fork, and was probably going to lose it if I didnt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants