Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
blackcrystall committed Jun 24, 2024
1 parent 57c5fa6 commit e27eee5
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 24 deletions.
14 changes: 7 additions & 7 deletions code/game/machinery/vending/vendor_types/crew/vehicle_crew.dm
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,15 @@

if(istype(ordered, /obj/vehicle/multitile/tank))
selected_vehicle = "TANK"
gearcomp.available_categories = VEHICLE_ALL_AVAILABLE
available_categories = VEHICLE_ALL_AVAILABLE

else if(istype(ordered, /obj/vehicle/multitile/arc))
selected_vehicle = "ARC"
available_categories = VEHICLE_ALL_AVAILABLE

else if(istype(ordered, /obj/vehicle/multitile/apc))
selected_vehicle = "APC"
gearcomp.available_categories = VEHICLE_PRIMARY_AVAILABLE|VEHICLE_SECONDARY_AVAILABLE|VEHICLE_SUPPORT_AVAILABLE|VEHICLE_TREADS_AVAILABLE

else if(istype(ordered, /obj/vehicle/multitile/arc))
gearcomp.selected_vehicle = "ARC"
gearcomp.available_categories = VEHICLE_ALL_AVAILABLE
available_categories = VEHICLE_PRIMARY_AVAILABLE|VEHICLE_SECONDARY_AVAILABLE|VEHICLE_SUPPORT_AVAILABLE|VEHICLE_TREADS_AVAILABLE

/obj/structure/machinery/cm_vending/gear/vehicle_crew/get_listed_products(mob/user)
var/list/display_list = list()
Expand All @@ -82,7 +82,7 @@
else if(selected_vehicle == "ARC")
display_list = GLOB.cm_vending_vehicle_crew_arc

else if(selected_vehicle == "TANK")
else if(selected_vehicle == "APC")
if(available_categories)
display_list = GLOB.cm_vending_vehicle_crew_apc
else //APC stuff costs more to prevent 4000 points spent on shitton of ammunition
Expand Down
12 changes: 0 additions & 12 deletions code/game/objects/items/circuitboards/computer.dm
Original file line number Diff line number Diff line change
Expand Up @@ -224,18 +224,6 @@
/obj/item/circuitboard/computer/supplycomp/vehicle
name = "Circuit board (vehicle ASRS console)"
build_path = /obj/structure/machinery/computer/supplycomp/vehicle
var/spent = FALSE //so that they can't just reconstruct the console to get another APC
var/tank_unlocked = FALSE

/obj/item/circuitboard/computer/supplycomp/vehicle/construct(obj/structure/machinery/computer/supplycomp/vehicle/SCV)
if (..(SCV))
SCV.spent = spent
SCV.tank_unlocked = tank_unlocked

/obj/item/circuitboard/computer/supplycomp/vehicle/disassemble(obj/structure/machinery/computer/supplycomp/vehicle/SCV)
if (..(SCV))
spent = SCV.spent
tank_unlocked = SCV.tank_unlocked

/obj/item/circuitboard/computer/operating
name = "Circuit board (Operating Computer)"
Expand Down
4 changes: 2 additions & 2 deletions code/game/supplyshuttle.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1437,7 +1437,7 @@ GLOBAL_DATUM_INIT(supply_controller, /datum/controller/supply, new())
world.log << "## ERROR: Eek. The supply/elevator datum is missing somehow."
return

if(isturf(loc) && (in_range(src, usr) || ishighersilicon(usr)))
if(isturf(loc) && (in_range(src, usr) || isSilicon(usr)))
usr.set_interaction(src)

if(href_list["lower_platform"])
Expand All @@ -1462,7 +1462,7 @@ GLOBAL_DATUM_INIT(supply_controller, /datum/controller/supply, new())

in_stock -= order

var/obj/effect/vehicle_spawner/vehicle_spawner = new order.ordered_vehicle(middle_turf, faction_to_get, TRUE)
var/obj/effect/vehicle_spawner/vehicle_spawner = new order.ordered_vehicle(middle_turf)
var/obj/vehicle/multitile/ordered_vehicle = vehicle_spawner.spawn_vehicle()
SSshuttle.vehicle_elevator.request(SSshuttle.getDock("almayer vehicle"))

Expand Down
3 changes: 1 addition & 2 deletions code/modules/cm_tech/implements/tank.dm
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
name = "tank coupon"
desc = "We're done playing! This coupon allows the ship crew to retrieve a complete Longstreet tank from Vehicle ASRS. Make sure to send the ASRS lift down so it can be retrieved. One use only. LTB not included. Comes with free friendly fire."
vehicle_type = /datum/vehicle_order/tank/broken
vehicle_category = "LONGSTREET"

/obj/item/vehicle_coupon/attack_self(mob/user)
if(QDELETED(src))
Expand All @@ -37,7 +36,7 @@
return

. = TRUE
comp.vehicles += new vehicle_type()
comp.in_stock += new vehicle_type()

comp.allowed_roles = null

Expand Down
2 changes: 1 addition & 1 deletion code/modules/cm_tech/techs/marine/tier1/arc.dm
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
if(!comp || !gearcomp)
return FALSE

comp.vehicles += new /datum/vehicle_order/arc()
comp.in_stock += new /datum/vehicle_order/arc()
comp.allowed_roles = list(JOB_SYNTH, JOB_SEA, JOB_SO, JOB_XO, JOB_CO, JOB_GENERAL)
comp.req_access = list(ACCESS_MARINE_COMMAND)
comp.req_one_access = list()
Expand Down

0 comments on commit e27eee5

Please sign in to comment.