Faction-specific loadout items (#6969)

You can now add items to the loadout that are limited to a faction.
This commit is contained in:
Matt Atlas
2019-09-14 20:36:12 +02:00
committed by Erki
parent 77014b9cb5
commit f18c90807b
17 changed files with 195 additions and 23 deletions

View File

@@ -738,7 +738,10 @@
permitted = TRUE
if(G.whitelisted && (!(H.species.name in G.whitelisted)))
permitted = 0
permitted = FALSE
if(G.faction && G.faction != H.employer_faction)
permitted = FALSE
if(!permitted)
to_chat(H, "<span class='warning'>Your current job or whitelist status does not permit you to spawn with [thing]!</span>")