[s] Fixes an exploit (#30066)

* bap

* grammar fix

* im very good at this
This commit is contained in:
Contrabang
2025-08-10 19:50:53 -07:00
committed by GitHub
parent f399856114
commit 9ae38963a7
+4 -1
View File
@@ -66,9 +66,12 @@
/obj/vehicle/proc/install_vtec(obj/item/borg/upgrade/vtec/vtec, mob/user)
if(installed_vtec)
return FALSE
if(vehicle_move_delay <= 1)
to_chat(user, "<span class='warning'>[src] is too fast for [vtec] to have any effect.</span>")
return FALSE
installed_vtec = TRUE
vehicle_move_delay -= 1
vehicle_move_delay = max(1, vehicle_move_delay - 1)
qdel(vtec)
to_chat(user, "<span class='notice'>You upgrade [src] with [vtec].</span>")
return TRUE