[MIRROR] [Ready] New Cosmic Heretic Path DLC [MDB IGNORE] (#20416)

[Ready] New Cosmic Heretic Path DLC

Co-authored-by: Comxy <tijntensen@gmail.com>
This commit is contained in:
SkyratBot
2023-04-08 19:10:34 +01:00
committed by GitHub
co-authored by Comxy
parent 479145d7b0
commit a560da119f
48 changed files with 1407 additions and 19 deletions
@@ -25,8 +25,8 @@
action_cooldown = 2 SECONDS
/// If we should attack walls, be prepared for complaints about breaches
var/can_attack_turfs = FALSE
/// Tries to bump open airlocks with an attack
var/bump_open_airlock = FALSE
/// For if you want your mob to be able to attack dense objects
var/can_attack_dense_objects = FALSE
/datum/ai_behavior/attack_obstructions/perform(delta_time, datum/ai_controller/controller, target_key)
. = ..()
@@ -71,7 +71,7 @@
return FALSE
/datum/ai_behavior/attack_obstructions/proc/can_smash_object(mob/living/basic/basic_mob, obj/object)
if (!object.density)
if (!object.density && !can_attack_dense_objects)
return FALSE
if (object.IsObscured())
return FALSE
@@ -81,3 +81,6 @@
/datum/ai_planning_subtree/attack_obstacle_in_path/low_priority_target
target_key = BB_LOW_PRIORITY_HUNTING_TARGET
/datum/ai_planning_subtree/attack_obstacle_in_path/pet_target
target_key = BB_CURRENT_PET_TARGET