mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-14 01:24:21 +01:00
[SEMI-MODULAR] Ports the old food like/dislike system (#2092)
* added: bobjoga code * the numbers Co-authored-by: Ranged <nickvanderkroon@gmail.com>
This commit is contained in:
@@ -64,3 +64,18 @@ PROCESSING_SUBSYSTEM_DEF(quirks)
|
||||
// Assign wayfinding pinpointer granting quirk if they're new
|
||||
if(cli.get_exp_living(TRUE) < EXP_ASSIGN_WAYFINDER && !user.has_quirk(/datum/quirk/needswayfinder))
|
||||
user.add_quirk(/datum/quirk/needswayfinder, TRUE)
|
||||
|
||||
|
||||
// SKYRAT EDIT ADDITION START - Customization (food prefs)
|
||||
// This was done in this proc on old skyrat and i cba to find a better way
|
||||
var/mob/living/carbon/human/H = user
|
||||
if(istype(H))
|
||||
if(cli.prefs.foodlikes.len)
|
||||
H.dna.species.liked_food = 0
|
||||
for(var/V in cli.prefs.foodlikes)
|
||||
H.dna.species.liked_food |= cli.prefs.foodlikes[V]
|
||||
if(cli.prefs.fooddislikes.len)
|
||||
H.dna.species.disliked_food = 0
|
||||
for(var/V in cli.prefs.fooddislikes)
|
||||
H.dna.species.disliked_food |= cli.prefs.fooddislikes[V]
|
||||
// SKYRAT EDIT ADDITION END
|
||||
|
||||
Reference in New Issue
Block a user