mirror of
https://github.com/KabKebab/GS13.git
synced 2026-07-15 01:46:41 +01:00
base collars
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
/obj/item/clothing/neck
|
||||
///How much faster does the wearer gain weight? 1 = 100% faster
|
||||
var/weight_gain_rate_modifier = 0
|
||||
|
||||
/obj/item/clothing/neck/equipped(mob/user, slot)
|
||||
. = ..()
|
||||
|
||||
var/mob/living/carbon/wearer = user
|
||||
if(!weight_gain_rate_modifier)
|
||||
return FALSE
|
||||
|
||||
if(!iscarbon(wearer) || slot != SLOT_NECK || !wearer?.client?.prefs?.weight_gain_items)
|
||||
return FALSE
|
||||
|
||||
wearer.weight_gain_rate = wearer.weight_gain_rate * weight_gain_rate_modifier
|
||||
|
||||
/obj/item/clothing/neck/dropped(mob/user)
|
||||
. = ..()
|
||||
var/mob/living/carbon/wearer = user
|
||||
if(!weight_gain_rate_modifier)
|
||||
return FALSE
|
||||
|
||||
if(!iscarbon(wearer) || !(wearer.get_item_by_slot(SLOT_NECK) == src) || !wearer?.client?.prefs?.weight_gain_items)
|
||||
return FALSE
|
||||
|
||||
wearer.weight_gain_rate = (wearer.weight_gain_rate / weight_gain_rate_modifier)
|
||||
|
||||
|
||||
/obj/item/clothing/neck/petcollar/calorite
|
||||
name = "calorite collar"
|
||||
desc = "A modified pet collar infused with calorite, magnifying the caloric impact of any food the wearer eats"
|
||||
weight_gain_rate_modifier = 1.5
|
||||
|
||||
/obj/item/clothing/neck/petcollar/locked/calorite
|
||||
name = "locked calorite collar"
|
||||
desc = "A modified locked collar infused with calorite, magnifying the caloric impact of any food the wearer eats"
|
||||
weight_gain_rate_modifier = 1.5
|
||||
@@ -3316,6 +3316,7 @@
|
||||
#include "code\modules\VR\vr_sleeper.dm"
|
||||
#include "code\modules\zombie\items.dm"
|
||||
#include "code\modules\zombie\organs.dm"
|
||||
#include "GainStation13\code\clothing\calorite_collar.dm"
|
||||
#include "GainStation13\code\mechanics\fatness.dm"
|
||||
#include "GainStation13\code\modules\client\preferences\preferences.dm"
|
||||
#include "GainStation13\code\modules\mob\living\emote.dm"
|
||||
|
||||
Reference in New Issue
Block a user