Fixes potential exploit with mood quirks

Hypothetically, the player could've turned on mood, added a bunch of negative mood quirks, and then disabled it, allowing them to have what are basically free points. This fixes that.
This commit is contained in:
Gary Lafortune
2019-06-11 12:04:15 -05:00
parent 4be60c7140
commit 4f30a04618
3 changed files with 11 additions and 0 deletions

View File

@@ -30,6 +30,7 @@ PROCESSING_SUBSYSTEM_DEF(quirks)
quirk_points[initial(T.name)] = initial(T.value)
/datum/controller/subsystem/processing/quirks/proc/AssignQuirks(mob/living/user, client/cli, spawn_effects)
if(!checkquirks(cli)) return// Yogs -- part of Adding Mood as Preference
for(var/V in cli.prefs.all_quirks)
var/datum/quirk/Q = quirks[V]
if(Q)