Skip to content

Commit

Permalink
Merge pull request #3554 from out-of-phaze/fix/misc-tether-01-05-2024
Browse files Browse the repository at this point in the history
Port some fixes from Lighthouse
  • Loading branch information
MistakeNot4892 authored Jan 6, 2024
2 parents 5688c73 + d765ffe commit 8b62db2
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 7 deletions.
1 change: 1 addition & 0 deletions code/datums/inventory_slots/inventory_gripper.dm
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
var/can_use_held_item = TRUE
var/dexterity = DEXTERITY_FULL
var/covering_slot_flags
quick_equip_priority = -1 // you quick-equip stuff by holding it in a gripper, so this ought to be dead last

// For reference, grippers do not use ui_loc, they have it set dynamically during /datum/hud/proc/rebuild_hands()

Expand Down
2 changes: 1 addition & 1 deletion code/datums/inventory_slots/slots/slot_back.dm
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
requires_organ_tag = BP_CHEST
requires_slot_flags = SLOT_BACK
mob_overlay_layer = HO_BACK_LAYER
quick_equip_priority = 13
quick_equip_priority = 14

/datum/inventory_slot/back/simple
requires_organ_tag = null
Expand Down
2 changes: 1 addition & 1 deletion code/datums/inventory_slots/slots/slot_id.dm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
slot_id = slot_wear_id_str
requires_slot_flags = SLOT_ID
mob_overlay_layer = HO_ID_LAYER
quick_equip_priority = 12
quick_equip_priority = 13

/datum/inventory_slot/id/update_mob_equipment_overlay(var/mob/living/user, var/obj/item/prop, var/redraw_mob = TRUE)
var/obj/item/clothing/under/under = user.get_equipped_item(slot_w_uniform_str)
Expand Down
1 change: 1 addition & 0 deletions code/datums/inventory_slots/slots/slot_suit.dm
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
requires_organ_tag = BP_CHEST
requires_slot_flags = SLOT_OVER_BODY
mob_overlay_layer = HO_SUIT_LAYER
quick_equip_priority = 11

/datum/inventory_slot/suit/update_mob_equipment_overlay(var/mob/living/user, var/obj/item/prop, var/redraw_mob = TRUE)
if(prop)
Expand Down
2 changes: 1 addition & 1 deletion code/datums/inventory_slots/slots/slot_uniform.dm
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
)
requires_organ_tag = BP_CHEST
requires_slot_flags = SLOT_UPPER_BODY
quick_equip_priority = 11
quick_equip_priority = 12

/datum/inventory_slot/uniform/update_mob_equipment_overlay(var/mob/living/user, var/obj/item/prop, var/redraw_mob = TRUE)
if(prop?.flags_inv & HIDESHOES)
Expand Down
3 changes: 2 additions & 1 deletion code/game/objects/item.dm
Original file line number Diff line number Diff line change
Expand Up @@ -427,9 +427,10 @@
if(S.collection_mode) //Mode is set to collect all items
if(isturf(src.loc))
S.gather_all(src.loc, user)
return TRUE
else if(S.can_be_inserted(src, user))
S.handle_item_insertion(src)
return TRUE
return TRUE

if(has_extension(src, /datum/extension/loaded_cell))
var/datum/extension/loaded_cell/cell_loaded = get_extension(src, /datum/extension/loaded_cell)
Expand Down
6 changes: 3 additions & 3 deletions code/modules/atmospherics/components/unary/vent_scrubber.dm
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@
icon_state = "weld"
else if((stat & NOPOWER) || !use_power)
icon_state = "off"
else if(scrubbing == SCRUBBER_EXCHANGE)
icon_state = "on"
else
else if(scrubbing == SCRUBBER_SIPHON)
icon_state = "in"
else
icon_state = "on"

build_device_underlays()

Expand Down
2 changes: 2 additions & 0 deletions code/modules/reagents/reagent_containers/food.dm
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
icon_state = null
randpixel = 6
atom_flags = ATOM_FLAG_OPEN_CONTAINER
item_flags = null
material = /decl/material/liquid/nutriment
possible_transfer_amounts = null
volume = 50
center_of_mass = @"{'x':16,'y':16}"
Expand Down

0 comments on commit 8b62db2

Please sign in to comment.