Skip to content

Commit

Permalink
Removes removed, adjusts allowed factions
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkSuckerberg committed Dec 11, 2024
1 parent 787e72a commit 0edec45
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
6 changes: 0 additions & 6 deletions code/modules/autowiki/pages/shiptable.dm
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,4 @@
"ships" = ships_output.Join(", ")
))

output += include_template("Autowiki/ShipTable/Row", list(
"name" = "Removed/Deprecated",
"color" = "C8C8C8",
"ships" = "{{{removed}}}" //allows for manual editing
))

return output.Join("\n")
5 changes: 4 additions & 1 deletion code/modules/faction/faction_datum.dm
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@
if(!short_name)
short_name = uppertext(copytext_char(name, 3))

allowed_factions += parent_faction
//All subtypes of this faction, all subtypes of specifically allowed factions, and SPECIFICALLY the parent faction (no subtypes) are allowed.
//Try not to nest factions too deeply, yeah?
allowed_factions += src
allowed_factions = typecacheof(allowed_factions)
allowed_factions[parent_faction] = TRUE

/// Easy way to check if something is "allowed", checks to see if it matches the name or faction typepath because factions are a fucking mess
/datum/faction/proc/allowed_faction(value_to_check)
Expand Down

0 comments on commit 0edec45

Please sign in to comment.