Refactors the RCD code a tiny bit. One minor balance change (#32328)
* Refactors the RCD code a tad to remove a variable from all RCD's and instead get the reinf_walls.dm checks to be a compiled check with a istype. * Reverts back to variables for the reinforced walls check. Still reduced the amount of nessecary lines for it though
This commit is contained in:
committed by
CitadelStationBot
parent
cbbf29236e
commit
76bce07100
@@ -256,11 +256,10 @@
|
||||
dismantle_wall()
|
||||
|
||||
/turf/closed/wall/r_wall/rcd_vals(mob/user, obj/item/construction/rcd/the_rcd)
|
||||
if(!the_rcd.canRturf)
|
||||
return FALSE
|
||||
return ..()
|
||||
if(the_rcd.canRturf)
|
||||
return ..()
|
||||
|
||||
|
||||
/turf/closed/wall/r_wall/rcd_act(mob/user, obj/item/construction/rcd/the_rcd, passed_mode)
|
||||
if(!the_rcd.canRturf)
|
||||
return FALSE
|
||||
return ..()
|
||||
if(the_rcd.canRturf)
|
||||
return ..()
|
||||
Reference in New Issue
Block a user