Converts simple xeno mobs to basic mobs (#29975)

* Basic xenos

* Fixed config, better ranged code

* Syndiecakes corgis

* Lavaland subtypes

* Renames files because conflict with midround xenos

* Linters, enviro-smash

---------

Signed-off-by: PollardTheDragon <144391971+PollardTheDragon@users.noreply.github.com>
This commit is contained in:
PollardTheDragon
2025-08-07 16:30:36 +00:00
committed by GitHub
parent 32c1d64849
commit cb2032f7d4
20 changed files with 371 additions and 286 deletions
@@ -19,7 +19,7 @@
/// How often will we try to perform our ranged attack?
/datum/ai_behavior/ranged_skirmish
action_cooldown = 0.5 SECONDS
///do we care about avoiding friendly fire?
/// Do we care about shooting friends?
var/avoid_friendly_fire = FALSE
/datum/ai_behavior/ranged_skirmish/setup(datum/ai_controller/controller, target_key, targeting_strategy_key, hiding_location_key, max_range, min_range)
@@ -44,6 +44,8 @@
var/distance = get_dist(controller.pawn, target)
if(distance > max_range || distance < min_range)
return AI_BEHAVIOR_DELAY | AI_BEHAVIOR_FAILED
if(avoid_friendly_fire && check_friendly_in_path(controller.pawn, target, targeting_strategy))
return AI_BEHAVIOR_DELAY
if(avoid_friendly_fire && check_friendly_in_path(controller.pawn, target, targeting_strategy))
return AI_BEHAVIOR_DELAY
@@ -50,3 +50,10 @@
hunt_targets = list(/obj/item/stack/ore)
hunt_chance = 90
hunt_range = 9
/// Find and clean things
/datum/ai_planning_subtree/find_and_hunt_target/clean
target_key = BB_CLEAN_TARGET
hunting_behavior = /datum/ai_behavior/hunt_target/interact_with_target/clean
hunt_targets = list(/obj/effect/decal/cleanable)
hunt_range = 4
@@ -61,3 +61,8 @@
always_reset_target = TRUE
hunt_cooldown = 2 SECONDS
behavior_intent = INTENT_HELP
/datum/ai_behavior/hunt_target/interact_with_target/clean
always_reset_target = TRUE
hunt_cooldown = 2 SECONDS
behavior_intent = INTENT_HELP