This commit is contained in:
SandPoot
2023-11-29 22:40:13 -03:00
parent c9b0dedf77
commit 40f1d7401d
704 changed files with 1766 additions and 1743 deletions
+5 -5
View File
@@ -175,8 +175,8 @@
add_cabin()
if(enclosed)
add_airtank()
RegisterSignal(src, COMSIG_MOVABLE_PRE_MOVE , .proc/disconnect_air)
RegisterSignal(src, COMSIG_MOVABLE_MOVED, .proc/play_stepsound)
RegisterSignal(src, COMSIG_MOVABLE_PRE_MOVE , PROC_REF(disconnect_air))
RegisterSignal(src, COMSIG_MOVABLE_MOVED, PROC_REF(play_stepsound))
spark_system.set_up(2, 0, src)
spark_system.attach(src)
smoke_system.set_up(3, src)
@@ -1109,9 +1109,9 @@
/obj/vehicle/sealed/mecha/add_occupant(mob/M, control_flags)
RegisterSignal(M, COMSIG_MOB_DEATH, .proc/mob_exit)
RegisterSignal(M, COMSIG_MOB_CLICKON, .proc/on_mouseclick)
RegisterSignal(M, COMSIG_MOB_SAY, .proc/display_speech_bubble)
RegisterSignal(M, COMSIG_MOB_DEATH, PROC_REF(mob_exit))
RegisterSignal(M, COMSIG_MOB_CLICKON, PROC_REF(on_mouseclick))
RegisterSignal(M, COMSIG_MOB_SAY, PROC_REF(display_speech_bubble))
return ..()
/obj/vehicle/sealed/mecha/after_add_occupant(mob/M)
+4 -4
View File
@@ -16,8 +16,8 @@
/obj/vehicle/sealed/mecha/combat/durand/Initialize(mapload)
. = ..()
shield = new /obj/durand_shield(loc, src, layer, dir)
RegisterSignal(src, COMSIG_MECHA_ACTION_TRIGGER, .proc/relay)
RegisterSignal(src, COMSIG_PROJECTILE_PREHIT, .proc/prehit)
RegisterSignal(src, COMSIG_MECHA_ACTION_TRIGGER, PROC_REF(relay))
RegisterSignal(src, COMSIG_PROJECTILE_PREHIT, PROC_REF(prehit))
/obj/vehicle/sealed/mecha/combat/durand/Destroy()
@@ -156,7 +156,7 @@ own integrity back to max. Shield is automatically dropped if we run out of powe
chassis = _chassis
layer = _layer
setDir(_dir)
RegisterSignal(src, COMSIG_MECHA_ACTION_TRIGGER, .proc/activate)
RegisterSignal(src, COMSIG_MECHA_ACTION_TRIGGER, PROC_REF(activate))
/obj/durand_shield/Destroy()
@@ -204,7 +204,7 @@ own integrity back to max. Shield is automatically dropped if we run out of powe
playsound(src, 'sound/mecha/mech_shield_raise.ogg', 50, FALSE)
set_light(l_range = MINIMUM_USEFUL_LIGHT_RANGE , l_power = 5, l_color = "#00FFFF")
icon_state = "shield"
RegisterSignal(chassis, COMSIG_ATOM_DIR_CHANGE, .proc/resetdir)
RegisterSignal(chassis, COMSIG_ATOM_DIR_CHANGE, PROC_REF(resetdir))
else
flick("shield_drop", src)
playsound(src, 'sound/mecha/mech_shield_drop.ogg', 50, FALSE)
@@ -100,10 +100,10 @@
if(!chassis)
return FALSE
chassis.use_power(energy_drain)
return do_after(user, equip_cooldown, target, extra_checks = CALLBACK(src, .proc/do_after_checks, target))
return do_after(user, equip_cooldown, target, extra_checks = CALLBACK(src, PROC_REF(do_after_checks), target))
/obj/item/mecha_parts/mecha_equipment/proc/do_after_mecha(atom/target, mob/user, delay)
return do_after(user, delay, target, extra_checks = CALLBACK(src, .proc/do_after_checks, target))
return do_after(user, delay, target, extra_checks = CALLBACK(src, PROC_REF(do_after_checks), target))
/// do after checks for the mecha equipment do afters
/obj/item/mecha_parts/mecha_equipment/proc/do_after_checks(atom/target)
+1 -1
View File
@@ -408,7 +408,7 @@
if(href_list["repair_int_control_lost"])
to_chat(occupants, "[icon2html(src, occupants)]<span class='notice'>Recalibrating coordination system...</span>")
log_message("Recalibration of coordination system started.", LOG_MECHA)
addtimer(CALLBACK(src, .proc/stationary_repair, loc), 100, TIMER_UNIQUE)
addtimer(CALLBACK(src, PROC_REF(stationary_repair), loc), 100, TIMER_UNIQUE)
///Repairs internal damage if the mech hasn't moved.
/obj/vehicle/sealed/mecha/proc/stationary_repair(location)