mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user