mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 16:18:01 +01:00
Fixes blood drunk miner's dash and some mecha actions not working (#92772)
## About The Pull Request #92354 missed a few uses of Trigger, so blood drunk was missing the clicker arg and some mecha actions didn't account for the change. ## Changelog 🆑 fix: Fixed blood drunk miner's dash and some mecha actions not working /🆑
This commit is contained in:
@@ -200,7 +200,7 @@ Difficulty: Medium
|
||||
/mob/living/simple_animal/hostile/megafauna/blood_drunk_miner/hunter/AttackingTarget(atom/attacked_target)
|
||||
. = ..()
|
||||
if(. && prob(12))
|
||||
INVOKE_ASYNC(dash, TYPE_PROC_REF(/datum/action, Trigger), NONE, target)
|
||||
INVOKE_ASYNC(dash, TYPE_PROC_REF(/datum/action, Trigger), src, NONE, target)
|
||||
|
||||
/mob/living/simple_animal/hostile/megafauna/blood_drunk_miner/doom
|
||||
name = "hostile-environment miner"
|
||||
|
||||
@@ -70,7 +70,7 @@
|
||||
if(defense_mode)
|
||||
var/datum/action/action = LAZYACCESSASSOC(occupant_actions, M, /datum/action/vehicle/sealed/mecha/mech_defense_mode)
|
||||
if(action)
|
||||
INVOKE_ASYNC(action, TYPE_PROC_REF(/datum/action, Trigger), FALSE)
|
||||
INVOKE_ASYNC(action, TYPE_PROC_REF(/datum/action, Trigger), null, NONE, FALSE)
|
||||
return ..()
|
||||
|
||||
///Relays the signal from the action button to the shield, and creates a new shield if the old one is MIA.
|
||||
@@ -142,7 +142,7 @@ Expects a turf. Returns true if the attack should be blocked, false if not.*/
|
||||
name = "Toggle an energy shield that blocks all attacks from the faced direction at a heavy power cost."
|
||||
button_icon_state = "mech_defense_mode_off"
|
||||
|
||||
/datum/action/vehicle/sealed/mecha/mech_defense_mode/Trigger(trigger_flags, forced_state = FALSE)
|
||||
/datum/action/vehicle/sealed/mecha/mech_defense_mode/Trigger(mob/clicker, trigger_flags, forced_state = FALSE)
|
||||
if(!..())
|
||||
return
|
||||
if(!chassis || !(owner in chassis.occupants))
|
||||
|
||||
@@ -154,7 +154,7 @@
|
||||
name = "Toggle overclocking"
|
||||
button_icon_state = "mech_overload_off"
|
||||
|
||||
/datum/action/vehicle/sealed/mecha/mech_overclock/Trigger(trigger_flags, forced_state = null)
|
||||
/datum/action/vehicle/sealed/mecha/mech_overclock/Trigger(mob/clicker, trigger_flags, forced_state = null)
|
||||
if(!..())
|
||||
return
|
||||
if(!chassis || !(owner in chassis.occupants))
|
||||
|
||||
@@ -183,7 +183,7 @@
|
||||
var/obj/vehicle/sealed/mecha/ripley/paddy/secmech = chassis
|
||||
button_icon_state = "mech_siren_[secmech?.siren ? "on" : "off"]"
|
||||
|
||||
/datum/action/vehicle/sealed/mecha/siren/Trigger(trigger_flags, forced_state = FALSE)
|
||||
/datum/action/vehicle/sealed/mecha/siren/Trigger(mob/clicker, trigger_flags, forced_state = FALSE)
|
||||
if(!..())
|
||||
return
|
||||
var/obj/vehicle/sealed/mecha/ripley/paddy/secmech = chassis
|
||||
|
||||
Reference in New Issue
Block a user