Merge pull request #608 from Kabramen/prosthetic-limb-quirk-revamp

Ports selectable prostethic limbs from Yog + quirk blacklist and two o…
This commit is contained in:
Dahlular
2020-10-23 16:27:54 -06:00
committed by GitHub
5 changed files with 80 additions and 3 deletions
+6
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)