-
Notifications
You must be signed in to change notification settings - Fork 270
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Adds slugcats, a new simplemob! * Fixes duplicate #include statements. * Scug hands. * tgstation.dme wants this order, apparently? * Allows slugcats to come out of scrubber clogs (strange type.) * Update tgstation.dme --------- Co-authored-by: AberrantQuerist <[email protected]> Co-authored-by: dwasint <[email protected]>
- Loading branch information
1 parent
a35287b
commit 7838036
Showing
4 changed files
with
72 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
70 changes: 70 additions & 0 deletions
70
code/modules/mob/living/basic/space_fauna/slugcat/slugcat.dm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
/* | ||
* | ||
*Slugcats, a new vent critter. | ||
* | ||
*/ | ||
|
||
/mob/living/basic/slugcat | ||
name = "slugcat" | ||
desc = "A biologically engineered entity to clean pipes and relay information. It looks upon you with large, inquisitive eyes." | ||
icon = 'icons/mob/simple/slugcats.dmi' | ||
icon_state = "scug" | ||
icon_living = "scug" | ||
icon_dead = "scug_dead" | ||
speak_emote = list("mews") | ||
butcher_results = list(/obj/item/food/meat/slab = 2) | ||
response_help_continuous = "pets" | ||
response_help_simple = "pet" | ||
response_disarm_continuous = "shoos" | ||
response_disarm_simple = "shoo" | ||
response_harm_continuous = "swats" | ||
response_harm_simple = "swat" | ||
|
||
gold_core_spawnable = FRIENDLY_SPAWN | ||
|
||
health = 80 | ||
maxHealth = 80 | ||
melee_damage_lower = 5 | ||
melee_damage_upper = 5 | ||
obj_damage = 0 | ||
environment_smash = ENVIRONMENT_SMASH_NONE | ||
|
||
attack_verb_continuous = "claws" | ||
attack_verb_simple = "claw" | ||
attack_sound = 'sound/weapons/pierce.ogg' | ||
|
||
ai_controller = /datum/ai_controller/basic_controller/slugcat | ||
|
||
///What fate (food) a slugcat? | ||
var/static/list/edibles = list( | ||
/mob/living/basic/mouse, | ||
/obj/item/food/deadmouse, | ||
/mob/living/basic/bat | ||
) | ||
|
||
/mob/living/basic/slugcat/Initialize(mapload) | ||
. = ..() | ||
AddElement(/datum/element/footstep, footstep_type = FOOTSTEP_MOB_CLAW) | ||
AddElement(/datum/element/ai_retaliate) | ||
AddElement(/datum/element/dextrous) | ||
ADD_TRAIT(src, TRAIT_VENTCRAWLER_ALWAYS, INNATE_TRAIT) | ||
|
||
AddElement(/datum/element/basic_eating, heal_amt = 2, food_types = edibles) | ||
ai_controller.set_blackboard_key(BB_BASIC_FOODS, edibles) | ||
|
||
|
||
/datum/ai_controller/basic_controller/slugcat | ||
|
||
blackboard = list( | ||
BB_TARGETING_STRATEGY = /datum/targeting_strategy/basic, | ||
) | ||
|
||
ai_traits = STOP_MOVING_WHEN_PULLED | ||
ai_movement = /datum/ai_movement/basic_avoidance | ||
idle_behavior = /datum/idle_behavior/idle_random_walk | ||
|
||
planning_subtrees = list( | ||
/datum/ai_planning_subtree/target_retaliate, | ||
/datum/ai_planning_subtree/find_food, | ||
/datum/ai_planning_subtree/basic_melee_attack_subtree, | ||
) |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters