mirror of
https://github.com/KabKebab/GS13.git
synced 2026-07-15 18:06:57 +01:00
a
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
/obj/item/implant/docile
|
||||
name = "docility implant"
|
||||
activated = FALSE
|
||||
|
||||
/obj/item/implant/docile/implant(mob/living/target, mob/user, silent = FALSE)
|
||||
. = ..()
|
||||
if(!.)
|
||||
return
|
||||
|
||||
var/mob/living/carbon/human/target_human = target
|
||||
if(!istype(target_human))
|
||||
return
|
||||
|
||||
// If you have this implant, you aren't going to be doing any fighting.
|
||||
ADD_TRAIT(target, TRAIT_WEIGHT_LOSS_IMMUNE, src)
|
||||
ADD_TRAIT(target, TRAIT_PACIFISM, src)
|
||||
ADD_TRAIT(target, TRAIT_CLUMSY, src)
|
||||
ADD_TRAIT(target, TRAIT_FAT_GOOD, src)
|
||||
ADD_TRAIT(target, TRAIT_HEAVY_SLEEPER, src)
|
||||
|
||||
target_human.nutri_mult += 1
|
||||
|
||||
/obj/item/implant/docile/removed(mob/living/source, silent = FALSE, special = 0)
|
||||
. = ..()
|
||||
if(!.)
|
||||
return
|
||||
|
||||
REMOVE_TRAIT(target, TRAIT_WEIGHT_LOSS_IMMUNE, src)
|
||||
REMOVE_TRAIT(target, TRAIT_PACIFISM, src)
|
||||
REMOVE_TRAIT(target, TRAIT_CLUMSY, src)
|
||||
REMOVE_TRAIT(target, TRAIT_FAT_GOOD, src)
|
||||
REMOVE_TRAIT(target, TRAIT_HEAVY_SLEEPER, src)
|
||||
|
||||
target_human.nutri_mult -= 1
|
||||
|
||||
@@ -227,6 +227,7 @@
|
||||
#define TRAIT_NO_MISC "no_misc"
|
||||
#define TRAIT_NO_BACKPACK "no_backpack"
|
||||
#define TRAIT_NO_BUCKLE "no_buckle"
|
||||
#define TRAIT_DOCILE "docile"
|
||||
|
||||
// common trait sources
|
||||
#define TRAIT_GENERIC "generic"
|
||||
|
||||
@@ -3086,6 +3086,7 @@
|
||||
#include "GainStation13\code\game\sound.dm"
|
||||
#include "GainStation13\code\game\area\ruins.dm"
|
||||
#include "GainStation13\code\game\objects\effects\spawners\choco_slime_delivery.dm"
|
||||
#include "GainStation13\code\game\objects\items\docility_implant.dm"
|
||||
#include "GainStation13\code\game\objects\items\RCD.dm"
|
||||
#include "GainStation13\code\game\objects\items\storage\bags.dm"
|
||||
#include "GainStation13\code\game\turfs\closed.dm"
|
||||
|
||||
Reference in New Issue
Block a user