Skip to content

Commit

Permalink
Podpeople are always clean
Browse files Browse the repository at this point in the history
🆑 coiax
add: Podpeople have the species trait of always being clean, so do not
need to worry about regular showering. Because they're plants.
/🆑

Someone suggested this, and maybe this makes sense for podpeople? They
should shower because they're thirsty, not because they smell.
  • Loading branch information
coiax committed Jan 7, 2019
1 parent 8e692e6 commit fb68cf3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
3 changes: 2 additions & 1 deletion code/__DEFINES/traits.dm
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,13 @@
#define TRAIT_CANNOT_OPEN_PRESENTS "cannot-open-presents"
#define TRAIT_PRESENT_VISION "present-vision"
#define TRAIT_DISK_VERIFIER "disk-verifier"
#define TRAIT_NOMOBSWAP "no-mob-swap"
#define TRAIT_NOMOBSWAP "no-mob-swap"
#define TRAIT_XRAY_VISION "xray_vision"
#define TRAIT_ABDUCTOR_TRAINING "abductor-training"
#define TRAIT_ABDUCTOR_SCIENTIST_TRAINING "abductor-scientist-training"
#define TRAIT_SURGEON "surgeon"
#define TRAIT_LAW_ENFORCEMENT_METABOLISM "law-enforcement-metabolism"
#define TRAIT_ALWAYS_CLEAN "always-clean"

//non-mob traits
#define TRAIT_PARALYSIS "paralysis" //Used for limb-based paralysis, where replacing the limb will fix it
Expand Down
12 changes: 8 additions & 4 deletions code/modules/mob/living/carbon/human/life.dm
Original file line number Diff line number Diff line change
Expand Up @@ -325,14 +325,18 @@
adjustBruteLoss(2)

/mob/living/carbon/human/proc/handle_hygiene()
if(has_trait(TRAIT_ALWAYS_CLEAN))
set_hygiene(HYGIENE_LEVEL_CLEAN)
return

var/hygiene_loss = -HYGIENE_FACTOR

//If you're covered in blood, you'll start smelling like shit faster.
var/obj/item/head = get_item_by_slot(SLOT_HEAD)
if(head)
IF_HAS_BLOOD_DNA(head)
hygiene_loss -= 2 * HYGIENE_FACTOR

var/obj/item/mask = get_item_by_slot(SLOT_HEAD)
if(mask)
IF_HAS_BLOOD_DNA(mask)
Expand All @@ -347,14 +351,14 @@
if(suit)
IF_HAS_BLOOD_DNA(suit)
hygiene_loss -= 3 * HYGIENE_FACTOR

var/obj/item/feet = get_item_by_slot(SLOT_SHOES)
if(feet)
IF_HAS_BLOOD_DNA(feet)
hygiene_loss -= 2 * HYGIENE_FACTOR

adjust_hygiene(hygiene_loss)


#undef THERMAL_PROTECTION_HEAD
#undef THERMAL_PROTECTION_CHEST
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
id = "pod"
default_color = "59CE00"
species_traits = list(MUTCOLORS,EYECOLOR)
inherent_traits = list(TRAIT_ALWAYS_CLEAN)
attack_verb = "slash"
attack_sound = 'sound/weapons/slice.ogg'
miss_sound = 'sound/weapons/slashmiss.ogg'
Expand Down

0 comments on commit fb68cf3

Please sign in to comment.