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

Updating staging from stable. #3506

Merged
merged 10 commits into from
Dec 8, 2023
3 changes: 3 additions & 0 deletions code/_helpers/unsorted.dm
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,7 @@ Turf and target are seperate in case you want to teleport some distance from a t
var/old_icon1 = T.icon
var/old_overlays = T.overlays.Copy()
var/old_underlays = T.underlays.Copy()
var/old_decals = T.decals?.Copy()

if(platingRequired)
if(istype(B, get_base_turf_by_area(B)))
Expand All @@ -604,8 +605,10 @@ Turf and target are seperate in case you want to teleport some distance from a t
X.set_dir(old_dir1)
X.icon_state = old_icon_state1
X.icon = old_icon1 //Shuttle floors are in shuttle.dmi while the defaults are floors.dmi
X.decals = old_decals
X.overlays = old_overlays
X.underlays = old_underlays
X.update_icon() // necessary to update decals properly

var/list/objs = new/list()
var/list/newobjs = new/list()
Expand Down
1 change: 1 addition & 0 deletions code/game/machinery/doors/windowdoor.dm
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
pry_mod = 0.5
base_type = /obj/machinery/door/window
frame_type = /obj/structure/windoor_assembly
set_dir_on_update = FALSE // these can properly face all 4 directions! don't force us into just 2!
var/base_state = "left"

/obj/machinery/door/window/get_auto_access()
Expand Down
20 changes: 13 additions & 7 deletions code/modules/projectiles/gun.dm
Original file line number Diff line number Diff line change
Expand Up @@ -654,12 +654,6 @@
if(usr == loc)
toggle_safety(usr)

/obj/item/gun/CtrlClick(var/mob/user)
if(loc == user)
toggle_safety(user)
return TRUE
. = ..()

/obj/item/gun/proc/safety()
return has_safety && safety_state

Expand Down Expand Up @@ -718,4 +712,16 @@
return FALSE
if(get_active_hand() != autofiring || incapacitated())
return FALSE
return TRUE
return TRUE

/obj/item/gun/get_alt_interactions(mob/user)
. = ..()
LAZYADD(., /decl/interaction_handler/toggle_safety)

/decl/interaction_handler/toggle_safety
name = "Toggle Gun Safety"
expected_target_type = /obj/item/gun

/decl/interaction_handler/toggle_safety/invoked(atom/target, mob/user, obj/item/prop)
var/obj/item/gun/gun = target
gun.toggle_safety(user)
6 changes: 4 additions & 2 deletions code/modules/projectiles/guns/projectile/bolt_action.dm
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
handle_casings = HOLD_CASINGS
load_method = SINGLE_CASING
max_shells = 1
ammo_type = /obj/item/ammo_casing/shell
ammo_type = /obj/item/ammo_casing/rifle
one_hand_penalty = 2
load_sound = 'sound/weapons/guns/interaction/rifle_load.ogg'
fire_delay = 8
Expand Down Expand Up @@ -49,6 +49,7 @@
unload_shell()
else
to_chat(user, "<span class='notice'>You work the bolt open.</span>")
playsound(src.loc, 'sound/weapons/guns/interaction/rifle_boltback.ogg', 50, 1)
else
to_chat(user, "<span class='notice'>You work the bolt closed.</span>")
playsound(src.loc, 'sound/weapons/guns/interaction/rifle_boltforward.ogg', 50, 1)
Expand Down Expand Up @@ -85,4 +86,5 @@
bulk = 8
scoped_accuracy = 8 //increased accuracy over the LWAP because only one shot
scope_zoom = 2
fire_delay = 12
fire_delay = 12
ammo_type = /obj/item/ammo_casing/shell
12 changes: 12 additions & 0 deletions code/modules/reagents/reagent_containers/drinkingglass/shaker.dm
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,18 @@
/obj/item/chems/drinks/glass2/fitnessflask/proteinshake
name = "protein shake"

// This exists to let the name auto-set properly.
/decl/cocktail/proteinshake
name = "protein shake"
description = "A revolting slurry of protein and water, fortified with iron."
hidden_from_codex = TRUE
ratios = list(
/decl/material/liquid/nutriment = 2,
/decl/material/liquid/nutriment/protein = 1,
/decl/material/liquid/water = 3,
/decl/material/solid/metal/iron
)

/obj/item/chems/drinks/glass2/fitnessflask/proteinshake/populate_reagents()
reagents.add_reagent(/decl/material/liquid/nutriment, 30)
reagents.add_reagent(/decl/material/solid/metal/iron, 10)
Expand Down
Binary file modified icons/obj/guns/bolt_action.dmi
Binary file not shown.