Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comtech Stuff #6650

Merged
merged 6 commits into from
Aug 3, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions code/game/machinery/vending/vendor_types/requisitions.dm
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,6 @@
list("Powerloader Certification", 0.75, /obj/item/pamphlet/skill/powerloader, VENDOR_ITEM_REGULAR),
list("Spare PDT/L Battle Buddy Kit", floor(scale * 4), /obj/item/storage/box/pdt_kit, VENDOR_ITEM_REGULAR),
list("W-Y brand rechargeable mini-battery", floor(scale * 3), /obj/item/cell/crap, VENDOR_ITEM_REGULAR),
list("Nailgun Magazine (7x45mm)", floor(scale * 4), /obj/item/ammo_magazine/smg/nailgun, VENDOR_ITEM_REGULAR),
list("Nailgun Magazine Box (7x45mm)", floor(scale * 2), /obj/item/ammo_box/magazine/nailgun, VENDOR_ITEM_REGULAR),

list("EXPLOSIVES BOXES", -1, null, null),
list("M15 Fragmentation Grenade Packet", 0, /obj/item/storage/box/packet/m15, VENDOR_ITEM_REGULAR),
Expand All @@ -161,7 +159,9 @@
list("OTHER BOXES", -1, null, null),
list("Box of M94 Marking Flare Packs", 0, /obj/item/ammo_box/magazine/misc/flares, VENDOR_ITEM_REGULAR),
list("Box of M89 Signal Flare Packs", 0, /obj/item/ammo_box/magazine/misc/flares/signal, VENDOR_ITEM_REGULAR),
list("Box of High-Capacity Power Cells", 0, /obj/item/ammo_box/magazine/misc/power_cell, VENDOR_ITEM_REGULAR)
list("Box of High-Capacity Power Cells", 0, /obj/item/ammo_box/magazine/misc/power_cell, VENDOR_ITEM_REGULAR),
list("Nailgun Magazine (7x45mm)", floor(scale * 4), /obj/item/ammo_magazine/smg/nailgun, VENDOR_ITEM_REGULAR),
Git-Nivrak marked this conversation as resolved.
Show resolved Hide resolved
list("Nailgun Magazine Box (7x45mm)", floor(scale * 2), /obj/item/ammo_box/magazine/nailgun, VENDOR_ITEM_REGULAR)
)

/obj/structure/machinery/cm_vending/sorted/cargo_guns/stock(obj/item/item_to_stock, mob/user)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ GLOBAL_LIST_INIT(cm_vending_clothing_engi, list(
list("Shoulder Holster", 0, /obj/item/clothing/accessory/storage/holster, MARINE_CAN_BUY_ACCESSORY, VENDOR_ITEM_REGULAR),
list("Webbing", 0, /obj/item/clothing/accessory/storage/webbing, MARINE_CAN_BUY_ACCESSORY, VENDOR_ITEM_REGULAR),
list("Drop Pouch", 0, /obj/item/clothing/accessory/storage/droppouch, MARINE_CAN_BUY_ACCESSORY, VENDOR_ITEM_REGULAR),
list("Small Tool Webbing", 0, /obj/item/clothing/accessory/storage/tool_webbing/small/equipped, MARINE_CAN_BUY_ACCESSORY, VENDOR_ITEM_REGULAR),
list("Small Tool Webbing (Full)", 0, /obj/item/clothing/accessory/storage/tool_webbing/small/equipped, MARINE_CAN_BUY_ACCESSORY, VENDOR_ITEM_REGULAR),

list("MASK (CHOOSE 1)", 0, null, null, null),
list("Gas Mask", 0, /obj/item/clothing/mask/gas, MARINE_CAN_BUY_MASK, VENDOR_ITEM_REGULAR),
Expand Down
8 changes: 4 additions & 4 deletions code/game/objects/items/storage/belt.dm
Original file line number Diff line number Diff line change
Expand Up @@ -161,19 +161,19 @@
/obj/item/device/analyzer,
/obj/item/explosive/plastic,
/obj/item/device/lightreplacer,
/obj/item/stack/sheet/metal,
/obj/item/stack/sheet/plasteel,
/obj/item/stack/sheet,
/obj/item/stack/sandbags_empty,
/obj/item/stack/sandbags,
/obj/item/stack/barbed_wire,
/obj/item/defenses/handheld/sentry,
Git-Nivrak marked this conversation as resolved.
Show resolved Hide resolved
/obj/item/stack/rods,
/obj/item/stack/tile,
)

bypass_w_limit = list(
/obj/item/tool/shovel/etool,
/obj/item/device/lightreplacer,
/obj/item/stack/sheet/metal,
/obj/item/stack/sheet/plasteel,
/obj/item/stack/sheet,
/obj/item/stack/sandbags_empty,
/obj/item/stack/sandbags,
/obj/item/defenses/handheld/sentry,
Expand Down
10 changes: 5 additions & 5 deletions code/game/objects/structures/barricade/barricade.dm
Git-Nivrak marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -449,14 +449,14 @@
else
material = user.l_hand

if(material.amount < nailgun.material_per_repair)
to_chat(user, SPAN_WARNING("You'll need more adequate repair material in your other hand to patch up [src]!"))
return FALSE

if(!istype(material, /obj/item/stack/sheet/))
to_chat(user, SPAN_WARNING("You'll need some adequate repair material in your other hand to patch up [src]!"))
return FALSE

if(material.amount < nailgun.material_per_repair)
to_chat(user, SPAN_WARNING("You'll need more adequate repair material in your other hand to patch up [src]!"))
return FALSE

var/repair_value = 0
for(var/validSheetType in repair_materials)
if(validSheetType == material.sheettype)
Expand All @@ -473,7 +473,7 @@
return FALSE

if(!material || (material != user.l_hand && material != user.r_hand) || material.amount <= 0)
to_chat(user, SPAN_WARNING("You seems to have misplaced the repair material!"))
to_chat(user, SPAN_WARNING("You seem to have misplaced the repair material!"))
return FALSE

if(!nailgun.in_chamber || !nailgun.current_mag || nailgun.current_mag.current_rounds < 3)
Expand Down
2 changes: 1 addition & 1 deletion code/game/turfs/walls/walls.dm
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@

// Check again for presence of objects
if(!material || (material != user.l_hand && material != user.r_hand) || material.amount <= 0)
to_chat(user, SPAN_WARNING("You seems to have misplaced the repair material!"))
to_chat(user, SPAN_WARNING("You seem to have misplaced the repair material!"))
return FALSE

if(!NG.in_chamber || !NG.current_mag || NG.current_mag.current_rounds < (4*amount_needed-1))
Expand Down
21 changes: 16 additions & 5 deletions code/modules/projectiles/gun_helpers.dm
Original file line number Diff line number Diff line change
Expand Up @@ -547,11 +547,22 @@ DEFINES in setup.dm, referenced here.
for(var/item_in_slot in items_in_slot)
if(istype(item_in_slot, storage))
var/slot = active_hand.preferred_storage[storage]
if(slot == WEAR_ACCESSORY)
slot = WEAR_IN_ACCESSORY

if(equip_to_slot_if_possible(active_hand, slot, 1, 0, 1, 1))
return 1
switch(slot)
if(WEAR_ACCESSORY)
slot = WEAR_IN_ACCESSORY
if(WEAR_WAIST)
slot = WEAR_IN_BELT
if(WEAR_BACK)
slot = WEAR_IN_BACK
if(WEAR_J_STORE)
slot = WEAR_IN_J_STORE
if(WEAR_HEAD)
slot = WEAR_IN_HELMET
if(WEAR_FEET)
slot = WEAR_IN_SHOES

if(equip_to_slot_if_possible(active_hand, slot, ignore_delay = TRUE, del_on_fail = FALSE, disable_warning = TRUE, redraw_mob = TRUE))
return TRUE
if(w_uniform)
for(var/obj/accessory in w_uniform.accessories)
var/obj/item/storage/internal/accessory/holster/holster = accessory
Expand Down
3 changes: 1 addition & 2 deletions code/modules/projectiles/guns/smgs.dm
Git-Nivrak marked this conversation as resolved.
Show resolved Hide resolved
Git-Nivrak marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -682,11 +682,10 @@
icon_state = "cnailgun"
item_state = "nailgun"
w_class = SIZE_SMALL
flags_gun_features = GUN_AUTO_EJECTOR|GUN_CAN_POINTBLANK|GUN_NO_DESCRIPTION

/obj/item/weapon/gun/smg/nailgun/compact/able_to_fire(mob/living/user)
. = ..()
if(.)
click_empty(user)
return FALSE

/obj/item/weapon/gun/smg/nailgun/compact/tactical
Expand Down
Binary file modified icons/obj/items/clothing/belts.dmi
Binary file not shown.
Loading