mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-30 15:37:36 +01:00
Lewc review
This commit is contained in:
@@ -208,19 +208,20 @@
|
||||
if(req_components[R] > 0)
|
||||
component_check = 0
|
||||
break
|
||||
if(component_check)
|
||||
I.play_tool_sound(src)
|
||||
var/obj/machinery/new_machine = new circuit.build_path(loc)
|
||||
new_machine.on_construction()
|
||||
for(var/obj/O in new_machine.component_parts)
|
||||
qdel(O)
|
||||
new_machine.component_parts = list()
|
||||
for(var/obj/O in src)
|
||||
O.loc = null
|
||||
new_machine.component_parts += O
|
||||
circuit.loc = null
|
||||
new_machine.RefreshParts()
|
||||
qdel(src)
|
||||
if(!component_check)
|
||||
return TRUE
|
||||
I.play_tool_sound(src)
|
||||
var/obj/machinery/new_machine = new circuit.build_path(loc)
|
||||
new_machine.on_construction()
|
||||
for(var/obj/O in new_machine.component_parts)
|
||||
qdel(O)
|
||||
new_machine.component_parts = list()
|
||||
for(var/obj/O in src)
|
||||
O.loc = null
|
||||
new_machine.component_parts += O
|
||||
circuit.loc = null
|
||||
new_machine.RefreshParts()
|
||||
qdel(src)
|
||||
return TRUE
|
||||
|
||||
|
||||
|
||||
@@ -205,7 +205,7 @@
|
||||
for(var/obj/O in beakers)
|
||||
if(!O.reagents)
|
||||
continue
|
||||
if(istype(O,/obj/item/slime_extract))
|
||||
if(istype(O, /obj/item/slime_extract))
|
||||
cores += " [O]"
|
||||
for(var/R in O.reagents.reagent_list)
|
||||
var/datum/reagent/reagent = R
|
||||
|
||||
@@ -119,18 +119,18 @@
|
||||
/obj/structure/falsewall/screwdriver_act(mob/living/user, obj/item/I)
|
||||
if(opening)
|
||||
to_chat(user, "<span class='warning'>You must wait until the door has stopped moving.</span>")
|
||||
return
|
||||
return TRUE
|
||||
if(!density)
|
||||
to_chat(user, "<span class='warning'>You can't reach, close it first!</span>")
|
||||
return
|
||||
return TRUE
|
||||
var/turf/T = get_turf(src)
|
||||
if(T.density)
|
||||
to_chat(user, "<span class='warning'>[src] is blocked!</span>")
|
||||
return
|
||||
return TRUE
|
||||
|
||||
if(!istype(T, /turf/simulated/floor))
|
||||
to_chat(user, "<span class='warning'>[src] bolts must be tightened on the floor!</span>")
|
||||
return
|
||||
return TRUE
|
||||
user.visible_message("<span class='notice'>[user] tightens some bolts on the wall.</span>", "<span class='warning'>You tighten the bolts on the wall.</span>")
|
||||
ChangeToWall()
|
||||
return TRUE
|
||||
|
||||
@@ -140,7 +140,7 @@
|
||||
user.visible_message("<span class='notice'>[user] starts to fix part of [src].</span>", "<span class='notice'>You start to fix part of [src].</span>")
|
||||
if(do_after(user, 20 * I.toolspeed, target = src))
|
||||
I.play_tool_sound(src)
|
||||
user.visible_message("<span class='notice'>[user] fixes part of [src].</span>", "<span class='notice'>You have fixed part of \the [src].</span>")
|
||||
user.visible_message("<span class='notice'>[user] fixes part of [src].</span>", "<span class='notice'>You have fixed part of [src].</span>")
|
||||
broken = 1 // Fix it a bit
|
||||
return TRUE
|
||||
|
||||
|
||||
Reference in New Issue
Block a user