mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-21 20:20:33 +01:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user