{ "dm_type": "/datum/ai_controller/basic_controller/minebot", "type": "selector", "children": [ { "type": "subtree", "subtype": "/datum/bt_node/subtree", "override_id": "SUBPLAN_ID_PET_COMMAND" }, { "type": "parallel", "failure_policy": "BT_PARALLEL_FAILURE_CHILD_ONE", "success_policy": "BT_PARALLEL_SUCCESS_CHILD_ONE", "repeat_secondary": true, "repeat_secondary_delay": "BASIC_MOB_FIND_TARGET_RATE", "finish_on_primary": true, "children": [ { "type": "selector", "children": [ { "type": "subtree", "subtype": "/datum/bt_node/subtree/minebot_combat" }, { "type": "subtree", "subtype": "/datum/bt_node/subtree/minebot_mining" } ] }, { "type": "leaf", "behavior": "/datum/bt_node/ai_behavior/acquire_target/update_combat_targets", "vars": { "target_key": "BB_CURRENT_TARGET", "targeting_strategy": "BB_TARGETING_STRATEGY", "hiding_location_key": "BB_CURRENT_TARGET_HIDING_LOCATION" } }, { "type": "subplan", "success_policy": "BT_SUBPLAN_SUCCEED_ON_SUCCESS", "failure_policy": "BT_SUBPLAN_FAIL_ON_FAILURE", "loop_delay": "1 SECONDS", "children": [ { "type": "selector", "children": [ { "type": "sequence", "children": [ { "type": "leaf", "behavior": "/datum/bt_node/ai_behavior/acquire_target/update_interaction_target", "vars": { "target_key": "BB_MINER_FRIEND", "target_source": "/datum/target_source/oview_single_type/human_mob", "targeting_strategy": "/datum/targeting_strategy/rock_stoner" } }, { "type": "leaf", "behavior": "/datum/bt_node/ai_behavior/befriend_target", "vars": { "target_key": "BB_MINER_FRIEND", "long_range_friendship": true } } ] }, { "type": "sequence", "children": [ { "type": "decorator", "decorator": "/datum/bt_node/decorator/cooldown", "vars": { "cooldown_key": "BB_MINEBOT_CRIT_ALERT_COOLDOWN", "cooldown_duration": "10 SECONDS" }, "child": { "type": "leaf", "behavior": "/datum/bt_node/ai_behavior/acquire_target/update_interaction_target", "vars": { "target_key": "BB_NEARBY_DEAD_MINER", "target_source": "/datum/target_source/oview_single_type/human_mob", "targeting_strategy": "/datum/targeting_strategy/unconscious_human" } } }, { "type": "leaf", "behavior": "/datum/bt_node/ai_behavior/send_sos_message", "vars": { "target_key": "BB_NEARBY_DEAD_MINER" } } ] } ] } ] } ] } ] }