Skip to content

Commit

Permalink
Tank turrets can also be repaired with steel
Browse files Browse the repository at this point in the history
  • Loading branch information
Bierkraan committed Mar 2, 2024
1 parent 6470865 commit 9c489cb
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion code/modules/1713/siege/piece.dm
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,18 @@
F.update_icon()
return
return
else if (istype(W, /obj/item/stack/material/steel)) // Repair at the cost of 10 steel and slower
var/obj/item/stack/material/MAT = W
if (MAT.amount >= 10)
visible_message("[M] starts repairing the [src]...")
if (do_after(M, 300, src))
visible_message("[M] sucessfully repairs the [src].")
MAT.amount -= 10
broken = FALSE
return
else
to_chat(M, "You need 10 [MAT] to repair \the [src].")
return
else
to_chat(M, SPAN_DANGER("\The [src] is broken! Repair it first."))

Expand Down Expand Up @@ -266,7 +278,7 @@
broken = FALSE
return
return
if (istype(W, /obj/item/stack/material/steel)) // Repair at the cost of 10 steel and slower
else if (istype(W, /obj/item/stack/material/steel)) // Repair at the cost of 10 steel and slower
var/obj/item/stack/material/MAT = W
if (MAT.amount >= 10)
visible_message("[M] starts repairing the [src]...")
Expand Down

0 comments on commit 9c489cb

Please sign in to comment.