Skip to content

Commit

Permalink
Merge branch 'master' into FixSafe
Browse files Browse the repository at this point in the history
  • Loading branch information
Steelpoint authored Aug 27, 2023
2 parents c4518b6 + 30a8638 commit e33be9c
Show file tree
Hide file tree
Showing 25 changed files with 74 additions and 35 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/autowiki.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ jobs:
- name: Install rust-g
if: steps.secrets_set.outputs.SECRETS_ENABLED
run: |
sudo dpkg --add-architecture i386
sudo apt update || true
sudo apt install -o APT::Immediate-Configure=false zlib1g-dev:i386 libssl-dev:i386
bash tools/ci/install_rust_g.sh
- name: Compile and generate Autowiki files
if: steps.secrets_set.outputs.SECRETS_ENABLED
Expand Down
8 changes: 8 additions & 0 deletions code/datums/emergency_calls/emergency_call.dm
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,19 @@
/datum/game_mode
var/list/datum/emergency_call/all_calls = list() //initialized at round start and stores the datums.
var/datum/emergency_call/picked_calls[] = list() //Which distress calls are currently active
var/ert_dispatched = FALSE

/datum/game_mode/proc/ares_online()
var/name = "ARES Online"
var/input = "ARES. Online. Good morning, marines."
shipwide_ai_announcement(input, name, 'sound/AI/ares_online.ogg')

/datum/game_mode/proc/request_ert(user, ares = FALSE)
if(!user)
return FALSE
message_admins("[key_name(user)] has requested a Distress Beacon! [ares ? SPAN_ORANGE("(via ARES)") : ""] ([SSticker.mode.ert_dispatched ? SPAN_RED("A random ERT was dispatched previously.") : SPAN_GREEN("No previous random ERT dispatched.")]) [CC_MARK(user)] (<A HREF='?_src_=admin_holder;[HrefToken(forceGlobal = TRUE)];distress=\ref[user]'>SEND</A>) (<A HREF='?_src_=admin_holder;[HrefToken(forceGlobal = TRUE)];ccdeny=\ref[user]'>DENY</A>) [ADMIN_JMP_USER(user)] [CC_REPLY(user)]")
return TRUE

//The distress call parent. Cannot be called itself due to "name" being a filtered target.
/datum/emergency_call
var/name = "name"
Expand Down Expand Up @@ -106,6 +113,7 @@
give_action(M, /datum/action/join_ert, src)

/datum/game_mode/proc/activate_distress()
ert_dispatched = TRUE
var/datum/emergency_call/random_call = get_random_call()
if(!istype(random_call, /datum/emergency_call)) //Something went horribly wrong
return
Expand Down
2 changes: 1 addition & 1 deletion code/game/machinery/ARES/ARES_procs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ GLOBAL_LIST_INIT(maintenance_categories, list(
for(var/client/admin in GLOB.admins)
if((R_ADMIN|R_MOD) & admin.admin_holder.rights)
playsound_client(admin,'sound/effects/sos-morse-code.ogg',10)
message_admins("[key_name(usr)] has requested a Distress Beacon (via ARES)! [CC_MARK(usr)] (<A HREF='?_src_=admin_holder;[HrefToken(forceGlobal = TRUE)];distress=\ref[usr]'>SEND</A>) (<A HREF='?_src_=admin_holder;[HrefToken(forceGlobal = TRUE)];ccdeny=\ref[usr]'>DENY</A>) [ADMIN_JMP_USER(usr)] [CC_REPLY(usr)]")
SSticker.mode.request_ert(usr, TRUE)
to_chat(usr, SPAN_NOTICE("A distress beacon request has been sent to USCM High Command."))
COOLDOWN_START(src, ares_distress_cooldown, COOLDOWN_COMM_REQUEST)
return TRUE
Expand Down
6 changes: 3 additions & 3 deletions code/game/machinery/computer/almayer_control.dm
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
/// requesting a distress beacon
COOLDOWN_DECLARE(cooldown_request)
/// requesting evac
COOLDOWN_DECLARE(cooldown_destruct)
COOLDOWN_DECLARE(cooldown_destruct)
/// messaging HC (admins)
COOLDOWN_DECLARE(cooldown_central)
/// making a ship announcement
COOLDOWN_DECLARE(cooldown_message)
COOLDOWN_DECLARE(cooldown_message)

var/list/messagetitle = list()
var/list/messagetext = list()
Expand Down Expand Up @@ -230,7 +230,7 @@
for(var/client/admin_client as anything in GLOB.admins)
if((R_ADMIN|R_MOD) & admin_client.admin_holder.rights)
admin_client << 'sound/effects/sos-morse-code.ogg'
message_admins("[key_name(usr)] has requested a Distress Beacon! [CC_MARK(usr)] (<A HREF='?_src_=admin_holder;[HrefToken(forceGlobal = TRUE)];distress=\ref[usr]'>SEND</A>) (<A HREF='?_src_=admin_holder;[HrefToken(forceGlobal = TRUE)];ccdeny=\ref[usr]'>DENY</A>) [ADMIN_JMP_USER(usr)] [CC_REPLY(usr)]")
SSticker.mode.request_ert(usr)
to_chat(usr, SPAN_NOTICE("A distress beacon request has been sent to USCM Central Command."))

COOLDOWN_START(src, cooldown_request, COOLDOWN_COMM_REQUEST)
Expand Down
2 changes: 1 addition & 1 deletion code/game/machinery/computer/communications.dm
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@
for(var/client/C in GLOB.admins)
if((R_ADMIN|R_MOD) & C.admin_holder.rights)
C << 'sound/effects/sos-morse-code.ogg'
message_admins("[key_name(usr)] has requested a Distress Beacon! [CC_MARK(usr)] (<A HREF='?_src_=admin_holder;[HrefToken(forceGlobal = TRUE)];distress=\ref[usr]'>SEND</A>) (<A HREF='?_src_=admin_holder;[HrefToken(forceGlobal = TRUE)];ccdeny=\ref[usr]'>DENY</A>) [ADMIN_JMP_USER(usr)] [CC_REPLY(usr)]")
SSticker.mode.request_ert(usr)
to_chat(usr, SPAN_NOTICE("A distress beacon request has been sent to USCM Central Command."))

cooldown_request = world.time
Expand Down
2 changes: 1 addition & 1 deletion code/game/objects/items/devices/cictablet.dm
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@
for(var/client/C in GLOB.admins)
if((R_ADMIN|R_MOD) & C.admin_holder.rights)
playsound_client(C,'sound/effects/sos-morse-code.ogg',10)
message_admins("[key_name(usr)] has requested a Distress Beacon! [CC_MARK(usr)] (<A HREF='?_src_=admin_holder;[HrefToken(forceGlobal = TRUE)];distress=\ref[usr]'>SEND</A>) (<A HREF='?_src_=admin_holder;[HrefToken(forceGlobal = TRUE)];ccdeny=\ref[usr]'>DENY</A>) [ADMIN_JMP_USER(usr)] [CC_REPLY(usr)]")
SSticker.mode.request_ert(usr)
to_chat(usr, SPAN_NOTICE("A distress beacon request has been sent to USCM Central Command."))
COOLDOWN_START(src, distress_cooldown, COOLDOWN_COMM_REQUEST)
return TRUE
Expand Down
6 changes: 4 additions & 2 deletions code/game/objects/items/storage/pouch.dm
Original file line number Diff line number Diff line change
Expand Up @@ -906,6 +906,9 @@
update_icon()

/obj/item/storage/pouch/pressurized_reagent_canister/afterattack(obj/target, mob/user, flag) //refuel at fueltanks & chem dispensers.
if(get_dist(user,target) > 1)
return ..()

if(!inner)
to_chat(user, SPAN_WARNING("[src] has no internal container!"))
return ..()
Expand All @@ -925,8 +928,7 @@
if(!istype(target, /obj/structure/reagent_dispensers/fueltank))
return ..()

if(get_dist(user,target) > 1)
return ..()


var/obj/O = target
if(!O.reagents || O.reagents.reagent_list.len < 1)
Expand Down
3 changes: 1 addition & 2 deletions code/modules/hydroponics/hydro_tray.dm
Original file line number Diff line number Diff line change
Expand Up @@ -539,8 +539,7 @@

// Bookkeeping.
check_level_sanity()
force_update = 1
process()


return

Expand Down
2 changes: 1 addition & 1 deletion code/modules/mob/living/carbon/human/whisper.dm
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@

//now mobs
var/speech_bubble_test = say_test(message)
var/image/speech_bubble = image('icons/mob/hud/talk.dmi',src,"h[speech_bubble_test]")
var/image/speech_bubble = image('icons/mob/effects/talk.dmi',src,"[bubble_icon][speech_bubble_test]")
speech_bubble.appearance_flags = NO_CLIENT_COLOR|KEEP_APART|RESET_COLOR

var/not_dead_speaker = (stat != DEAD)
Expand Down
9 changes: 5 additions & 4 deletions code/modules/projectiles/gun.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1343,10 +1343,11 @@ and you're good to go.

//The following relating to bursts was borrowed from Fire code.
var/check_for_attachment_fire = FALSE
if(active_attachable?.flags_attach_features & ATTACH_PROJECTILE)
check_for_attachment_fire = TRUE
else
active_attachable.activate_attachment(src, null, TRUE)//No way.
if(active_attachable)
if(active_attachable.flags_attach_features & ATTACH_PROJECTILE)
check_for_attachment_fire = TRUE
else
active_attachable.activate_attachment(src, null, TRUE)//No way.


var/bullets_to_fire = 1
Expand Down
2 changes: 1 addition & 1 deletion code/modules/projectiles/guns/specialist.dm
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@


/obj/item/weapon/gun/rifle/m4ra_custom/set_gun_attachment_offsets()
attachable_offset = list("muzzle_x" = 43, "muzzle_y" = 17,"rail_x" = 23, "rail_y" = 21, "under_x" = 30, "under_y" = 11, "stock_x" = 24, "stock_y" = 13, "special_x" = 39, "special_y" = 17)
attachable_offset = list("muzzle_x" = 43, "muzzle_y" = 17,"rail_x" = 23, "rail_y" = 21, "under_x" = 30, "under_y" = 11, "stock_x" = 24, "stock_y" = 13, "special_x" = 37, "special_y" = 16)

/obj/item/weapon/gun/rifle/m4ra_custom/set_gun_config_values()
..()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@
if(HAS_TRAIT(attacking_object, TRAIT_TOOL_WRENCH))
if(!wrenchable)
to_chat(user, "[src] cannot be unwrenched.")
return

if(!do_after(user, 2 SECONDS, INTERRUPT_ALL|BEHAVIOR_IMMOBILE, BUSY_ICON_BUILD))
return
Expand Down
4 changes: 0 additions & 4 deletions html/changelogs/AutoChangeLog-pr-4127.yml

This file was deleted.

5 changes: 0 additions & 5 deletions html/changelogs/AutoChangeLog-pr-4212.yml

This file was deleted.

4 changes: 0 additions & 4 deletions html/changelogs/AutoChangeLog-pr-4240.yml

This file was deleted.

4 changes: 0 additions & 4 deletions html/changelogs/AutoChangeLog-pr-4256.yml

This file was deleted.

4 changes: 4 additions & 0 deletions html/changelogs/AutoChangeLog-pr-4258.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
author: "MikeKuwait"
delete-after: True
changes:
- bugfix: "teleporting canister pouch to chemical dispenser"
4 changes: 4 additions & 0 deletions html/changelogs/AutoChangeLog-pr-4259.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
author: "MikeKuwait"
delete-after: True
changes:
- bugfix: "Plants should not grow every time it's sampled"
4 changes: 4 additions & 0 deletions html/changelogs/AutoChangeLog-pr-4261.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
author: "Morrow"
delete-after: True
changes:
- bugfix: "Fixed pointblanks"
4 changes: 4 additions & 0 deletions html/changelogs/AutoChangeLog-pr-4264.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
author: "Morrow"
delete-after: True
changes:
- bugfix: "Fixed western medbay door buttons"
4 changes: 4 additions & 0 deletions html/changelogs/AutoChangeLog-pr-4265.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
author: "CapCamIII"
delete-after: True
changes:
- bugfix: "actually fixes m4ra custom barrel offset"
4 changes: 4 additions & 0 deletions html/changelogs/AutoChangeLog-pr-4266.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
author: "Xufysz"
delete-after: True
changes:
- bugfix: "Fixes the kitchen soda fountain being wrenchable."
5 changes: 5 additions & 0 deletions html/changelogs/AutoChangeLog-pr-4267.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
author: "realforest2001"
delete-after: True
changes:
- code_imp: "Moved the Request ERT message to a proc to reduce duplication."
- admin: "Added a detail in ERT request to indicate if a RANDOM ERT was granted by staff already or not. This will not work for manual specific chosen ERTs."
13 changes: 13 additions & 0 deletions html/changelogs/archive/2023-08.yml
Original file line number Diff line number Diff line change
Expand Up @@ -410,3 +410,16 @@
- rscadd: Telephones can now receive calls from multiple networks.
- rscadd: Adds UPP, CLF and WY prefab phones.
- bugfix: UPP RTO pack is now titled UPP rather than USCM
2023-08-27:
AnuvKH:
- maptweak: Fixed deep ocean around NV monsoon, removed incend ammo.
Diegoflores31:
- bugfix: Glasses with flash protection can no longer be used for welding.
- refactor: Adds defines for negative welding protection.
Morrow:
- bugfix: fixed a bypass to allow ghost scan health when it should not be allowed
cuberound:
- rscadd: UPP SL gets proper bag with mini fire extinguisher three WP grenades ,
two snacks and an AP mag
harryob:
- bugfix: whispering no longer uses the old speech bubble
4 changes: 2 additions & 2 deletions maps/map_files/USS_Almayer/USS_Almayer.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -60064,7 +60064,7 @@
},
/obj/structure/machinery/door/airlock/multi_tile/almayer/medidoor{
dir = 2;
id_tag = "tc04";
id_tag = "tc02";
name = "\improper Treatment Center"
},
/turf/open/floor/almayer{
Expand Down Expand Up @@ -62940,7 +62940,7 @@
},
/obj/structure/machinery/door/airlock/multi_tile/almayer/medidoor{
dir = 2;
id_tag = "tc04";
id_tag = "tc01";
name = "\improper Treatment Center"
},
/turf/open/floor/almayer{
Expand Down

0 comments on commit e33be9c

Please sign in to comment.