mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-20 12:35:33 +01:00
Increases move resistance on NODE Drones, adds handling for when the drone is seperated from the node (#83309)
## About The Pull Request NODE Drones now have higher move resistance (MOVE_FORCE_EXTREMELY_STRONG), preventing them from being bumped off the node, pulled away, or lifted away by a fulton extraction kit. As an extra layer of assurance, the NODE Drone will depart from the site if it is moved off of its vent. ## Why It's Good For The Game Closes #83164. I'm pretty sure these things shouldn't really be ever moving off of their vents. ## Changelog 🆑 Rhials fix: You can no longer force NODE Drones off of ore vents. That includes using fulton packs! fix: When a NODE Drone is forcibly separated from its vent, it will fly away. /🆑
This commit is contained in:
@@ -26,7 +26,9 @@
|
||||
faction = list(FACTION_STATION, FACTION_NEUTRAL)
|
||||
light_range = 4
|
||||
basic_mob_flags = DEL_ON_DEATH
|
||||
|
||||
move_force = MOVE_FORCE_VERY_STRONG
|
||||
move_resist = MOVE_FORCE_VERY_STRONG
|
||||
pull_force = MOVE_FORCE_VERY_STRONG
|
||||
speak_emote = list("chirps")
|
||||
response_help_continuous = "pets"
|
||||
response_help_simple = "pet"
|
||||
@@ -85,14 +87,17 @@
|
||||
/**
|
||||
* Called when wave defense is completed. Visually flicks the escape sprite and then deletes the mob.
|
||||
*/
|
||||
/mob/living/basic/node_drone/proc/escape()
|
||||
/mob/living/basic/node_drone/proc/escape(success)
|
||||
var/funny_ending = FALSE
|
||||
flying_state = FLY_OUT_STATE
|
||||
update_appearance(UPDATE_ICON_STATE)
|
||||
if(prob(1))
|
||||
say("I have to go now, my planet needs me.")
|
||||
funny_ending = TRUE
|
||||
visible_message(span_notice("The drone flies away to safety as the vent is secured."))
|
||||
if(success)
|
||||
visible_message(span_notice("The drone flies away to safety as the vent is secured."))
|
||||
else
|
||||
visible_message(span_danger("The drone flies away after failing to open the vent!"))
|
||||
animate(src, pixel_z = 400, time = 2 SECONDS, easing = QUAD_EASING|EASE_IN, flags = ANIMATION_PARALLEL)
|
||||
sleep(2 SECONDS)
|
||||
if(funny_ending)
|
||||
@@ -101,14 +106,15 @@
|
||||
qdel(src)
|
||||
|
||||
|
||||
/mob/living/basic/node_drone/proc/pre_escape()
|
||||
/mob/living/basic/node_drone/proc/pre_escape(success = TRUE)
|
||||
if(buckled)
|
||||
buckled.unbuckle_mob(src)
|
||||
if(attached_vent)
|
||||
attached_vent.unbuckle_mob(src)
|
||||
attached_vent = null
|
||||
if(!escaping)
|
||||
escaping = TRUE
|
||||
flick("mining_node_escape", src)
|
||||
addtimer(CALLBACK(src, PROC_REF(escape)), 1.9 SECONDS)
|
||||
addtimer(CALLBACK(src, PROC_REF(escape), success), 1.9 SECONDS)
|
||||
return
|
||||
|
||||
/// The node drone AI controller
|
||||
|
||||
Reference in New Issue
Block a user