mirror of
https://github.com/Skyrat-SS13/Skyrat-tg.git
synced 2026-07-19 03:45:14 +01:00
d7de7b74b6
* mothroaches in the wardrobe (#83695) ## About The Pull Request there is a very small chance vendrobes will have mothroaches inside. this will become apparent as the clothes you buy will come out slightly damaged and eaten. hitting the vendrobe with a weapon (or throwing the weapon at it) will cause the mothroaches to come out and scatter everywhere. mothroaches will now also seek out clothes to eat them ## Why It's Good For The Game gives more character and depth to mothroach AI ## Changelog 🆑 add: vendrobes may have mothroaches inside them add: mothroaches will now seek out clothes to eat them /🆑 * mothroaches in the wardrobe --------- Co-authored-by: Ben10Omintrix <138636438+Ben10Omintrix@users.noreply.github.com>
77 lines
2.4 KiB
Plaintext
77 lines
2.4 KiB
Plaintext
/mob/living/basic/mothroach
|
|
name = "mothroach"
|
|
desc = "This is the adorable by-product of multiple attempts at genetically mixing mothpeople with cockroaches."
|
|
icon_state = "mothroach"
|
|
icon_living = "mothroach"
|
|
icon_dead = "mothroach_dead"
|
|
held_state = "mothroach"
|
|
held_lh = 'icons/mob/inhands/animal_item_lefthand.dmi'
|
|
held_rh = 'icons/mob/inhands/animal_item_righthand.dmi'
|
|
head_icon = 'icons/mob/clothing/head/pets_head.dmi'
|
|
butcher_results = list(/obj/item/food/meat/slab/mothroach = 3, /obj/item/stack/sheet/animalhide/mothroach = 1)
|
|
mob_biotypes = MOB_ORGANIC|MOB_BUG
|
|
mob_size = MOB_SIZE_SMALL
|
|
mobility_flags = MOBILITY_FLAGS_REST_CAPABLE_DEFAULT
|
|
health = 25
|
|
maxHealth = 25
|
|
speed = 1.25
|
|
gold_core_spawnable = FRIENDLY_SPAWN
|
|
can_be_held = TRUE
|
|
worn_slot_flags = ITEM_SLOT_HEAD
|
|
|
|
verb_say = "flutters"
|
|
verb_ask = "flutters inquisitively"
|
|
verb_exclaim = "flutters loudly"
|
|
verb_yell = "flutters loudly"
|
|
response_disarm_continuous = "shoos"
|
|
response_disarm_simple = "shoo"
|
|
response_harm_continuous = "hits"
|
|
response_harm_simple = "hit"
|
|
response_help_continuous = "pats"
|
|
response_help_simple = "pat"
|
|
|
|
faction = list(FACTION_NEUTRAL)
|
|
|
|
ai_controller = /datum/ai_controller/basic_controller/mothroach
|
|
|
|
/mob/living/basic/mothroach/Initialize(mapload)
|
|
. = ..()
|
|
var/static/list/food_types = list(/obj/item/clothing)
|
|
AddElement(/datum/element/basic_eating, food_types = food_types)
|
|
ai_controller.set_blackboard_key(BB_BASIC_FOODS, typecacheof(food_types))
|
|
AddElement(/datum/element/ai_retaliate)
|
|
AddElement(/datum/element/pet_bonus, "squeaks happily!")
|
|
add_verb(src, /mob/living/proc/toggle_resting)
|
|
ADD_TRAIT(src, TRAIT_VENTCRAWLER_ALWAYS, INNATE_TRAIT)
|
|
|
|
/mob/living/basic/mothroach/toggle_resting()
|
|
. = ..()
|
|
if(stat == DEAD)
|
|
return
|
|
if (resting)
|
|
icon_state = "[icon_living]_rest"
|
|
else
|
|
icon_state = "[icon_living]"
|
|
regenerate_icons()
|
|
|
|
/mob/living/basic/mothroach/attack_hand(mob/living/carbon/human/user, list/modifiers)
|
|
. = ..()
|
|
if(src.stat == DEAD)
|
|
return
|
|
else
|
|
playsound(loc, 'sound/voice/moth/scream_moth.ogg', 50, TRUE)
|
|
|
|
/mob/living/basic/mothroach/attackby(obj/item/attacking_item, mob/living/user, params)
|
|
. = ..()
|
|
if(src.stat == DEAD)
|
|
return
|
|
else
|
|
playsound(loc, 'sound/voice/moth/scream_moth.ogg', 50, TRUE)
|
|
|
|
/mob/living/basic/mothroach/bar
|
|
name = "mothroach bartender"
|
|
desc = "A mothroach serving drinks. Look at him go."
|
|
icon_state = "barroach"
|
|
icon_living = "barroach"
|
|
icon_dead = "barroach_dead"
|