Ports selectable prostethic limb from Yog + quirk blacklist and two other new quirks

This commit is contained in:
Kabra_men
2020-10-22 01:23:27 -03:00
parent f706f16a31
commit 64ee851bdf
4 changed files with 67 additions and 1 deletions

View File

@@ -1515,6 +1515,12 @@ GLOBAL_LIST_EMPTY(preferences_datums)
var/quirk = href_list["trait"]
if(!SSquirks.quirks[quirk])
return
for(var/V in SSquirks.quirk_blacklist) //V is a list
var/list/L = V
for(var/Q in all_quirks)
if((quirk in L) && (Q in L) && !(Q == quirk)) //two quirks have lined up in the list of the list of quirks that conflict with each other, so return (see quirks.dm for more details)
to_chat(user, "<span class='danger'>[quirk] is incompatible with [Q].</span>")
return
var/value = SSquirks.quirk_points[quirk]
if(value == 0)
if(quirk in neutral_quirks)