mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-27 15:18:09 +01:00
[MIRROR] Minor fixes (#11160)
Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
co-authored by
Cameron Lennox
parent
b9b32ab38e
commit
7a34aa8643
@@ -231,6 +231,9 @@
|
||||
|
||||
/obj/structure/girder/proc/construct_wall(obj/item/stack/material/S, mob/user)
|
||||
var/amount_to_use = reinf_material ? 1 : 2
|
||||
var/time_to_reinforce = 4 SECONDS
|
||||
if(isrobot(user)) //Robots get a speed boost.
|
||||
time_to_reinforce = 1.5 SECONDS
|
||||
if(S.get_amount() < amount_to_use)
|
||||
to_chat(user, span_notice("There isn't enough material here to construct a wall."))
|
||||
return FALSE
|
||||
@@ -248,7 +251,7 @@
|
||||
|
||||
to_chat(user, span_notice("You begin adding the plating..."))
|
||||
|
||||
if(!do_after(user,40) || !S.use(amount_to_use))
|
||||
if(!do_after(user,time_to_reinforce) || !S.use(amount_to_use))
|
||||
return TRUE //once we've gotten this far don't call parent attackby()
|
||||
|
||||
if(anchored)
|
||||
|
||||
Reference in New Issue
Block a user