Skip to content

Commit

Permalink
[s] Vtec fix (#27819)
Browse files Browse the repository at this point in the history
* [s] Vtec fix

* OOPS

* AUTOCORRECT WHY
  • Loading branch information
DGamerL authored Jan 3, 2025
1 parent d92a403 commit 0b35706
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
7 changes: 0 additions & 7 deletions code/modules/vehicle/janivehicle.dm
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,6 @@

return ..()

/obj/vehicle/janicart/install_vtec(obj/item/borg/upgrade/vtec/vtec, mob/user)
if(..() && floorbuffer)
floorbuffer = FALSE
vehicle_move_delay -= buffer_delay

return TRUE

/obj/vehicle/janicart/update_overlays()
. = ..()
if(mybag)
Expand Down
15 changes: 10 additions & 5 deletions code/modules/vehicle/vehicle.dm
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
var/generic_pixel_y = 0 //All dirs shwo this pixel_y for the driver
var/spaceworthy = FALSE

/// Did we install a vtec?
var/installed_vtec = FALSE

new_attack_chain = TRUE


Expand Down Expand Up @@ -61,12 +64,14 @@
. += "<span class='warning'>It's falling apart!</span>"

/obj/vehicle/proc/install_vtec(obj/item/borg/upgrade/vtec/vtec, mob/user)
if(vehicle_move_delay > 1)
vehicle_move_delay = 1
qdel(vtec)
to_chat(user, "<span class='notice'>You upgrade [src] with [vtec].</span>")
if(installed_vtec)
return FALSE

return TRUE
installed_vtec = TRUE
vehicle_move_delay -= 1
qdel(vtec)
to_chat(user, "<span class='notice'>You upgrade [src] with [vtec].</span>")
return TRUE

/obj/vehicle/item_interaction(mob/living/user, obj/item/used, list/modifiers)
if(key_type && !is_key(inserted_key) && is_key(used))
Expand Down

0 comments on commit 0b35706

Please sign in to comment.