mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-31 00:58:26 +01:00
[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:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user