[MIRROR] RPED proximity Bug Fix [MDB IGNORE] (#18641)

* RPED proximity Bug Fix (#72616)

* RPED proximity Bug Fix

Co-authored-by: SyncIt21 <110812394+SyncIt21@users.noreply.github.com>
This commit is contained in:
SkyratBot
2023-01-11 12:09:08 -08:00
committed by GitHub
co-authored by SyncIt21
parent 02c9b514e9
commit fe5c70fdc7
2 changed files with 2 additions and 4 deletions
@@ -203,7 +203,6 @@
return
//install board
if(install_board(target_board, user, FALSE))
user.Beam(src, icon_state = "rped_upgrade", time = 5)
replacer.play_rped_sound()
//attack this frame again with the rped so it can install stock parts since its now in state 3
attackby(replacer, user, params)
+2 -3
View File
@@ -55,9 +55,6 @@ If you create T5+ please take a pass at mech_fabricator.dm. The parts being good
if(!ismachinery(attacked_object) && !istype(attacked_object, /obj/structure/frame/machine))
return ..()
if(adjacent)
return ..()
if(ismachinery(attacked_object))
var/obj/machinery/attacked_machinery = attacked_object
@@ -70,6 +67,8 @@ If you create T5+ please take a pass at mech_fabricator.dm. The parts being good
return
var/obj/structure/frame/machine/attacked_frame = attacked_object
if(!adjacent && !works_from_distance)
return
// no point attacking the frame with the rped if the frame doesn't have wiring or it doesn't have components & rped has no circuitboard to offer as an component.
if(attacked_frame.state == 1 || (!attacked_frame.components && !has_an_circuitboard()))
return