Skip to content

Commit

Permalink
Merge branch 'master' into Tarp_Exploit_Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben10083 authored Jun 30, 2023
2 parents 6a0c197 + ed90141 commit cb578e3
Show file tree
Hide file tree
Showing 22 changed files with 70 additions and 36 deletions.
6 changes: 3 additions & 3 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ These are the few directives we have for project maintainers.
- Try to get secondary maintainer approval before merging if you are able to.
- PRs with empty commits intended to generate a changelog.
- Do not merge PRs that contain content from the [banned content list](./CONTRIBUTING.md#banned-content).
- Do not merge PRs that contain balance changes without GA approval. Exceptions include:
- Any PR that has been un-reviewed by a GA for 7 days.
- Do not merge PRs that contain balance changes without Maintainer Manager approval. Exceptions include:
- Any PR that has been un-reviewed by a Maintainer Manager for 7 days.
- Do not remove the DNM label that another Maintainer has applied. Exceptions include:
- GAs removing a DNM label placed by a Maintainer for Balance/Design reasons
- Maintainer Managers removing a DNM label placed by a Maintainer for Balance/Design reasons

These are not steadfast rules as maintainers are expected to use their best judgement when operating.

Expand Down
3 changes: 3 additions & 0 deletions code/__DEFINES/traits.dm
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,9 @@
//ie. naming a regulation tape "example" will become regulation tape (example)
#define TRAIT_ITEM_RENAME_SPECIAL "t_item_rename_special"

// This item can't be implanted into someone, regardless of the size of the item.
#define TRAIT_ITEM_NOT_IMPLANTABLE "t_item_not_implantable"

//-- structure traits --
// TABLE TRAITS
/// If the table is being flipped, prevent any changes that will mess with adjacency handling
Expand Down
6 changes: 4 additions & 2 deletions code/datums/emergency_calls/cryo_marines.dm
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@
shuttle_id = ""
var/leaders = 0

/datum/emergency_call/cryo_squad/spawn_candidates(announce, override_spawn_loc)
/datum/emergency_call/cryo_squad/spawn_candidates(announce, override_spawn_loc, announce_dispatch_message)
var/datum/squad/marine/cryo/cryo_squad = RoleAuthority.squads_by_type[/datum/squad/marine/cryo]
leaders = cryo_squad.num_leaders
return ..()
. = ..()
if(length(members))
shipwide_ai_announcement("Successfully deployed [length(members)] Foxtrot marines.")

/datum/emergency_call/cryo_squad/create_member(datum/mind/M, turf/override_spawn_loc)
set waitfor = 0
Expand Down
6 changes: 4 additions & 2 deletions code/datums/emergency_calls/cryo_marines_heavy.dm
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@

var/leaders = 0

/datum/emergency_call/cryo_squad_equipped/spawn_candidates(announce, override_spawn_loc)
/datum/emergency_call/cryo_squad_equipped/spawn_candidates(announce, override_spawn_loc, announce_dispatch_message)
var/datum/squad/marine/cryo/cryo_squad = RoleAuthority.squads_by_type[/datum/squad/marine/cryo]
leaders = cryo_squad.num_leaders
return ..()
. = ..()
if(length(members))
shipwide_ai_announcement("Successfully deployed [length(members)] Foxtrot marines.")

/datum/emergency_call/cryo_squad_equipped/create_member(datum/mind/M, turf/override_spawn_loc)
set waitfor = 0
Expand Down
3 changes: 2 additions & 1 deletion code/game/objects/items/devices/motion_detector.dm
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
item_state = "motion_detector"
flags_atom = FPRINT| CONDUCT
flags_equip_slot = SLOT_WAIST
inherent_traits = list(TRAIT_ITEM_NOT_IMPLANTABLE)
var/list/blip_pool = list()
var/detector_range = 14
var/detector_mode = MOTION_DETECTOR_LONG
Expand Down Expand Up @@ -309,7 +310,7 @@
name = "hacked motion detector"
desc = "A device that usually picks up non-USCM signals, but this one's been hacked to detect all non-freelancer movement instead. Fight fire with fire!"
iff_signal = FACTION_MERCENARY

/obj/item/device/motiondetector/hacked/pmc
name = "corporate motion detector"
desc = "A device that usually picks up non-USCM signals, but this one's been reprogrammed to detect all non-PMC movement instead. Very corporate."
Expand Down
13 changes: 12 additions & 1 deletion code/modules/cm_marines/dropship_equipment.dm
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,13 @@
deployed_turret.start_processing()
deployed_turret.set_range()

deployed_turret.linked_cam = new(deployed_turret.loc, "[capitalize_first_letters(ship_base.name)] [capitalize_first_letters(name)]")
if (linked_shuttle.id == DROPSHIP_ALAMO)
deployed_turret.linked_cam.network = list(CAMERA_NET_ALAMO)
else if (linked_shuttle.id == DROPSHIP_NORMANDY)
deployed_turret.linked_cam.network = list(CAMERA_NET_NORMANDY)


/obj/structure/dropship_equipment/sentry_holder/proc/undeploy_sentry()
if(!deployed_turret)
return
Expand All @@ -267,8 +274,12 @@
deployed_turret.stop_processing()
deployed_turret.unset_range()
icon_state = "sentry_system_installed"
QDEL_NULL(deployed_turret.linked_cam)


/obj/structure/dropship_equipment/sentry_holder/Destroy()
if(deployed_turret)
QDEL_NULL(deployed_turret.linked_cam)
. = ..()


/// Holder for the dropship mannable machinegun system
Expand Down
2 changes: 2 additions & 0 deletions code/modules/defenses/sentry.dm
Original file line number Diff line number Diff line change
Expand Up @@ -539,11 +539,13 @@
choice_categories = list()
selected_categories = list()
var/obj/structure/dropship_equipment/sentry_holder/deployment_system
var/obj/structure/machinery/camera/cas/linked_cam

/obj/structure/machinery/defenses/sentry/premade/dropship/Destroy()
if(deployment_system)
deployment_system.deployed_turret = null
deployment_system = null
QDEL_NULL(linked_cam)
. = ..()

#define SENTRY_SNIPER_RANGE 10
Expand Down
2 changes: 1 addition & 1 deletion code/modules/mob/dead/observer/observer.dm
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
var/is_nested = (buckled && istype(buckled, /obj/structure/bed/nest)) ? TRUE : FALSE
var/obj/structure/bed/nest/nest = FALSE
if(is_nested)
text_prompt += "\nSince you're nested, you will be given a chance to reenter your body upon being freed."
text_prompt += "\nSince you're nested, you will get a chance to reenter your body if freed."
nest = buckled
var/response = tgui_alert(src, text_prompt, "Are you sure you want to ghost?", options)
if(response == "Aghost")
Expand Down
7 changes: 5 additions & 2 deletions code/modules/mob/living/carbon/xenomorph/xeno_defines.dm
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@
var/bonus_larva_spawn_chance = 1
var/hijack_burrowed_surge = FALSE //at hijack, start spawning lots of burrowed
/// how many burrowed is going to spawn during larva surge
var/hijack_burrowed_left = 0
var/hijack_burrowed_left = 0

var/ignore_slots = FALSE
var/dynamic_evolution = TRUE
Expand Down Expand Up @@ -1006,7 +1006,10 @@

/datum/hive_status/proc/can_spawn_as_hugger(mob/dead/observer/user)
if(!GLOB.hive_datum || ! GLOB.hive_datum[hivenumber])
return
return FALSE
if(jobban_isbanned(user, JOB_XENOMORPH)) // User is jobbanned
to_chat(user, SPAN_WARNING("You are banned from playing aliens and cannot spawn as a xenomorph."))
return FALSE
if(world.time < hugger_timelock)
to_chat(user, SPAN_WARNING("The hive cannot support facehuggers yet..."))
return FALSE
Expand Down
2 changes: 2 additions & 0 deletions code/modules/surgery/implant.dm
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@
if(.)
if(is_surgery_tool(tool)) //Make sure you still have all your tools after a surgery.
return FALSE
if(HAS_TRAIT(tool, TRAIT_ITEM_NOT_IMPLANTABLE))
return FALSE
if(tool.w_class > get_max_wclass(surgery))
to_chat(user, SPAN_WARNING("[tool] is too big to implant into [surgery.target]'s [surgery.affected_limb.cavity]!"))
return FALSE
Expand Down
4 changes: 4 additions & 0 deletions html/changelogs/AutoChangeLog-pr-3675.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
author: "TheGamerdk"
delete-after: True
changes:
- rscadd: "ARES will announce how many Foxtrot marines that woke up."
4 changes: 0 additions & 4 deletions html/changelogs/AutoChangeLog-pr-3724.yml

This file was deleted.

4 changes: 4 additions & 0 deletions html/changelogs/AutoChangeLog-pr-3737.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
author: "ihatethisengine"
delete-after: True
changes:
- rscadd: "Added cameras to dropship deployable sentries."
4 changes: 0 additions & 4 deletions html/changelogs/AutoChangeLog-pr-3747.yml

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

4 changes: 4 additions & 0 deletions html/changelogs/AutoChangeLog-pr-3761.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
author: "Drathek"
delete-after: True
changes:
- spellcheck: "Tweaked message when ghosting while nested"
4 changes: 4 additions & 0 deletions html/changelogs/AutoChangeLog-pr-3766.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
author: "Drathek"
delete-after: True
changes:
- bugfix: "Fixed missing xeno ban check for playing as a facehugger"
4 changes: 4 additions & 0 deletions html/changelogs/AutoChangeLog-pr-3767.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
author: "harryob"
delete-after: True
changes:
- rscadd: "you can no longer implant yourself with a motion detector"
12 changes: 12 additions & 0 deletions html/changelogs/archive/2023-06.yml
Original file line number Diff line number Diff line change
Expand Up @@ -430,3 +430,15 @@
- bugfix: door_control buttons now respect being indestructable when processing
explosions.
- maptweak: Fixed the M39s overflowing in brig armory due to use of landmarks.
2023-06-30:
Drathek:
- bugfix: Fix runtimes with minimap subsystem not handling targets inside of objects
during removal
- code_imp: Ported VERB_REF and TYPE_VERB_REF from TG for 515 compatibility
- code_imp: Removed unnecessary calculations when updating a mob's transform.
Morrow:
- rscdel: Removed wrong warden locker
TheGamerdk:
- bugfix: You can now re-enter your body when unnested, marine mains, rejoice!
- bugfix: Lurkers no longer lose their pounce if they happen to end their pounce
on a tile with a dead human

0 comments on commit cb578e3

Please sign in to comment.