Merge pull request #818 from Azarak/alterformquirk

Body Morpher Quirk
This commit is contained in:
BongaTheProto
2023-04-23 01:11:43 -05:00
committed by GitHub
2 changed files with 27 additions and 0 deletions

View File

@@ -33,3 +33,4 @@
#define TRAIT_DUMB_CUM "dumb_for_cum_base" #define TRAIT_DUMB_CUM "dumb_for_cum_base"
#define TRAIT_DUMB_CUM_CRAVE "dumb_for_cum_need" #define TRAIT_DUMB_CUM_CRAVE "dumb_for_cum_need"
#define TRAIT_RAD_FIEND "RadFiend" #define TRAIT_RAD_FIEND "RadFiend"
#define TRAIT_BODY_MORPHER "body_morpher"

View File

@@ -820,3 +820,29 @@
var/obj/item/clothing/mask/gas/cosmetic/gasmask = new(get_turf(quirk_holder)) // Uses a custom gas mask var/obj/item/clothing/mask/gas/cosmetic/gasmask = new(get_turf(quirk_holder)) // Uses a custom gas mask
H.equip_to_slot(gasmask, ITEM_SLOT_MASK) H.equip_to_slot(gasmask, ITEM_SLOT_MASK)
H.regenerate_icons() H.regenerate_icons()
/datum/quirk/body_morpher
name = "Body Morpher"
desc = "Somehow you developed an ability allowing your body to morph and shift itself to modify bodyparts, much like a slimeperson can."
value = 0
mob_trait = TRAIT_BODY_MORPHER
gain_text = span_notice("Your body feels more malleable...")
lose_text = span_notice("Your body is more firm.")
medical_record_text = "Patient's body seems unusually malleable."
var/datum/action/innate/ability/humanoid_customization/alter_form_action
/datum/quirk/body_morpher/add()
// Define quirk mob
var/mob/living/carbon/human/quirk_mob = quirk_holder
// Add quirk ability action datum
alter_form_action = new
alter_form_action.Grant(quirk_mob)
/datum/quirk/body_morpher/remove()
// Define quirk mob
var/mob/living/carbon/human/quirk_mob = quirk_holder
// Remove quirk ability action datum
alter_form_action.Remove(quirk_mob)
QDEL_NULL(alter_form_action)