Skip to content

Commit

Permalink
[MIRROR] Re-adds some cat things that got lost in their refactor as b…
Browse files Browse the repository at this point in the history
…asic pets. (#1718)

* Re-adds some cat things that got lost in their refactor as basic pets. (#81108)

---------

Co-authored-by: NovaBot <[email protected]>
Co-authored-by: _0Steven <[email protected]>
  • Loading branch information
3 people authored Jan 29, 2024
1 parent fa35254 commit 437b2db
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
10 changes: 10 additions & 0 deletions code/modules/mob/living/basic/pets/cat/cat.dm
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@
. = ..()
AddElement(/datum/element/ai_retaliate)
AddElement(/datum/element/pet_bonus, "purrs!")
AddElement(/datum/element/footstep, footstep_type = FOOTSTEP_MOB_CLAW)
add_cell_sample()
add_verb(src, /mob/living/proc/toggle_resting)
add_traits(list(TRAIT_CATLIKE_GRACE, TRAIT_VENTCRAWLER_ALWAYS), INNATE_TRAIT)
ai_controller.set_blackboard_key(BB_HUNTABLE_PREY, typecacheof(huntable_items))
Expand All @@ -64,6 +66,9 @@
if(can_interact_with_stove)
RegisterSignal(src, COMSIG_LIVING_EARLY_UNARMED_ATTACK, PROC_REF(pre_unarmed_attack))

/mob/living/basic/pet/cat/proc/add_cell_sample()
AddElement(/datum/element/swabable, CELL_LINE_TABLE_CAT, CELL_VIRUS_TABLE_GENERIC_MOB, 1, 5)

/mob/living/basic/pet/cat/proc/pre_attack(mob/living/source, atom/movable/target)
SIGNAL_HANDLER
if(!is_type_in_list(target, huntable_items) || held_food)
Expand Down Expand Up @@ -150,6 +155,8 @@
/obj/item/food/breadslice/plain = 1
)

/mob/living/basic/pet/cat/breadcat/add_cell_sample()
return

/mob/living/basic/pet/cat/original
name = "Batsy"
Expand All @@ -162,6 +169,9 @@
unique_pet = TRUE
held_state = "original"

/mob/living/basic/pet/cat/original/add_cell_sample()
return

/mob/living/basic/pet/cat/kitten
name = "kitten"
desc = "D'aaawwww."
Expand Down
3 changes: 3 additions & 0 deletions code/modules/mob/living/basic/pets/cat/keeki.dm
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@
)
AddElement(/datum/element/consumable_mob, reagents_list = on_consume)

/mob/living/basic/pet/cat/cak/add_cell_sample()
return

/mob/living/basic/pet/cat/cak/CheckParts(list/parts)
. = ..()
var/obj/item/organ/internal/brain/candidate = locate(/obj/item/organ/internal/brain) in contents
Expand Down

0 comments on commit 437b2db

Please sign in to comment.